@import url('https://unpkg.com/swiper/swiper-bundle.min.css');

/*
  Referans Site (saglikbakani.com) Esintili Modern Blog Tasarımı

  Renk Paleti:
  - Arka Plan: #ffffff (Beyaz)
  - Gövde Arka Planı: #f9f9f9 (Çok Açık Gri)
  - Ana Metin: #333333 (Koyu Gri)
  - Başlıklar: #111111 (Neredeyse Siyah)
  - Vurgu/Link: #007bff (Standart Mavi)
  - Meta Bilgi: #767676 (Orta Gri)
  - Kenarlık: #dddddd (Açık Gri)
*/

/* === Genel Ayarlar ve Değişkenler === */
:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --primary-color: #3B82F6; /* Mavi */
    --primary-hover: #2563EB;
    --secondary-color: #1F2937; /* Koyu Gri/Siyah */
    --text-color: #374151; /* Metin Grisi */
    --light-text-color: #6B7281; /* Açık Metin Grisi */
    --background-color: #F9FAFB; /* Çok Açık Gri */
    --card-background: #FFFFFF;
    --border-color: #E5E7EB;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body {
    font-family: var(--font-sans);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
}

/* === Header === */
.main-header {
    background-color: #1d2024;
    color: #f0f0f0;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav .dropdown:hover .dropbtn {
    background-color: var(--primary-color);
    color: #fff;
}

.main-nav a.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2c3036; /* Koyu dropdown arkaplanı */
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 0 0 8px 8px;
    padding: 0.5rem 0;
    border-top: 2px solid var(--primary-color);
}

.dropdown-content a {
    color: #e0e0e0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    border-radius: 0; /* İç linklerde köşe yuvarlatmayı kaldır */
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* === Ana İçerik Alanı === */
.page-wrapper {
    padding: 40px 0;
}

/* === Makale Kartları (Grid) === */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
    justify-content: flex-start;
    align-items: stretch;
}

.article-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card-image-link {
    display: block;
    height: 250px; /* Sabit Yükseklik */
    overflow: hidden;
}

.article-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Oranı koruyarak sığdır */
}

.article-card-content {
    padding: 1.5rem;
}

.article-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.article-card h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

.article-card h3 a:hover {
    color: var(--primary-color);
}

.article-card .category-badge {
    display: inline-block;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.article-card .category-badge:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* === Tekil Makale Sayfası === */
.single-article-post {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    max-width: 800px; /* İçeriği çok genişlemesin diye */
    margin: 2rem auto; /* Sayfanın ortasında dursun */
}

.single-article-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.single-article-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.single-article-meta {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.single-article-meta a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.single-article-meta a:hover {
    text-decoration: underline;
}

.single-article-content {
    color: #374151;
    line-height: 1.7;
}

.single-article-content h2,
.single-article-content h3 {
    margin-top: 2em;
    margin-bottom: 1em;
}

.single-article-content p {
    margin-bottom: 1.2em;
}

.single-article-content a {
    color: #4f46e5;
    text-decoration: underline;
}

.single-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.single-article-content blockquote {
    border-left: 4px solid #a5b4fc;
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: #6b7280;
}

.section-divider {
    border: 0;
    height: 1px;
    background-color: #e5e7eb;
    margin: 3rem 0;
}

.comments-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.comments-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-form-wrapper {
    margin-bottom: 2rem;
}

.comment-form-wrapper .form-group {
    margin-bottom: 1rem;
}

.comment-form-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.comment-form-wrapper input[type="text"],
.comment-form-wrapper textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.comment-form-wrapper button {
    background-color: #4f46e5;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.comments-list .comment-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.comments-list .comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background-color: #e0e7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
}

.comment-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    font-size: 0.8rem;
    color: #6b7280;
}

.comment-body p {
    margin: 0;
}

/* === Footer === */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    color: var(--light-text-color);
    font-size: 0.9rem;
    margin-top: 40px;
}

/* === Mobil Uyumluluk === */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .single-article-title {
        font-size: 2rem;
    }
    .single-article-post {
        padding: 20px;
    }
}


