/* ============================================================
   Sözlük Yazarı - Modern Tema
   v2 - Glassmorphism, gradient accents, micro-interactions
   ============================================================ */

:root {
    --brand: #e11d48;
    --brand-dark: #be123c;
    --brand-light: #fb7185;
    --brand-soft: rgba(225, 29, 72, .1);
    --accent: #f59e0b;
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #0f172a;
    --text-soft: #334155;
    --muted: #64748b;
    --border: #e7eaf0;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .05);
    --shadow: 0 6px 24px rgba(15, 23, 42, .07);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .16);
    --grad: linear-gradient(135deg, #e11d48 0%, #f43f5e 50%, #be123c 100%);
    --header-bg: rgba(255, 255, 255, .82);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

[data-bs-theme="dark"] {
    --brand: #fb7185;
    --brand-dark: #f43f5e;
    --brand-light: #fda4af;
    --brand-soft: rgba(251, 113, 133, .14);
    --bg: #0b1220;
    --card: #141c2e;
    --text: #e6ecf7;
    --text-soft: #c3cde0;
    --muted: #8b98b3;
    --border: #232e45;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .3);
    --shadow: 0 6px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .6);
    --header-bg: rgba(11, 18, 32, .85);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    transition: background .3s, color .3s;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand); }

::selection { background: var(--brand); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ============ ÜST BAR ============ */
.topbar {
    background: linear-gradient(90deg, #0b1220, #1a2540);
    color: #aab6d0;
    font-size: .78rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.topbar-date { font-weight: 500; letter-spacing: .2px; }
.topbar-social { display: flex; align-items: center; }
.topbar-social a {
    color: #aab6d0;
    width: 26px; height: 26px;
    margin-left: 4px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.topbar-social a:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }

/* ============ BAŞLIK ============ */
.site-header {
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.site-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--grad);
}
.brand-text {
    font-family: var(--font);
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: -.5px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}
.brand-text:hover { opacity: .85; }
.brand-logo { max-height: 42px; width: auto; display: block; }
.navbar { padding: .6rem 0; }
.navbar-nav .nav-link {
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-soft);
    padding: .55rem .8rem !important;
    position: relative;
    border-radius: 8px;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 2px;
    width: 0; height: 2px;
    background: var(--brand);
    transition: all .25s;
    transform: translateX(-50%);
}
.navbar-nav .nav-link:hover { color: var(--brand); }
.navbar-nav .nav-link:hover::after { width: 60%; }
.btn-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.btn-icon:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-1px); }
.search-collapse { background: var(--card); border-top: 1px solid var(--border); }
.search-collapse .form-control { border-radius: 50px; padding: .55rem 1.2rem; }

