/* =============================================================================
   FAZ 7 — Topbar / Header / Footer modernizasyonu            (2026-08-20)
   theme.css'ten SONRA yüklenir; yalnızca görsel katman ekler, yapıyı ezmez.
   Renkler theme.css değişkenlerinden türetilir (--primary: #7c3aed).
   ============================================================================= */

/* ---------------------------------------------------------------- TOPBAR ---
   Eskiden düz bir çubuktu. Artık markanın moru ile ince bir degrade ve
   alt kenarda hairline var; "Yeni Gönderiler" etiketi rozet gibi duruyor. */
.topbar {
    background: linear-gradient(90deg, #faf8ff 0%, #f4f1fe 55%, #faf8ff 100%);
    border-bottom: 1px solid rgba(124, 58, 237, 0.12);
    font-size: 0.8125rem;
}

.topbar-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--primary, #7c3aed);
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.topbar-label i { color: #fff; }

.topbar-title {
    font-weight: 500;
    transition: color 160ms ease;
}

.topbar-item:hover .topbar-title { color: var(--primary, #7c3aed); }

.topbar-image {
    border-radius: 6px;
    object-fit: cover;
}

.topbar-date {
    font-variant-numeric: tabular-nums;
    opacity: 0.65;
}

/* Sosyal ikonlar: dolu daire yerine ince çerçeve, hover'da markaya döner */
.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(124, 58, 237, 0.22);
    color: var(--primary, #7c3aed);
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.topbar-social a:hover {
    background: var(--primary, #7c3aed);
    color: #fff;
    transform: translateY(-1px);
}

/* ---------------------------------------------------------------- HEADER ---
   Sayfa kaydırıldığında yapışkan kalır; arkası bulanık, gölgesi yumuşak.
   Aktif menü öğesi alt çizgi ile işaretlenir. */
.premium-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(17, 24, 39, 0.07);
    transition: box-shadow 200ms ease, background 200ms ease;
}

/* JS scroll sınıfı eklerse daha belirgin gölge */
.premium-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 24px -12px rgba(17, 24, 39, 0.35);
}

.premium-header .nav-link {
    position: relative;
    font-weight: 500;
    padding-block: 0.6rem;
}

.premium-header .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--primary, #7c3aed);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 200ms ease;
}

.premium-header .nav-link:hover::after,
.premium-header .nav-link:focus-visible::after,
.premium-header .nav-item.active .nav-link::after {
    transform: scaleX(1);
}

.premium-header .brand-logo {
    transition: opacity 160ms ease;
}

.premium-header .navbar-brand:hover .brand-logo { opacity: 0.85; }

/* Klavye kullanıcısı için görünür odak — erişilebilirlik */
.premium-header a:focus-visible,
.topbar a:focus-visible,
.modern-footer a:focus-visible {
    outline: 2px solid var(--primary, #7c3aed);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------------------------------------------------------------- FOOTER ---
   Üstte markanın moruyla ince bir aksan şeridi; sütun başlıkları
   alt çizgi yerine kısa bir işaret ile ayrılıyor. */
.modern-footer {
    position: relative;
}

.modern-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed 0%, #a78bfa 45%, #7c3aed 100%);
}

.footer-widget-title {
    position: relative;
    padding-bottom: 0.6rem;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.footer-widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary, #7c3aed);
}

.footer-links a,
.footer-posts a {
    transition: color 160ms ease, transform 160ms ease;
    display: inline-block;
}

.footer-links a:hover,
.footer-posts a:hover {
    color: #c4b5fd;
    transform: translateX(3px);
}

.footer-social .social-link {
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.footer-social .social-link:hover {
    background: var(--primary, #7c3aed);
    border-color: var(--primary, #7c3aed);
    color: #fff;
    transform: translateY(-2px);
}

/* Ana siteye köprü kartı — marka sütunundaki boşluğu dolduruyor */
.footer-cta {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.footer-cta-primary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 240px;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(167, 139, 250, 0.28);
    background: rgba(124, 58, 237, 0.10);
    color: inherit;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.footer-cta-primary:hover {
    background: rgba(124, 58, 237, 0.20);
    border-color: rgba(167, 139, 250, 0.55);
    transform: translateY(-2px);
    color: inherit;
}

.footer-cta-primary > i:first-child {
    font-size: 1.35rem;
    color: #a78bfa;
    flex-shrink: 0;
}

.footer-cta-primary span {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.footer-cta-primary strong { font-size: 0.9rem; }

.footer-cta-primary small {
    font-size: 0.75rem;
    opacity: 0.7;
}

.footer-cta-ok {
    margin-left: auto;
    opacity: 0.55;
    transition: transform 180ms ease, opacity 180ms ease;
}

.footer-cta-primary:hover .footer-cta-ok {
    transform: translateX(3px);
    opacity: 1;
}

.footer-cta-rss {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(167, 139, 250, 0.28);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: background 180ms ease, transform 180ms ease;
}

.footer-cta-rss:hover {
    background: rgba(249, 115, 22, 0.16);
    border-color: rgba(249, 115, 22, 0.45);
    color: inherit;
    transform: translateY(-2px);
}

/* Alt bar: "Powered by" yerine gerçek gezinme */
.footer-legal {
    display: flex;
    gap: 1.1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    font-size: 0.8125rem;
}

.footer-legal a {
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 160ms ease, color 160ms ease;
}

.footer-legal a:hover {
    opacity: 1;
    color: #c4b5fd;
}

.copyright {
    font-size: 0.8125rem;
    opacity: 0.75;
}

/* ------------------------------------------------------------- RESPONSIVE - */
@media (max-width: 991px) {
    .premium-header { position: static; }  /* mobilde ekran alanını yeme */
}

@media (max-width: 767px) {
    .footer-legal { justify-content: flex-start; margin-top: 0.75rem; }
    .footer-cta { margin-top: 1.25rem; }
    .topbar-date { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .premium-header .nav-link::after,
    .footer-links a,
    .footer-posts a,
    .footer-cta-primary,
    .footer-cta-rss,
    .topbar-social a { transition: none; }
}
