/* assets/css/detail.css - NİHAİ VE OPTİMİZE EDİLMİŞ SÜRÜM */

/* --- OKUMA ÇUBUĞU --- */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    z-index: 10000; /* Menünün üzerinde kalması için artırıldı */
    transition: width 0.1s linear;
}

/* --- ANA YAPI --- */
.detail-wrapper {
    margin-top: 20px;
    margin-bottom: 60px;
    display: flex;
    gap: 30px; /* Boşluk artırıldı */
    align-items: stretch;
}

.detail-main {
    flex: 1;
    min-width: 0; /* Flex taşmasını önler */
}

.detail-sidebar {
    width: 320px; /* Sidebar genişliği standartlaştırıldı */
    flex-shrink: 0;
}

/* --- MAKALE KARTI --- */
.news-article {
    background: var(--bg-card);
    padding: 25px; /* İç boşluk artırıldı */
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02); /* Hafif derinlik */
}

@media (max-width: 768px) {
    .news-article {
        padding: 15px; /* Mobilde padding azaltıldı */
        border: none;
        background: transparent;
        box-shadow: none;
    }
}

/* --- BREADCRUMB --- */
.breadcrumb {
    font-size: 13px; /* Yazı boyutu okunabilirlik için artırıldı */
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb .sep { color: var(--border-color); display: flex; align-items: center; opacity: 0.6; }
.breadcrumb .sep i { font-size: 10px; }
.breadcrumb .current { color: var(--text-heading); font-weight: 600; }

/* --- BAŞLIK VE ÖZET --- */
.article-title {
    font-size: 32px; /* Başlık büyütüldü */
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-heading);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.article-summary {
    font-size: 20px; /* Özet boyutu artırıldı */
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-body);
    margin-bottom: 25px;
    font-family: var(--font-main);
    text-align: left; /* Okunabilirlik için sola dayalı */
    opacity: 0.9;
}

/* --- META ŞERİT --- */
.article-meta-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.meta-group { display: flex; align-items: center; gap: 15px; }
.meta-editor { color: var(--text-heading); display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.meta-editor i { color: var(--primary-color); }
.meta-dot { color: var(--border-color); font-weight: bold; }
.ml-10 { margin-left: 10px; }

/* --- GÖRSEL --- */
.article-image-wrapper {
    width: 100%;
    margin-bottom: 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-surface);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.article-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9; /* Görüntü oranını koru */
    object-fit: cover;
}

/* --- PAYLAŞIM VE KAYDETME BUTONLARI --- */
.full-width-share {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
}