/* === Admin Panel Stilleri (Basit İyileştirmeler) === */
.wrapper { display: flex; background-color: #f9fafb; }
.sidebar {
    width: 260px;
    background-color: #1d2024; /* Koyu arkaplan */
    color: #c2c7d0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: -260px; /* Başlangıçta gizli */
        z-index: 1002;
        transition: left 0.3s ease;
    }
    .wrapper.sidebar-open .sidebar {
        left: 0; /* Açıldığında görünür yap */
    }

    .wrapper.sidebar-open .main-content {
        /* Bu kuralları kaldırıyoruz, artık gerek yok */
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.2);
        z-index: 1001; /* Kenar çubuğunun altında */
        cursor: pointer;
    }

    .wrapper.sidebar-open .sidebar-overlay {
        display: block;
    }

    .mobile-menu-button {
        display: block;
    }
}

.sidebar-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #3a3d42;
}

.sidebar-header .logo-link {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-nav {
    flex-grow: 1;
    padding: 1rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    color: #c2c7d0;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background-color: #2c3036;
    color: #fff;
}

.sidebar-nav a.active {
    background-color: #2c3036;
    color: #fff;
    border-left-color: var(--primary-color);
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #3a3d42;
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    color: #c2c7d0;
    text-decoration: none;
    border-radius: 6px;
}

.sidebar-footer a:hover {
    background-color: #2c3036;
    color: #fff;
}

.main-content {
    flex-grow: 1;
    padding: 40px;
    background-color: var(--background-color);
    transition: margin-left 0.3s ease;
    margin-left: 260px; /* Sidebar Genişliği */
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

button, .btn-edit, .btn-delete, .btn-publish {
    padding: 10px 18px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

button[type="submit"], .btn-publish, .btn-edit {
    background-color: var(--primary-color);
    color: #fff;
}

button[type="submit"]:hover, .btn-publish:hover, .btn-edit:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-delete {
    background-color: #EF4444; /* Kırmızı */
    color: #fff;
}

.btn-delete:hover {
    background-color: #DC2626;
}

.btn-secondary {
    background-color: #6B7281; /* Gri */
    color: white;
}

.btn-secondary:hover {
    background-color: #4B5563;
}

.mobile-menu-button {
    position: fixed;
    top: 15px;
    left: 15px;
    display: none; /* Mobilde gösterilecek */
}

@media (max-width: 1024px) {
    .mobile-menu-button {
        display: block;
    }
}

.article-list .article-item .article-image {
    width: 100%;
    height: 250px; /* Sabit yükseklik */
    object-fit: cover; /* Resmi kırparak sığdır */
    border-radius: 8px 8px 0 0;
    margin-bottom: 1rem;
}

.article-list .article-item .article-image-link {
    display: block;
    height: 250px; /* Linkin de yüksekliği olmalı */
    overflow: hidden; /* Taşan kısımları gizle */
    border-radius: 8px 8px 0 0;
}

.article-content {
    padding: 0 1.5rem 1.5rem;
}

/* =================================
   Footer Styles
==================================== */
.site-footer {
    background-color: #1d2024; /* Koyu, modern arkaplan */
    color: #a0a0a0; /* Daha yumuşak metin rengi */
    padding: 2.5rem 0;
    margin-top: 4rem;
    font-size: 0.9rem;
    border-top: 4px solid var(--primary-color);
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-footer a {
    color: #e0e0e0; /* Daha parlak link rengi */
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .footer-top {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #3a3d42;
}

.footer-about h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.footer-about p {
    margin: 0;
    max-width: 500px;
}

.site-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Mobil uyumluluk için */
    gap: 1rem;
}

.footer-bottom .copyright {
    margin: 0;
}

.footer-nav ul {
    display: flex; /* LİSTEYİ YATAY YAP */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.8rem; /* Linkler arası boşluk */
}

/* Mobil Cihazlar için */
@media (max-width: 768px) {
    .site-footer .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* =================================
   Main Slider
==================================== */
.main-slider-container {
    margin-bottom: 3rem;
}

.main-slider .swiper-slide {
    width: 100%;
    height: 450px; /* Yüksekliği küçülttük */
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.main-slider .slide-link {
    display: block;
    width: 100%;
    height: 100%;
    z-index: 1;
    position: relative;
}

.main-slider .slide-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9); /* Yarı saydam beyaz arka plan */
    color: #222; /* Koyu metin rengi */
    padding: 1.5rem;
    border-radius: 8px;
    z-index: 2;
    max-width: calc(100% - 40px);
    box-sizing: border-box;
}

.main-slider .slide-content h2 {
    font-size: 1.8rem; /* Yazı boyutunu biraz küçülttük */
    font-weight: 700;
    margin: 0;
    text-shadow: none; /* Metin gölgesini kaldırdık */
    color: #222;
}

.main-slider .swiper-button-next,
.main-slider .swiper-button-prev {
    color: #fff;
    --swiper-navigation-size: 30px;
}

.main-slider .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7);
    width: 12px;
    height: 12px;
}

.main-slider .swiper-pagination-bullet-active {
    background: #fff;
}

/* =================================
   Home Featured Section
==================================== */
.home-featured-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.home-featured-section > * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.home-featured-section * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Slider daha geniş */
    gap: 2rem;
}

/* =================================
   Main Slider
==================================== */
.featured-slider-column {
    min-width: 0; /* Grid içindeki flex/swiper sorunları için */
}

.featured-slider-column .main-slider {
    width: 100%;
    height: 400px; /* Yeni yükseklik */
    border-radius: 8px;
    overflow: hidden;
}

.main-slider .swiper-slide {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.main-slider .slide-link {
    display: block;
    width: 100%;
    height: 100%;
    z-index: 1;
    position: relative;
}

.main-slider .slide-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #222;
    padding: 1.5rem;
    border-radius: 8px;
    z-index: 2;
    max-width: calc(100% - 40px);
    box-sizing: border-box;
}

.main-slider .slide-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: none;
    color: #222;
}

