/* Haber detay sayfasına özel stiller (ortak olanlar site.css'te) */

main { flex: 1; width: 100%; max-width: 1200px; margin: 2rem auto; padding: 0 1.25rem; }

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
    align-items: start;
}
.content-area { min-width: 0; }

/* ---------- Makale ---------- */
.article-container {
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), var(--glass-highlight);
}
.article-container.is-entering > * { animation: riseIn 0.55s var(--ease) backwards; }
.article-container.is-entering > *:nth-child(2) { animation-delay: 60ms; }
.article-container.is-entering > *:nth-child(3) { animation-delay: 120ms; }
.article-container.is-entering > *:nth-child(4) { animation-delay: 180ms; }

.article-image {
    width: 100%; display: block; object-fit: cover;
    height: auto; aspect-ratio: 16 / 9;                 /* yüklenene kadar yer ayır */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0; transition: opacity 0.5s ease;
}
.article-image.loaded { opacity: 1; }
/* Yatay görsel: tam genişlik, kendi oranında (uç oranlar JS'te 4:3 – 21:9 arasına sıkıştırılır) */
.article-image.is-landscape { max-height: none; }
/* Dikey / kare görsel: sabit yükseklikte kırpılmış şerit */
.article-image.is-portrait { aspect-ratio: auto; height: 420px; }
@media (max-width: 520px) { .article-image.is-portrait { height: 320px; } }

.article-header { padding: 2rem; }
.article-title {
    font-size: 2rem; font-weight: 700; letter-spacing: -0.3px; line-height: 1.3;
    color: #fff; overflow-wrap: anywhere;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.article-sub-bar {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
    padding: 1.35rem 2rem;
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}
.article-source { color: var(--text-muted); font-size: 0.9rem; text-align: right; }
.article-source strong { color: #f1f5f9; }
.article-source div + div { margin-top: 4px; }

.author-meta-top { display: flex; align-items: center; gap: 12px; }
.author-meta-top img {
    width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.36);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.author-info { display: flex; flex-direction: column; }
.author-name { color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; transition: color var(--t-fast); }
.author-name:hover { color: var(--accent-soft); }
.author-date { color: var(--text-muted); font-size: 0.88rem; }

.article-body { padding: 2rem; color: rgba(241, 245, 249, 0.92); font-size: 1.08rem; line-height: 1.82; }
.article-text { max-width: 70ch; }
.article-text p { margin-bottom: 1.5rem; overflow-wrap: anywhere; }
.article-text a { color: var(--accent-soft); }

/* ---------- Sesli dinle ---------- */
.tts-btn {
    display: inline-flex; align-items: center; gap: 9px;
    margin-bottom: 1.75rem;
    padding: 0.65rem 1.3rem;
    border-radius: var(--r-pill);
    font-size: 0.95rem; font-weight: 600;
    color: #fff; cursor: pointer;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.55), rgba(59, 130, 246, 0.28));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.32), inset 0 1px 1.5px rgba(255, 255, 255, 0.55);
    transition: transform var(--t-base) var(--ease), box-shadow var(--t-base), background var(--t-base), opacity var(--t-base);
}
.tts-btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.58); box-shadow: 0 10px 26px rgba(59, 130, 246, 0.45), inset 0 1px 1.5px rgba(255, 255, 255, 0.75); }
.tts-btn[data-state="loading"] { opacity: 0.7; pointer-events: none; }
.tts-btn[data-state="playing"] { background: linear-gradient(135deg, rgba(248, 113, 113, 0.65), rgba(220, 38, 38, 0.38)); }

