/* ==========================================================================
   blog.css - Modern Blog & Haberler Tasarım Sistemi (MyKonya)
   Zengin tipografi, lüks hero, kartlar, kategori filtreleri, animasyonlar
   ========================================================================== */

:root {
    --blog-teal-50: #f0fdfa;
    --blog-teal-100: #ccfbf1;
    --blog-teal-200: #99f6e4;
    --blog-teal-500: #14b8a6;
    --blog-teal-600: #0d9488;
    --blog-teal-700: #0f766e;
    --blog-navy-950: #050b14;
    --blog-navy-900: #091322;
    --blog-navy-800: #0f1f35;
    --blog-slate-50: #f8fafc;
    --blog-slate-100: #f1f5f9;
    --blog-slate-200: #e2e8f0;
    --blog-slate-300: #cbd5e1;
    --blog-slate-500: #64748b;
    --blog-slate-600: #475569;
    --blog-slate-700: #334155;
    --blog-slate-800: #1e293b;
    --blog-slate-900: #0f172a;
}

.blog-page-wrapper {
    background-color: #f8fafc;
    min-height: 90vh;
}

/* ==========================================================================
   Hero Bölümü (Lüks Koyu Gradient, Glow & Izgara)
   ========================================================================== */
.blog-hero {
    position: relative;
    background: linear-gradient(135deg, #06101e 0%, #0a192f 50%, #0d2836 100%);
    color: #ffffff;
    padding: 7rem 0 3.75rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 5.5rem 0 2.5rem;
    }
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.2px, transparent 1.2px);
    background-size: 26px 26px;
    opacity: 0.35;
    pointer-events: none;
}

.blog-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.22) 0%, rgba(13, 148, 136, 0.05) 50%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.blog-hero-glow-left {
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 65%);
    filter: blur(60px);
    pointer-events: none;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: 9999px;
    color: #2dd4bf;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.blog-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .blog-hero-title {
        font-size: 3rem;
    }
}

.blog-hero-desc {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 640px;
    margin: 0;
}

/* Hero Arama Çubuğu */
.blog-search-box {
    position: relative;
    max-width: 480px;
}

.blog-search-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    color: #ffffff;
    font-size: 0.925rem;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.blog-search-input::placeholder {
    color: #94a3b8;
}

.blog-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.14);
    border-color: #2dd4bf;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25);
}

.blog-search-icon {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    stroke: #94a3b8;
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
    z-index: 2;
}

.blog-search-box:focus-within .blog-search-icon {
    color: #2dd4bf;
    stroke: #2dd4bf;
}

.blog-search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
}

/* ==========================================================================
   Kategori Barı
   ========================================================================== */
.blog-cat-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 74px;
    z-index: 30;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.blog-cat-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.75rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blog-cat-list::-webkit-scrollbar {
    display: none;
}

.blog-cat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: #475569;
    background: #f1f5f9;
    border: 1px solid transparent;
}

.blog-cat-item:hover {
    color: #0f172a;
    background: #e2e8f0;
    transform: translateY(-1px);
}

.blog-cat-item.active {
    color: #ffffff;
    background: #0f172a;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.blog-cat-count {
    font-size: 0.72rem;
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.blog-cat-item:not(.active) .blog-cat-count {
    background: rgba(0, 0, 0, 0.06);
    color: #64748b;
}

/* ==========================================================================
   Blog Kartları (Grid & Modern Card)
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.75rem;
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    position: relative;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(20, 184, 166, 0.35);
    border-color: #cbd5e1;
}

.blog-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.06);
}

.blog-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card-gradient {
    opacity: 1;
}

.blog-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-card-date-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card-title {
    color: #0d9488;
}

.blog-card-excerpt {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.825rem;
}

.blog-card-readmore {
    color: #0d9488;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease;
}

.blog-card:hover .blog-card-readmore {
    gap: 0.6rem;
    color: #0f766e;
}

.blog-card-stats {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

/* ==========================================================================
   Boş Durum (Empty State)
   ========================================================================== */
.blog-empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    max-width: 580px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.blog-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f0fdfa;
    color: #0d9488;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.blog-empty-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.blog-empty-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ==========================================================================
   Sayfalama (Pagination)
   ========================================================================== */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3.5rem;
}