.main-slider .swiper-button-next,
.main-slider .swiper-button-prev {
    color: #fff;
    --swiper-navigation-size: 30px;
}

/* =================================
   Popular Posts Widget
==================================== */
.popular-posts-column {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    color: #333;
}

.popular-posts-list .popular-post-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.popular-posts-list .popular-post-item:last-child {
    margin-bottom: 0;
}

.popular-posts-list .popular-post-image {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

.popular-posts-list .popular-post-content h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.popular-posts-list .popular-post-content a {
    color: #333;
    text-decoration: none;
}

.popular-posts-list .popular-post-content a:hover {
    color: var(--primary-color);
}


/* Mobil Uyum */
@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr; /* Sütunları alt alta getir */
    }
}

/* =================================
   Comments Section
==================================== */
.comments-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.comment-form-wrapper h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.comments-list {
    margin-top: 3rem;
}

.comments-list .comment-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
}

.comments-list .comment-item:first-child {
    border-top: none;
    padding-top: 0;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.comment-avatar svg {
    width: 28px;
    height: 28px;
    color: #adb5bd;
}

.comment-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: #212529;
    font-size: 1rem;
}

.comment-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.comment-body p {
    margin: 0;
    line-height: 1.6;
    color: #495057;
}

/* =================================
   General Form Styles (Updated)
==================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="file"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.action-forms {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-section button[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.comments-section button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Admin mobil uyum */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 2000;
    }
    .wrapper.sidebar-open .sidebar {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .mobile-menu-button {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1500;
        background: #fff;
        border-radius: 50%;
        padding: 0.5rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
}

.card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0; /* İçerik padding'i card'dan geliyor */
    margin: -30px -30px 20px -30px; /* Kartın padding'ini sıfırla */
    padding: 20px 30px; /* Kendi padding'ini ver */
    border-bottom: 1px solid var(--border-color);
}

.card .card-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.card .card-header .toggle-icon {
    transition: transform 0.3s ease;
}

.card .card-header.is-active .toggle-icon {
    transform: rotate(180deg);
}

.card .collapsible-content {
    display: none;
    padding-top: 20px; /* Başlık ile içerik arasına boşluk */
}

.card .collapsible-content.is-open {
    display: block;
}

/* =================================
   TABLE STYLES
   ================================= */
