/* ==========================================================================
   PRD TEST A.Ş. - PREMIUM MAKALE (SINGLE POST) STYLES
   Tipografi, Okunabilirlik ve SEO Odaklı Editoryal Tasarım
   ========================================================================== */

:root {
    --brand-navy: #0f172a;
    --brand-blue: #2563eb;
    --surface-gray: #f8fafc;
    --border-delicate: #e2e8f0;
    --text-heading: #1e293b;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-float: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
}

.blog-single-main {
    background-color: var(--surface-gray);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- SİNEMATİK MAKALE HERO --- */
.single-hero {
    position: relative;
    padding-top: 200px; /* Header boşluğunu tolere et */
    padding-bottom: 80px;
    background-color: var(--surface-gray);
    color: var(--brand-navy);
    text-align: center;
    overflow: hidden;
}

.single-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Modern, teknolojik ızgara/nokta deseni */
    background-image: radial-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center;
    z-index: 1;
}

.single-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.8s ease forwards;
}

.single-category {
    display: inline-block;
    background: var(--brand-blue);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.single-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 25px;
    letter-spacing: -1px;
    color: var(--brand-navy);
    font-family: 'Playfair Display', serif;
}

.single-meta {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.meta-author-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-avatar {
    border-radius: 50%;
    border: 2px solid var(--border-delicate);
    background: #fff;
    object-fit: contain;
    padding: 2px;
}

.meta-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.meta-author {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.meta-date-time {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}


/* --- MAKALE GRID YAPISI --- */
.single-layout-grid {
    display: grid;
    grid-template-columns: 1fr 350px; /* İçerik ve Sidebar */
    gap: 40px;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px 100px;
    position: relative;
    z-index: 10;
}

/* --- ANA İÇERİK BÖLÜMÜ (TİPOGRAFİ) --- */
.article-content-wrapper {
    background-color: #fff;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 20px 50px -10px rgba(37, 99, 235, 0.12); /* Mavi tonlu, lüks ve derin gölge */
    border: 1px solid var(--border-delicate);
    position: relative;
    overflow: hidden; /* Üst bandın taşmasını engeller */
}

/* Makalenin en üstündeki şık ve hareketli (kayan) renkli şerit */
.article-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue), #0ea5e9, var(--brand-navy));
    background-size: 200% 100%;
    animation: gradient-shift 6s ease infinite;
    z-index: 10;
}
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Scroll İçerik Animasyonu */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #334155;
}

.article-body p { margin-bottom: 25px; }

.article-body h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin: 60px 0 25px 0;
    letter-spacing: -0.5px;
    line-height: 1.3;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}
/* Başlık Altı Çizgisi: Renk Geçişli (Gradient) ve Parlayan (Glow) */
.article-body h2::after { 
    content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 4px; 
    background: linear-gradient(90deg, var(--brand-blue), #0ea5e9); 
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
    border-radius: 4px;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 40px 0 20px 0;
}

/* Dropcap (İlk Harf Büyütme) - Renk Geçişli Lüks Tipografi */
.dropcap {
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-right: 15px;
    padding-top: 5px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue), #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Playfair Display', serif;
}

/* Şık Alıntılar (Blockquote) - Buz Mavisi Arka Plan ve İkon */
.article-body blockquote {
    margin: 50px 0;
    padding: 30px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    border-radius: 16px;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--brand-navy);
    position: relative;
    box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.1);
    overflow: hidden;
}

/* Blockquote Sol Renkli Çizgi */
.article-body blockquote::after {
    content: '';
    position: absolute;
    left: 0; top: 0; height: 100%; width: 6px;
    background: linear-gradient(to bottom, var(--brand-blue), #0ea5e9);
}

.article-body blockquote::before {
    content: '\f10d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 20px; left: 15px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--brand-blue), #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.15;
}

/* Bilgi/Uyarı Kutuları */
.info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 16px;
    margin: 40px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}
.info-box:hover { transform: translateX(5px); box-shadow: 0 10px 20px rgba(0,0,0,0.03); }

/* --- HUKUKİ UYARI (ALERT) PULSE VE SHAKE ANİMASYONLARI --- */
@keyframes alert-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@keyframes icon-shake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    10%, 30% { transform: rotate(-15deg) scale(1.1); }
    20%, 40% { transform: rotate(15deg) scale(1.1); }
    50% { transform: rotate(0deg) scale(1); }
}

.info-box.alert { background: #fff1f2; border-color: #fecaca; animation: alert-pulse 2s infinite; }
.info-box.alert i { color: #ef4444; animation: icon-shake 2.5s infinite ease-in-out; transform-origin: center; }

.info-box i { font-size: 2rem; color: var(--brand-blue); margin-top: 5px; }
.info-box h4 { margin: 0 0 10px 0; font-size: 1.2rem; color: var(--brand-navy); }
.info-box p { margin: 0; font-size: 1.05rem; }

/* Listeler */
.article-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.article-body ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.article-body ul li::before {
    content: '\f058';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0; top: 4px;
    color: var(--brand-blue);
}

/* Vurgu (Mark) */
.article-body mark {
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-blue);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* --- PREMIUM LIGHTBOX (GÖRSEL BÜYÜTME) --- */
.article-body img {
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    cursor: zoom-in;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
@media (hover: hover) {
    .article-body img:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-float);
    }
}

.prd-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.92); /* Koyu lacivert zemin */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.prd-lightbox.active { opacity: 1; visibility: visible; }

.prd-lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.prd-lightbox.active .prd-lightbox-img { transform: scale(1); }