.original-link {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 0.75rem;
    padding: 0.55rem 1.15rem;
    border-radius: var(--r-pill);
    background: rgba(96, 165, 250, 0.14);
    border: 1px solid rgba(147, 197, 253, 0.35);
    color: var(--accent-soft);
    text-decoration: none; font-size: 0.92rem; font-weight: 600;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transition: transform var(--t-base) var(--ease), background var(--t-base), border-color var(--t-base), color var(--t-base);
}
.original-link:hover { background: rgba(96, 165, 250, 0.25); border-color: rgba(255, 255, 255, 0.5); color: #fff; transform: translateY(-1px); }

/* ---------- Paylaş ---------- */
.social-share {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
    margin-top: 2.5rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.share-text { font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.share-buttons-container { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.share-btn { color: #fff; font-size: 1.1rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: rgba(255, 255, 255, 0.28); }
.btn-twitter  { background: rgba(15, 23, 42, 0.65); }
.btn-facebook { background: rgba(24, 119, 242, 0.52); }
.btn-whatsapp { background: rgba(37, 211, 102, 0.46); }
.btn-telegram { background: rgba(0, 136, 204, 0.52); }
.btn-copy     { background: rgba(255, 255, 255, 0.12); }
.btn-facebook:hover { background: rgba(24, 119, 242, 0.72); box-shadow: 0 8px 20px rgba(24, 119, 242, 0.42), inset 0 1px 1px rgba(255, 255, 255, 0.6); }
.btn-whatsapp:hover { background: rgba(37, 211, 102, 0.68); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6); }
.btn-telegram:hover { background: rgba(0, 136, 204, 0.72); box-shadow: 0 8px 20px rgba(0, 136, 204, 0.42), inset 0 1px 1px rgba(255, 255, 255, 0.6); }
.btn-twitter:hover  { background: rgba(15, 23, 42, 0.9); }

/* ---------- Yazar kartı ---------- */
.author-card {
    display: flex; align-items: center; gap: 1.5rem;
    margin-top: 2.5rem; padding: 1.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26), inset 0 1px 1px rgba(255, 255, 255, 0.32);
}
.author-card img {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.author-card-text { flex: 1; }
.author-card-name { display: block; margin-bottom: 0.4rem; color: var(--accent-soft); font-size: 1.25rem; font-weight: 700; text-decoration: none; transition: color var(--t-fast); }
.author-card-name:hover { color: #fff; }
.author-card-text p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }

/* ---------- Yan panel ---------- */
.sidebar-area { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.sidebar-widget { padding: 1.5rem; }
.widget-title {
    font-size: 0.98rem; font-weight: 700; letter-spacing: 0.6px; line-height: 1.1;
    color: var(--accent-soft);
    margin-bottom: 1.25rem; padding-left: 10px;
    border-left: 3px solid var(--accent);
    text-shadow: 0 0 14px rgba(96, 165, 250, 0.35);
}
.widget-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.icon-btn.is-rss { color: #fdba74; border-color: rgba(249, 115, 22, 0.42); background: rgba(249, 115, 22, 0.16); }

.widget-list { display: flex; flex-direction: column; gap: 1rem; }
.widget-item {
    display: flex; gap: 12px; align-items: center;
    text-decoration: none; color: inherit;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: riseIn 0.45s var(--ease) backwards;
    animation-delay: calc(var(--i, 0) * 50ms);
    transition: transform var(--t-fast) ease;
}
.widget-item:hover { transform: translateX(3px); }
.widget-item:last-child { border-bottom: none; padding-bottom: 0; }
.widget-img {
    width: 64px; height: 64px; flex-shrink: 0;
    border-radius: 14px; object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.62rem; line-height: 1.15; color: var(--text-muted); text-align: center; padding: 4px;
    overflow: hidden; overflow-wrap: anywhere;
}
.widget-text-container { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.widget-item-title {
    font-size: 0.9rem; font-weight: 600; color: #fff; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color var(--t-fast);
}
.widget-item:hover .widget-item-title { color: var(--accent-soft); }
.widget-item-meta { font-size: 0.76rem; color: var(--text-muted); }
.widget-empty { color: var(--text-muted); font-size: 0.9rem; }

.widget-categories { display: flex; flex-direction: column; gap: 10px; }
.w-category-btn {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-ctl);
    color: var(--text-main); text-decoration: none; font-size: 0.95rem; font-weight: 600;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22);
    transition: transform var(--t-base) var(--ease), background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.w-category-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.36); color: #fff; transform: translateX(3px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.42); }
.w-category-btn .fa-chevron-right { font-size: 0.8rem; color: var(--text-muted); }
.w-category-btn span i { margin-right: 8px; }

/* ---------- Yorumlar ---------- */
.comments-section { padding: 2rem; }
.comments-title {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 1.4rem; font-weight: 700; color: #fff;
    margin-bottom: 1.5rem; padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(96, 165, 250, 0.65);
}

/* ---------- Yükleniyor / hata ---------- */
.article-skeleton { padding: 2rem; }
.article-skeleton .skeleton { margin-bottom: 1rem; }
.sk-hero { height: 240px; border-radius: 14px; }
.sk-h1 { height: 30px; width: 80%; }
.sk-p { height: 15px; }
.sk-p.short { width: 55%; }
.state-box { padding: 3rem 2rem; text-align: center; color: var(--text-muted); }
.state-box h3 { color: #fff; margin-bottom: 0.5rem; }

/* ---------- Duyarlı ---------- */
@media (max-width: 950px) {
    .page-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .sidebar-area { position: static; }
}
@media (max-width: 768px) {
    .article-header { padding: 1.5rem; }
    .article-sub-bar { padding: 1.2rem 1.5rem; }
    .article-body { padding: 1.35rem; font-size: 1.04rem; }
    .article-title { font-size: 1.55rem; }
    .comments-section { padding: 1.35rem; }
    .article-source { text-align: left; }
    .social-share { flex-direction: column; align-items: flex-start; gap: 10px; }
    .author-card { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
    main { padding: 0 1rem; }
}