.table-wrapper {
    overflow-x: auto; /* Yatay kaydırmayı sadece gerektiğinde göster */
    margin-top: 1.5rem;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse; /* Kenarlıkları birleştir */
    border-spacing: 0;
    font-size: 0.95rem;
    color: #4a5568; /* Metin rengi */
}

table th,
table td {
    padding: 12px 15px; /* Hücre içi boşluk */
    text-align: left;
    border-bottom: 1px solid #e2e8f0; /* Satır ayracı */
}

table th {
    background-color: #f7fafc; /* Başlık arka planı */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2d3748;
}

table tbody tr {
    transition: background-color 0.2s ease-in-out;
}

table tbody tr:hover {
    background-color: #f1f5f9; /* Üzerine gelince satır rengi */
}

table tbody tr:last-child td {
    border-bottom: none;
}

table td .action-forms {
    display: flex;
    align-items: center;
    gap: 8px; /* Butonlar arası boşluk */
}

/* Tablo butonları için genel stil */
.btn-edit, .btn-delete, .btn-publish {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-edit {
    background-color: #3b82f6; /* Mavi */
    color: white;
}

.btn-edit:hover {
    background-color: #2563eb;
}

.btn-delete {
    background-color: #ef4444; /* Kırmızı */
    color: white;
}

.btn-delete:hover {
    background-color: #dc2626;
}

.btn-publish {
    background-color: #10b981; /* Yeşil */
    color: white;
}

.btn-publish:hover {
    background-color: #059669;
}


/* =================================
   CARD STYLES
   ================================= */

.sidebar-links {
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    color: #4a5568;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: block;
}

.sidebar-link:hover {
    background-color: #e2e8f0;
    color: #1a202c;
}

.sidebar-no-content {
    color: #718096;
    font-size: 0.9em;
    padding: 8px 12px;
}

.popular-article-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
}

.popular-article-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

/* =================================
   ARTICLE PAGE TWO-COLUMN LAYOUT
   ================================= */
.article-layout {
    display: flex;
    gap: 2.5rem; /* Sütunlar arası boşluk */
    align-items: flex-start;
}
.article-main-column {
    flex: 1;
    min-width: 0; /* flex-shrink'in düzgün çalışması için */
}
.article-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem; /* Sayfa kaydırıldığında sabit kalma mesafesi */
}
/* Kenar çubuğu içindeki bölüm */
.article-sidebar .sidebar-section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.article-sidebar .sidebar-title {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Mobil ve dar ekranlar için */
@media (max-width: 992px) {
    .article-layout {
        flex-direction: column;
    }
    .article-sidebar {
        width: 100%;
        position: static; /* sticky özelliğini kapat */
        margin-top: 2rem;
    }
}

/* =================================
   POPULAR ARTICLES SECTION (BELOW ARTICLE) - BU KISIM ARTIK GEREKLİ DEĞİL
   ================================= */
/* Önceki denemeden kalan bu bölümü temizliyoruz veya yorum satırına alıyoruz */
/*
.popular-articles-section { ... }
.popular-articles-grid { ... }
.article-card-small { ... }
*/

/* =================================
   GENERAL STYLES
   ================================= */

/* =================================
   ADVERTISEMENT STYLES
   ================================= */
.ad-container,
.ad-sidebar-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7fafc; /* Reklam yüklenmezse diye hafif bir arka plan */
    border: 1px dashed #e2e8f0;
    color: #a0aec0;
    text-align: center;
    font-size: 0.9rem;
}
.ad-container-top {
    min-height: 90px;
}
.ad-sidebar-container {
    padding: 10px;
    min-height: 250px;
    margin-bottom: 1.5rem;
}
.ad-in-article,
.ad-below-article {
    margin: 2rem auto;
    min-height: 100px;
}
.ad-mobile-only {
    display: none; /* Varsayılan olarak gizli */
}
/* Mobil cihazlarda göster */
@media (max-width: 768px) {
    .ad-mobile-only {
        display: flex;
    }
    .ad-in-article {
        /* İsteğe bağlı: Makale içi diğer reklamı mobilde gizleyebilirsiniz */
        /* display: none; */
    }
}
.article-sidebar .sidebar-section.ad-sidebar-container {
    padding: 0;
    background-color: transparent;
    border: none;
}
.article-sidebar .sidebar-section.ad-sidebar-container div {
    margin: auto;
}
/* =================================
   ARTICLE PAGE TWO-COLUMN LAYOUT
   ================================= */

