/* =====================================================
   BLOG DETAY — MODERN OKUMA DENEYİMİ
   (style.css'teki eski .article-* stillerini geçersiz kılar)
   ===================================================== */

.blog-detay-page main.container,
main.container {
    max-width: 820px;
}

/* Breadcrumb */
.blog-detay-page .breadcrumb,
main.container > .breadcrumb {
    font-size: 0.82rem;
    color: var(--text-light, #888);
    padding: 1.25rem 0 0.5rem;
    background: none;
}
.breadcrumb a { color: var(--text-light, #888); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb span[aria-current] { color: var(--text-color, #333); }

/* Kart görünümünü kaldır: temiz, editorial düzen */
.blog-header { padding: 0; }
.blog-article {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

/* Başlık bloğu — gradyan kutu YOK, temiz sola/ortaya hizalı */
.article-header {
    background: none !important;
    color: inherit !important;
    text-align: center;
    padding: 1rem 0 1.5rem;
}
.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.article-header h1 {
    color: var(--text-color, #1a1a1a) !important;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    line-height: 1.2;
    font-weight: 800;
    margin: 0 auto 1.2rem;
    max-width: 15ch;
    text-transform: none;
}

/* Meta — avatar + yazar + tarih + okuma süresi */
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light, #777);
}
.meta-author { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--text-color, #333); }
.author-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 700;
}
.meta-dot { color: var(--border-light, #ccc); }
.meta-item { display: inline-flex; align-items: center; gap: 0.3rem; }

/* Kapak görseli — geniş, yuvarlak, gölgeli */
.article-image {
    max-height: none;
    margin: 0.5rem 0 2.5rem;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.article-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* İçerik — okunabilir tipografi */
.article-content {
    padding: 0;
    font-size: 1.15rem;
    line-height: 1.85;
    color: #2b2b2b;
}
.article-content > *:first-child { margin-top: 0; }
.article-content p { margin: 0 0 1.5rem; }
.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.3;
    color: var(--text-color, #1a1a1a);
    text-transform: none;
    margin: 2.2rem 0 0.9rem;
}
.article-content h2 { font-size: 1.7rem; }
.article-content h3 { font-size: 1.4rem; }
.article-content h4 { font-size: 1.2rem; }
.article-content a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }
.article-content ul,
.article-content ol { margin: 0 0 1.5rem 1.25rem; padding-left: 1rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 1.5rem 0;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}
.article-content blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-light, #f8f9fa);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #444;
    font-size: 1.2rem;
}
.article-content pre,
.article-content .ql-code-block-container {
    background: #23241f;
    color: #f8f8f2;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

/* Ayraç + Sosyal paylaşım — modern pill'ler */
.article-footer {
    padding: 1.75rem 0;
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-light, #eee);
    background: none;
}
.social-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.social-share > span { font-weight: 700; color: var(--text-color, #333); margin-right: 0.25rem; }
.social-share a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: transform .2s, opacity .2s;
}
.social-share a:hover { transform: translateY(-2px); opacity: 0.92; }
.social-share a[aria-label*="Facebook"] { background: #1877f2; }
.social-share a[aria-label*="Twitter"]  { background: #111; }
.social-share a[aria-label*="LinkedIn"] { background: #0a66c2; }

/* Benzer yazılar */
.similar-posts { margin: 3rem 0 2rem; }
.similar-posts h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    text-transform: none;
    margin-bottom: 1.5rem;
    text-align: center;
}
/* Kart artık <a> — link görünümü sıfırlansın */
.similar-posts .blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
}
.similar-posts .blog-card h3 {
    text-transform: capitalize;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* Mobil */
@media (max-width: 768px) {
    main.container { max-width: 100%; }
    .article-content { font-size: 1.05rem; line-height: 1.75; }
    .article-image { margin-bottom: 1.25rem; border-radius: 14px; }
    .article-header { padding: 0.25rem 0 0.75rem; }
    .article-header h1 { max-width: 100%; margin-bottom: 0.75rem; }

    /* Meta (yazar/tarih/okuma süresi) mobilde tamamen gizli */
    .article-meta { display: none; }

    /* "Bu yazıyı paylaş" bölümü mobilde gizli */
    .article-footer { display: none; }

    /* Benzer Yazılar — ana sayfadaki gibi tek sütun yatay liste kartı */
    .similar-posts { margin: 2rem 0 1rem; }
    .similar-posts h2 { font-size: 1.35rem; margin-bottom: 1rem; }
    .similar-posts .blog-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .similar-posts .blog-card {
        display: grid;
        grid-template-columns: 120px 1fr;
        align-items: stretch;
        background: var(--bg-light, #fff);
        border: 0.5px solid var(--border-light, #eee);
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    .similar-posts .blog-card:not(:has(.blog-image)) {
        grid-template-columns: 1fr;
    }
    .similar-posts .blog-image {
        height: 100%;
        min-height: 112px;
        margin: 0;
    }
    .similar-posts .blog-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .similar-posts .blog-content {
        padding: 12px 14px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .similar-posts .blog-category {
        align-self: flex-start;
        font-size: 0.7rem;
        padding: 0.15rem 0.55rem;
        margin-bottom: 0.35rem;
    }
    .similar-posts .blog-card h3 {
        font-size: 0.98rem;
        line-height: 1.3;
        margin: 0 0 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .similar-posts .blog-excerpt {
        font-size: 0.84rem;
        line-height: 1.35;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 400px) {
    .similar-posts .blog-card { grid-template-columns: 104px 1fr; }
    .similar-posts .blog-excerpt { -webkit-line-clamp: 1; }
}

/* Karanlık mod uyumu */
.dark-mode .article-content { color: #d7d7d7; }
.dark-mode .article-header h1 { color: #fff !important; }
.dark-mode .article-content h2,
.dark-mode .article-content h3,
.dark-mode .article-content h4 { color: #fff; }
.dark-mode .article-content blockquote { background: #1e293b; color: #cbd5e1; }