/* ============ SON DAKİKA ============ */
.breaking-news {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.breaking-label {
    background: var(--grad);
    color: #fff;
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .5px;
    padding: 6px 14px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(225, 29, 72, .4);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, .5); }
    50% { box-shadow: 0 0 0 6px rgba(225, 29, 72, 0); }
}
.breaking-ticker { flex: 1; overflow: hidden; margin-left: 14px; }
.ticker-track { display: inline-flex; white-space: nowrap; animation: ticker 35s linear infinite; }
.ticker-track a { padding: 9px 0; font-size: .88rem; font-weight: 500; color: var(--text-soft); }
.ticker-track a:hover { color: var(--brand); }
.ticker-sep { margin: 0 18px; color: var(--brand); opacity: .6; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============ ÖNE ÇIKANLAR ============ */
.featured-section { padding-top: 24px; }
.featured-main {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    height: 430px;
    box-shadow: var(--shadow);
    transition: transform .35s, box-shadow .35s;
}
.featured-main:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.featured-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.featured-main:hover img { transform: scale(1.07); }
.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 8, 18, .92) 0%, rgba(4, 8, 18, .35) 55%, rgba(4, 8, 18, .05) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: #fff;
}
.featured-overlay h1 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 10px 0 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.featured-overlay p { color: #dbe2f0; font-size: .92rem; margin-bottom: 6px; }
.featured-overlay small { color: #a9b6d0; }
.featured-side {
    position: relative;
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    min-height: 98px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.featured-side:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.featured-side img { width: 42%; object-fit: cover; transition: transform .5s; }
.featured-side:hover img { transform: scale(1.06); }
.featured-side-body { flex: 1; padding: 13px 15px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.featured-side-body h6 { font-weight: 700; font-size: .88rem; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ KATEGORİ ROZETİ ============ */
.cat-badge {
    background: var(--grad);
    color: #fff;
    font-weight: 700;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 5px 11px;
    border-radius: 50px;
    width: fit-content;
    box-shadow: 0 3px 10px rgba(225, 29, 72, .35);
}

/* ============ BÖLÜM BAŞLIKLARI ============ */
.section-head {
    display: flex;
    align-items: center;
    margin: 8px 0 18px;
    gap: 14px;
}
.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::before {
    content: '';
    width: 5px; height: 24px;
    border-radius: 4px;
    background: var(--grad);
}
.section-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}

/* ============ HABER KARTLARI ============ */
.post-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
    transition: transform .28s, box-shadow .28s, border-color .28s;
    box-shadow: var(--shadow-sm);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.post-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.post-card:hover .post-thumb img { transform: scale(1.07); }
.post-thumb .cat-badge { position: absolute; top: 12px; left: 12px; }
.post-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-title a:hover { color: var(--brand); }
.post-excerpt { color: var(--muted); font-size: .85rem; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; gap: 16px; color: var(--muted); font-size: .76rem; margin-top: auto; }
.post-meta i { color: var(--brand); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ KENAR ÇUBUĞU ============ */
.sidebar { margin-top: 8px; }
.widget {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    padding: 18px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}
.widget-title {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 42px; height: 3px;
    border-radius: 3px;
    background: var(--grad);
}
.side-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.side-item:last-child { border-bottom: none; }
.side-rank {
    font-size: 1.6rem;
    font-weight: 900;
    font-family: var(--font-display);
    color: var(--brand-light);
    min-width: 30px;
    line-height: 1;
}
.side-body h6 { font-size: .85rem; font-weight: 600; margin: 0 0 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-cat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: .9rem;
    font-weight: 500;
    transition: padding .2s, color .2s;
}
.side-cat:last-child { border-bottom: none; }
.side-cat:hover { color: var(--brand); padding-left: 8px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-soft);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 500;
    transition: all .2s;
}
.tag-cloud a:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-1px); }

/* ============ HABER DETAY ============ */
.single-post { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.single-title { font-size: 2rem; font-weight: 800; line-height: 1.28; margin: 12px 0; letter-spacing: -.3px; }
.single-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .82rem; margin-bottom: 16px; }
.author-chip { font-weight: 700; color: var(--text); }

/* ---------- Beğeni / İstatistik Çubuğu ---------- */
.post-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff, #fff) padding-box, var(--grad) border-box;
    border: 1px solid transparent;
    color: var(--brand);
    border-radius: 50px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: .9rem;
    transition: all .2s;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(225, 29, 72, .12);
}
.like-btn .like-icon {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--brand-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    transition: all .25s;
}
.like-btn .like-count {
    background: var(--brand);
    color: #fff;
    border-radius: 50px;
    padding: 2px 10px;
    font-size: .8rem;
    min-width: 28px;
    text-align: center;
    transition: all .2s;
}
.like-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(225, 29, 72, .25); }
.like-btn.liked { background: var(--grad); color: #fff; }
.like-btn.liked .like-icon { background: rgba(255, 255, 255, .25); color: #fff; }
.like-btn.liked .like-count { background: #fff; color: var(--brand); }
.like-btn.pop .like-icon { animation: heartPop .45s cubic-bezier(.2, .8, .3, 1.4); }
@keyframes heartPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.45); }
    70% { transform: scale(.9); }
    100% { transform: scale(1); }
}
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-soft);
    transition: all .2s;
}
.stat-pill i { color: var(--brand); }
.stat-pill:hover { border-color: var(--brand); color: var(--brand); }
.heart-particle {
    position: fixed;
    z-index: 3000;
    pointer-events: none;
    color: #e11d48;
    font-size: 15px;
    line-height: 1;
    transform: translate(-50%, -50%);
    animation: heartFloat .9s cubic-bezier(.2, .7, .3, 1) forwards;
}
.heart-particle i { font-size: 16px; }
@keyframes heartFloat {
    0% { transform: translate(-50%, -50%) scale(.6); opacity: 1; }
    60% { opacity: 1; }
    100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(var(--s, 1.2)); opacity: 0; }
}
.single-tools { padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .95rem;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}
.share:hover { transform: translateY(-2px) scale(1.05); color: #fff; }
.share.fb { background: #1877f2; }
.share.tw { background: #0f1419; }
.share.wa { background: #25d366; }
.share.tg { background: #229ed9; }
.share.copy { background: var(--muted); border: none; }
.single-image { border-radius: var(--radius); overflow: hidden; margin: 0 0 22px; box-shadow: var(--shadow-sm); }
.single-image img { width: 100%; max-height: 540px; object-fit: cover; }
.source-note {
    background: var(--brand-soft);
    border-left: 4px solid var(--brand);
    padding: 10px 14px;
    font-size: .82rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
    color: var(--text-soft);
}
.single-content { font-size: 1.06rem; line-height: 1.85; color: var(--text); }
.single-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0; }
.single-content p { margin-bottom: 1.3rem; }
.single-content h2, .single-content h3 { font-weight: 800; margin: 1.6rem 0 .9rem; letter-spacing: -.3px; }
.single-content h2 { font-size: 1.5rem; }
.single-content blockquote {
    border-left: 4px solid var(--brand);
    background: var(--brand-soft);
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    margin: 1.4rem 0;
    color: var(--text-soft);
    font-style: italic;
}
.single-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.single-content ul, .single-content ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.single-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
    background: var(--brand-soft);
    border: 1px solid transparent;
    color: var(--brand-dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    transition: all .2s;
}
.tag-pill:hover { background: var(--brand); color: #fff; }

/* ============ YORUMLAR ============ */
.comments-section { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.comments-head h3 { font-size: 1.2rem; font-weight: 800; }
.comment { display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(225, 29, 72, .3);
}
.comment-head { display: flex; justify-content: space-between; gap: 10px; }
.comment-form { margin-top: 20px; }
.comment-form .form-control { border-radius: 10px; padding: .6rem .9rem; }

/* ============ ARAMA ============ */
.search-results { display: flex; flex-direction: column; gap: 14px; }
.search-item {
    display: flex;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    transition: transform .25s, box-shadow .25s;
    box-shadow: var(--shadow-sm);
}
.search-item:hover { transform: translateX(5px); box-shadow: var(--shadow); }
.search-item img { width: 130px; height: 88px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.search-item h3 { font-size: 1rem; font-weight: 700; margin: 6px 0 4px; }

/* ============ KATEGORİ / SAYFA ============ */
.category-header, .author-box, .single-page { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.category-header h1 { font-size: 1.6rem; font-weight: 800; }
.author-avatar {
    width: 68px; height: 68px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(225, 29, 72, .35);
}

/* ============ ARŞİV ============ */
.archive-list { overflow: hidden; }
.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    transition: background .2s;
}
.archive-item:last-child { border-bottom: none; }
.archive-item:hover { background: var(--bg); }

/* ============ SAYFALAMA ============ */
.pagination-wrap { margin-top: 28px; display: flex; justify-content: center; }
.pagination .page-link {
    color: var(--text-soft);
    border-color: var(--border);
    background: var(--card);
    border-radius: 10px !important;
    margin: 0 3px;
    min-width: 40px;
    text-align: center;
    transition: all .2s;
}
.pagination .page-item.active .page-link { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(225, 29, 72, .35); }
.pagination .page-link:hover { color: var(--brand); border-color: var(--brand); }

/* ============ REKLAM ============ */
.ad-slot { margin: 18px 0; text-align: center; overflow: hidden; }
.ad-slot img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* ============ FOOTER ============ */
.site-footer {
    background: linear-gradient(180deg, #0b1220 0%, #070d18 100%);
    color: #fff;
    padding: 52px 0 0;
    margin-top: 56px;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad);
}
.footer-brand { color: #fff; font-weight: 900; text-transform: uppercase; font-size: 1.4rem; }
.footer-brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.site-footer h6 { font-weight: 700; margin-bottom: 16px; font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; color: #cbd5e1; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #8b98b3; font-size: .9rem; transition: color .2s, padding .2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #1a2540;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: all .2s;
}
.footer-social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.footer-contact li { margin-bottom: 9px; font-size: .9rem; color: #8b98b3; }
.footer-contact i { color: var(--brand-light); margin-right: 8px; }
.footer-bottom {
    border-top: 1px solid #1a2540;
    padding: 18px 0;
    margin-top: 34px;
    font-size: .84rem;
    color: #64748b;
}
.footer-bottom a { color: #8b98b3; }

/* ============ KAYDIR BUTONU ============ */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(225, 29, 72, .4);
    z-index: 1040;
    transition: all .25s;
}
.scroll-top.show { display: inline-flex; }
.scroll-top:hover { transform: translateY(-3px); }

/* ============ MOBİL MENÜ ============ */
.mobile-nav li a { display: block; padding: 13px; border-bottom: 1px solid var(--border); font-weight: 600; }
.offcanvas { background: var(--card); color: var(--text); }

/* ============ OKUMA İLERLEME ============ */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--grad);
    width: 0;
    z-index: 2000;
}

/* ============ HATA SAYFASI ============ */
.error-code { font-size: 6.5rem; font-weight: 900; font-family: var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.error-page h1 { font-weight: 800; }

/* ============ NEWSLETTER ============ */
.newsletter-widget {
    background: var(--grad);
    color: #fff;
    border: none;
    box-shadow: 0 12px 28px rgba(225, 29, 72, .35);
}
.newsletter-widget .widget-title { color: #fff; }
.newsletter-widget .widget-title::after { background: #fff; }
.newsletter-widget .text-muted { color: #fecdd3 !important; }
.newsletter-widget .form-control { border: none; border-radius: 50px; padding: .55rem 1.1rem; }

/* ============ BUTONLAR ============ */
.btn-danger { background: var(--grad); border: none; font-weight: 600; border-radius: 10px; padding: .5rem 1.2rem; box-shadow: 0 6px 16px rgba(225, 29, 72, .3); transition: all .2s; }
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(225, 29, 72, .45); background: var(--grad); }
.form-control, .form-select { border-radius: 10px; border-color: var(--border); background: var(--card); color: var(--text); }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--card); color: var(--text); }

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .featured-main { height: 320px; }
    .featured-overlay h1 { font-size: 1.3rem; }
    .single-title { font-size: 1.5rem; }
    .brand-text { font-size: 1.25rem; }
}
@media (max-width: 767px) {
    .featured-main { height: 250px; }
    .featured-overlay h1 { font-size: 1.1rem; }
    .search-item img { width: 96px; height: 68px; }
    .single-post { padding: 18px; }
    .single-title { font-size: 1.3rem; }
    .error-code { font-size: 4.5rem; }
}

/* ============ DALGALANAN BAYRAK ============ */
.flag-banner {
    padding: 42px 0;
    background: radial-gradient(1200px 500px at 50% -10%, var(--brand-soft), transparent 60%);
    overflow: hidden;
}
.flag-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center;
}
.tr-flag {
    width: min(460px, 90vw);
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(225, 29, 72, .35));
    border-radius: 12px;
}
.flag-banner-text h3 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -.5px;
    margin: 0 0 4px;
}
.flag-banner-text p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ============ KAYDIRMA ANİMASYONLARI ============ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ MODERN DOKUNUŞLAR ============ */
.section-title {
    background: linear-gradient(90deg, var(--text), var(--text));
    -webkit-background-clip: text;
    background-clip: text;
}
.post-card { position: relative; }
.post-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: var(--grad);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.post-card:hover::before { opacity: 1; }
.brand-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: brandShine 6s linear infinite;
}
@keyframes brandShine { to { background-position: 200% center; } }