/* =================================
   TABLE OF CONTENTS (TOC)
==================================== */
.toc-container {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.toc-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc-list li a {
    display: block;
    color: #555;
    text-decoration: none;
    padding: 0.4rem 0;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.toc-list li a:hover {
    color: #0056b3;
    background-color: #e9ecef;
}

.toc-list .toc-level-3 {
    padding-left: 1.5rem; /* Indent H3 items */
}

/* =================================
   Social Share Buttons
==================================== */
.social-share-section {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.social-share-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: #343a40;
}

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.social-share-btn svg {
    width: 1.2em;
    height: 1.2em;
}

.social-share-btn.facebook { background-color: #1877F2; }
.social-share-btn.twitter { background-color: #1DA1F2; }
.social-share-btn.whatsapp { background-color: #25D366; }
.social-share-btn.linkedin { background-color: #0A66C2; }


/* =================================
   Single Article
==================================== */
.article-layout {
    display: flex;
    gap: 2.5rem; /* Sütunlar arası boşluk */
    align-items: flex-start;
}
.article-main-column {
    flex: 1;
    min-width: 0; /* flex-shrink'in düzgün çalışması için */
}
.article-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem; /* Sayfa kaydırıldığında sabit kalma mesafesi */
}
/* Kenar çubuğu içindeki bölüm */
.article-sidebar .sidebar-section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.article-sidebar .sidebar-title {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Mobil ve dar ekranlar için */
@media (max-width: 992px) {
    .article-layout {
        flex-direction: column;
    }
    .article-sidebar {
        width: 100%;
        position: static; /* sticky özelliğini kapat */
        margin-top: 2rem;
    }
}

/* === İlgini Çekebilir Bölümü === */
.related-articles-section {
    margin: 2rem 0;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.related-article-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.related-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.related-article-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.related-article-content {
    padding: 0.75rem;
}

.related-article-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: var(--secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .related-article-image {
        height: 200px;
    }
}

/* === Kategori Kartı Sabit Boyut === */
.category-card-fixed {
    width: 100%;
    max-width: 300px;
    min-width: 0;
    height: 250px;
    margin: 0;
    box-sizing: border-box;
}
.category-image-fixed {
    width: 100%;
    height: 150px;
    display: block;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.category-img-fixed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.category-content-fixed {
    flex: 1 1 auto;
    padding: 0.75rem 1rem 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: #fff;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.category-title-fixed {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: var(--secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    width: 100%;
}

@media (max-width: 992px) {
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 0.8rem;
    }
    .category-card-fixed {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 600px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    .category-card-fixed {
        height: auto;
    }
}

/* === Breadcrumb Navigation === */
.breadcrumb-nav {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

.breadcrumb-item.active[aria-current="page"] {
    color: var(--secondary-color);
}

/* === Category Description === */
.category-description {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 4px 4px 0;
}

.category-description p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

/* === Search Results === */
.search-results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-results-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.search-results-header h1 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.search-results-header p {
    color: var(--light-text-color);
    font-size: 1.1rem;
    margin: 0;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.search-result-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
}

.search-result-image-link {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.search-result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
}

.search-result-content h2 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
}

.search-result-content h2 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-result-content h2 a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--light-text-color);
    line-height: 1.6;
}

.post-excerpt p {
    margin: 0;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--light-text-color);
}

@media (max-width: 768px) {
    .search-result-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-result-image-link {
        width: 100%;
        height: 200px;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin: 0 0.25rem;
    }
}

/* Header'dan hemen sonraki her şeyi yukarıya yapıştır */
.main-header + section,
.main-header + div,
.main-header + .home-featured-section,
.main-header + .container,
.main-header + .page-wrapper {
    margin-top: -16px !important;
    padding-top: 0 !important;
}

.home-featured-section,
.container,
.page-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.home-featured-section > *,
.page-wrapper > * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