.blog-page-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.blog-page-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.blog-page-btn.active {
    background: #0d9488;
    border-color: #0d9488;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.blog-page-btn.nav-btn {
    gap: 0.4rem;
}

/* ==========================================================================
   Blog Detay Sayfası Tasarım Sistemi
   ========================================================================== */
.blog-detail-wrapper {
    background-color: #f8fafc;
    min-height: 90vh;
}

.blog-detail-hero {
    position: relative;
    background: linear-gradient(135deg, #06101e 0%, #0a192f 50%, #0d2836 100%);
    color: #ffffff;
    padding: 6.5rem 0 3.5rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    opacity: 0.35;
    pointer-events: none;
}

.blog-detail-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

/* Breadcrumb */
.blog-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
}

.blog-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-breadcrumb a:hover {
    color: #ffffff;
}

.blog-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
}

.blog-breadcrumb-active {
    color: #2dd4bf;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Detay Başlık */
.blog-detail-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .blog-detail-title {
        font-size: 2.25rem;
    }
}

/* Meta Bar */
.blog-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.875rem;
    color: #cbd5e1;
}

.blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.blog-meta-item svg {
    color: #2dd4bf;
}

/* Featured Media */
.blog-detail-cover {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
    border: 1px solid #e2e8f0;
    margin-top: -2rem;
    margin-bottom: 2.5rem;
    aspect-ratio: 16 / 9;
    max-height: 520px;
}

.blog-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tipografi & İçerik Alanı */
.blog-prose-content {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .blog-prose-content {
        padding: 1.5rem;
        font-size: 0.9rem;
    }
}

.blog-prose-content .lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #1e293b;
}

.blog-prose-content h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    line-height: 1.35;
    padding-left: 0.75rem;
    border-left: 4px solid #0d9488;
}

.blog-prose-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1.5rem;
    margin-bottom: 0.65rem;
}

.blog-prose-content p {
    margin-bottom: 1.25rem;
    color: #334155;
    font-size: 0.95rem;
}

.blog-prose-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.blog-prose-content ul, 
.blog-prose-content ol {
    margin: 1.25rem 0 1.5rem 1.5rem;
    padding: 0;
}

.blog-prose-content li {
    margin-bottom: 0.5rem;
}

.blog-prose-content blockquote {
    background: #f0fdfa;
    border-left: 4px solid #0d9488;
    padding: 1.25rem 1.5rem;
    border-radius: 0 1rem 1rem 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: #0f766e;
}

/* Paylaşım & Etkileşim Kutusu */
.blog-share-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    margin-top: 2rem;
}

.blog-share-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.blog-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.blog-share-copy {
    background: #0d9488;
    color: #ffffff;
}

.blog-share-whatsapp {
    background: #25d366;
    color: #ffffff;
}

.blog-share-twitter {
    background: #000000;
    color: #ffffff;
}

.blog-share-facebook {
    background: #1877f2;
    color: #ffffff;
}

/* Sidebar Widget */
.blog-detail-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-sidebar-widget {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.blog-sidebar-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-sidebar-card {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.85rem;
    transition: all 0.2s ease;
}

.blog-sidebar-card:hover {
    background: #f8fafc;
    transform: translateX(3px);
}

.blog-sidebar-thumb {
    width: 72px;
    height: 72px;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.blog-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-sidebar-content {
    flex: 1;
    min-width: 0;
}

.blog-sidebar-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.blog-sidebar-card:hover .blog-sidebar-title {
    color: #0d9488;
}

.blog-sidebar-date {
    font-size: 0.75rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Yazar / Şehir Bülteni Kartı */
.blog-author-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
    border: 1px solid #ccfbf1;
    border-radius: 1.25rem;
    padding: 1.5rem;
}

.blog-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0d9488;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