.share-btn {
    flex: 1;
    height: 42px; /* Tıklanabilir alan artırıldı */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 18px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.share-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* Sosyal Medya Renkleri */
.share-btn.fb { background: #1877f2; }
.share-btn.x { background: #000; border: 1px solid #333; }
.share-btn.wa { background: #25d366; }
.share-btn.cp { background: var(--bg-surface); color: var(--text-body); border: 1px solid var(--border-color); flex: 0 0 50px; }

/* (YENİ) Kaydet Butonu Stilleri */
.share-btn.save-btn {
    background-color: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    flex: 0 0 50px;
}
.share-btn.save-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
/* Kaydedilmiş Durum (Aktif) */
.share-btn.save-btn.saved {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* --- İÇERİK STİLLERİ --- */
.article-content {
    font-size: 19px; /* Okuma kolaylığı için artırıldı */
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 50px;
    font-family: var(--font-main);
    text-align: left; /* Sola dayalı metin okumayı kolaylaştırır */
}

.article-content p { margin-bottom: 25px; }

/* Başlıklar */
.article-content h2, .article-content h3 { font-weight: 800; color: var(--text-heading); margin: 35px 0 20px; line-height: 1.3; }
.article-content h2 { font-size: 26px; }
.article-content h3 { font-size: 22px; }

/* Resimler */
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 25px 0; display: block; }

/* Alıntılar */
.article-content blockquote {
    background: var(--bg-surface);
    border-left: 5px solid var(--primary-color);
    margin: 35px 0;
    padding: 25px;
    font-style: italic;
    font-size: 20px;
    color: var(--text-heading);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* (YENİ) Linkler: Belirgin ve Renkli */
.article-content a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}
.article-content a:hover {
    color: var(--primary-hover);
    background-color: rgba(var(--primary-rgb), 0.1); /* Hafif arka plan */
}

/* (YENİ) Listeler: Nokta ve Rakamları Geri Getir */
.article-content ul, .article-content ol {
    margin-bottom: 25px;
    padding-left: 25px; /* İçeriden boşluk bırak */
    margin-left: 10px;
    color: var(--text-body);
}

.article-content ul {
    list-style-type: disc; /* Noktalı liste */
}

.article-content ol {
    list-style-type: decimal; /* Sayılı liste */
}

.article-content li {
    margin-bottom: 10px;
    padding-left: 5px;
}

/* --- YORUM TETİKLEYİCİ --- */
.comment-trigger-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 40px;
}

.comment-trigger-box:hover {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.trigger-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.trigger-left {
    display: flex;
    align-items: center; /* Dikey ortalama */
    gap: 20px;
}

.trigger-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.trigger-text h3 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
}

.trigger-text p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

.btn-trigger {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.btn-trigger:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(var(--primary-rgb), 0.4);
}

.loader-box {
    padding: 40px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--text-muted);
    margin-top: 20px;
}

/* --- DİĞER --- */
.article-divider {
    position: relative;
    text-align: center;
    margin: 60px 0 30px;
}
.article-divider::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}
.article-divider span {
    position: relative;
    z-index: 2;
    background: var(--bg-body);
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.infinite-loader {
    text-align: center;
    padding: 40px;
    font-size: 32px;
    color: var(--primary-color);
}

/* --- SIDEBAR --- */
.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 20px; /* Sticky pozisyonu ayarlandı */
    z-index: 10;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-surface);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.related-item {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    align-items: flex-start;
    text-decoration: none;
    group: hover;
}
.related-item:last-child { margin-bottom: 0; }

.related-img {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.related-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.related-item:hover .related-img img { transform: scale(1.1); }

.related-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.related-item:hover h4 { color: var(--primary-color); }

/* Reklam Alanı */
.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background: var(--bg-surface);
    color: var(--text-muted);
    font-weight: 700;
    text-align: center;
    font-size: 13px;
    border-radius: var(--radius-md);
}

/* --- MOBİL ÖZELLEŞTİRMELERİ --- */
@media (max-width: 992px) {
    .detail-wrapper {
        flex-direction: column;
        margin-top: 20px;
    }
    
    .detail-main {
        width: 100%;
    }

    .detail-sidebar {
        width: 100%;
        display: none; /* Mobilde sidebar gizle */
    }
    
    .trigger-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .btn-trigger {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .detail-wrapper {
        padding: 0; /* Mobilde kenar boşluğunu sıfırla */
        gap: 0;
    }

    .news-article {
        padding: 15px;
        border-radius: 0; /* Kart görünümünü kaldır */
        border: none;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-body);
        box-shadow: none;
        margin-bottom: 0;
    }

    .article-title { font-size: 24px; line-height: 1.3; }
    .article-summary { font-size: 17px; }
    .article-content { font-size: 18px; }
    
    .share-btn {
        height: 40px;
        font-size: 16px;
    }
    
    .breadcrumb { font-size: 12px; margin-bottom: 10px; }
}

/* --- YORUM ALANI --- */
.comment-list {
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.comment-body {
    background-color: var(--bg-surface);
    padding: 20px;
    border-radius: var(--radius-md);
    border-top-left-radius: 0;
    flex: 1;
    position: relative;
    border: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.comment-author {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-heading);
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.6;
}

.comment-form-wrapper {
    margin-top: 50px;
    background-color: #fff;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.comment-form-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    resize: vertical;
    font-family: var(--font-main);
    font-size: 15px;
    margin-bottom: 20px;
    background-color: #fff;
    transition: var(--transition);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.no-comments {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 30px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
}