.prd-lightbox-close {
    position: absolute;
    top: 30px; right: 40px;
    color: #fff; font-size: 2.5rem; cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}
.prd-lightbox-close:hover { transform: rotate(90deg); color: var(--brand-blue); }

/* --- YAZAR OTORİTE KUTUSU (E-E-A-T) --- */
.author-bio-box {
    margin-top: 60px;
    padding: 35px;
    background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
    border: 1px solid #bae6fd;
    border-radius: 20px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    box-shadow: 0 15px 35px -10px rgba(37, 99, 235, 0.15);
    position: relative;
    overflow: hidden;
}

/* Yazar Kutusu Arka Plan Işık Hüzmesi (Glow) */
.author-bio-box::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.author-bio-avatar {
    position: relative;
    flex-shrink: 0;
}

.author-bio-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.verified-badge {
    position: absolute;
    bottom: 5px;
    right: 0;
    background: #fff;
    color: #10b981; /* Doğrulanmış yeşili */
    border-radius: 50%;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.author-bio-info { flex: 1; }
.author-bio-name { font-size: 1.3rem; font-weight: 800; color: var(--brand-navy); margin: 0 0 5px 0; }
.author-bio-title { display: block; font-size: 0.9rem; color: var(--brand-blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.author-bio-desc { font-size: 0.95rem; color: var(--text-body); line-height: 1.6; margin-bottom: 15px; }

.author-bio-links { display: flex; gap: 15px; }
.author-bio-links a {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.85rem; font-weight: 600; color: #64748b;
    background: #fff; border: 1px solid #e2e8f0;
    padding: 6px 12px; border-radius: 8px;
    transition: all 0.3s ease;
}
.author-bio-links a:hover { color: var(--brand-blue); border-color: var(--brand-blue); box-shadow: 0 4px 10px rgba(37,99,235,0.1); }

/* --- YÜZEN SOSYAL PAYLAŞIM BARI (FLOATING SHARE) --- */
.floating-share-bar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: sticky;
    top: 130px;
    height: fit-content;
    align-items: center;
    z-index: 20;
}

.share-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.fs-btn {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-blue); font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}
.fs-btn:hover { transform: scale(1.1) translateX(-2px); color: #fff; border-color: transparent; }
.fs-ln:hover { background: #0a66c2; box-shadow: 0 5px 15px rgba(10,102,194,0.4); }
.fs-tw:hover { background: #000; box-shadow: 0 5px 15px rgba(0,0,0,0.4); }
.fs-wa:hover { background: #25d366; box-shadow: 0 5px 15px rgba(37,211,102,0.4); }
.fs-print:hover { background: var(--brand-navy); box-shadow: 0 5px 15px rgba(15,23,42,0.4); }

.fs-divider { width: 2px; height: 30px; background: #e2e8f0; border-radius: 2px; }

/* --- ETİKETLER VE PAYLAŞIM --- */
.article-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-delicate);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.article-tags a {
    display: inline-block;
    background: #f0f9ff;
    color: var(--brand-blue);
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
    border: 1px solid #bae6fd;
    transition: all 0.3s;
}
.article-tags a:hover { 
    background: linear-gradient(135deg, var(--brand-blue), #0ea5e9); 
    color: #fff; 
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

.share-btns { display: flex; gap: 10px; }
.share-btns a {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: transform 0.3s;
}
.share-btns a:hover { transform: translateY(-3px); }
.btn-fb { background: #1877f2; }
.btn-tw { background: #1da1f2; }
.btn-ln { background: #0a66c2; }
.btn-wa { background: #25d366; }

/* --- SIDEBAR WIDGETS --- */
.single-sidebar {
    position: sticky;
    top: 130px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* İçindekiler (TOC) */
.toc-widget {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-delicate);
    box-shadow: var(--shadow-card);
}
/* İçindekiler Başlığı Gradient */
.toc-widget h3 { 
    font-size: 1.3rem; 
    background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px; font-weight: 800; padding-bottom: 15px;
    position: relative;
}
.toc-widget h3::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: #f1f5f9;
}
.toc-list { list-style: none; padding: 0; margin: 0; border-left: 2px solid #f1f5f9; }
.toc-list li { margin-bottom: 10px; }
.toc-list a {
    display: block;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 15px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 8px 8px 0;
}
.toc-list a::before {
    content: '';
    position: absolute;
    left: -2px; top: 0; height: 100%; width: 3px;
    background: linear-gradient(to bottom, #0ea5e9, var(--brand-blue));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s;
}
@media (hover: hover) {
    .toc-list a:hover, .toc-list a.active { 
        color: var(--brand-blue); font-weight: 800; padding-left: 22px; 
        background: linear-gradient(90deg, rgba(14, 165, 233, 0.1) 0%, transparent 100%);
    }
    .toc-list a:hover::before, .toc-list a.active::before { transform: scaleY(1); }
}

/* Responsive */
@media (max-width: 1024px) {
    .single-layout-grid { grid-template-columns: 1fr; }
    .single-sidebar { position: static; }
    .floating-share-bar { display: none; }
}
@media (max-width: 768px) {
    .single-hero {
        height: auto;
        min-height: 400px;
        padding-top: 140px;
        padding-bottom: 60px;
    }
    .single-title { font-size: 2.2rem; }
    .article-content-wrapper { padding: 30px 20px; }
    .article-body h2 { font-size: 1.8rem; }
    .article-body blockquote { padding: 20px; font-size: 1.1rem; }
    .meta-author-wrap { flex-direction: column; gap: 10px; text-align: center; }
    .meta-text-wrap { align-items: center; text-align: center; }
    .author-bio-box { flex-direction: column; text-align: center; align-items: center; }
    .floating-share-bar { display: none; } /* Mobilde yüzen barı gizle, footer paylaşımları yeterli */
}