/* ============================================================
   ÜST BAR (LIVESCORE) — AUTH BUTONLARI EN SAĞDA
   Logo ve ana menüden TAMAMEN AYRI, üstte sağa yapışık
   ============================================================ */

/* Livescore actions kapsayıcısı - arama + auth bloğunu hizala */
.livescore-actions {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Auth bloğu - en sağa yapışık */
.topbar-auth {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

/* Tek bir auth butonu */
.topbar-auth-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 12px !important;
    border-radius: 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none !important;
    line-height: 1 !important;
    height: auto !important;
    border: 1px solid transparent;
    color: #fff !important;
}
.topbar-auth-btn i {
    font-size: 12px;
}

/* ÜYE GİRİŞİ - tonal */
.topbar-auth-btn.topbar-auth-login {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}
.topbar-auth-btn.topbar-auth-login:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

/* YAZAR GİRİŞİ - koyu */
.topbar-auth-btn.topbar-auth-author {
    background: rgba(29, 53, 87, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}
.topbar-auth-btn.topbar-auth-author:hover {
    background: rgba(42, 74, 114, 1);
    transform: translateY(-1px);
}

/* ÜYE OL - KIRMIZI CTA */
.topbar-auth-btn.topbar-auth-register {
    background: #e63946;
    border-color: #e63946;
    box-shadow: 0 2px 4px rgba(230, 57, 70, 0.35);
}
.topbar-auth-btn.topbar-auth-register:hover {
    background: #c1121f;
    border-color: #c1121f;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(230, 57, 70, 0.5);
}

/* Giriş yapmış kullanıcı */
.topbar-auth-btn.topbar-auth-panel {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}
.topbar-auth-btn.topbar-auth-panel:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}
.topbar-auth-btn.topbar-auth-logout {
    background: rgba(220, 53, 69, 0.85);
    border-color: rgba(220, 53, 69, 1);
    padding: 6px 10px !important;
}
.topbar-auth-btn.topbar-auth-logout:hover {
    background: rgba(220, 53, 69, 1);
    transform: translateY(-1px);
}

/* ============ RESPONSIVE: ORTA EKRAN ============ */
@media (max-width: 1280px) {
    .topbar-auth-btn {
        padding: 6px 10px !important;
        font-size: 11.5px !important;
    }
}

@media (max-width: 992px) {
    /* Yazıları gizle, sadece ikon */
    .topbar-auth-btn span {
        display: none;
    }
    .topbar-auth-btn {
        padding: 6px 9px !important;
    }
    .topbar-auth {
        gap: 4px;
        padding-left: 6px;
        margin-left: 2px;
    }
}

/* ============ KÜÇÜK MOBİL ============ */
@media (max-width: 600px) {
    /* Yazar girişini gizle - mobilde en önemlisi: Üye Girişi ve Üye Ol */
    .topbar-auth-btn.topbar-auth-author {
        display: none;
    }
    .topbar-auth-btn {
        padding: 5px 8px !important;
    }
}

@media (max-width: 420px) {
    /* En küçükte sadece "Üye Ol" kalır */
    .topbar-auth-btn.topbar-auth-login {
        display: none;
    }
    /* Üye Ol butonu daha vurgulu */
    .topbar-auth-btn.topbar-auth-register span {
        display: inline !important;
        font-size: 10.5px !important;
    }
}

/* ============ LIVESCORE BAR İÇ ESNEKLİK ============ */
/* Livescore bar zaten flex kullanıyor, sadece sağ tarafın esnekliğini güvence altına alalım */
.livescore-bar {
    flex-wrap: nowrap;
}

/* Livescore actions sağa yapışsın */
.livescore-bar > .livescore-actions {
    margin-left: auto;
}
