/* =====================================================
   UAT RACING - STANDART HEADER COMPONENT v2.0
   Icons on top, labels below - vertical nav items
   ===================================================== */

/* Top User Bar */
.uat-topbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    font-size: 13px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.uat-topbar-left {
    display: flex;
    align-items: stretch;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
    flex: 1;
}

/* Ana Sayfa butonu */
.uat-topbar-left > a {
    color: #64ffda;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.2s;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(100, 255, 218, 0.1);
    white-space: nowrap;
    font-size: 10px;
    flex-shrink: 0;
}

.uat-topbar-left > a:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-1px);
}

.uat-topbar-left > a .nav-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
}

.uat-topbar-nav {
    display: flex;
    gap: 1px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    align-items: stretch;
}

.uat-topbar-nav::-webkit-scrollbar {
    display: none;
}

.uat-topbar-nav a {
    color: #8892b0;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    min-width: 48px;
    text-align: center;
    line-height: 1.2;
}

.uat-topbar-nav a .nav-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(100, 255, 218, 0.15);
    transition: all 0.2s;
}

.uat-topbar-nav a:hover {
    color: #64ffda;
    background: rgba(255,255,255,0.05);
}

.uat-topbar-nav a:hover .nav-icon {
    box-shadow: 0 0 12px rgba(100, 255, 218, 0.4);
    transform: scale(1.1);
}

.uat-topbar-nav a.active {
    color: #64ffda;
    background: rgba(100, 255, 218, 0.15);
}

.uat-topbar-nav a.active .nav-icon {
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.uat-topbar-nav a .nav-label {
    display: block;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right side - User info */
.uat-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-left: 8px;
}

.uat-user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.uat-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 20px;
}

.uat-user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #64ffda, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: #1a1a2e;
}

.uat-user-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.uat-user-name {
    font-weight: 600;
    color: #fff;
}

.uat-user-role {
    font-size: 11px;
    color: #64ffda;
    background: rgba(100, 255, 218, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Action buttons (Kuponlarım, Çıkış) */
.uat-logout-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.uat-logout-btn .nav-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.uat-logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* Subscription Badge */
.uat-subscription-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.uat-subscription-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.uat-subscription-badge.basic {
    background: rgba(100, 255, 218, 0.2);
    color: #64ffda;
}

.uat-subscription-badge.expired {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.uat-subscription-badge.admin {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
}

.uat-days-remaining {
    font-size: 10px;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 4px;
}

.uat-days-remaining.warning {
    color: #f59e0b;
    animation: blink 1.5s infinite;
}

.uat-days-remaining.critical {
    color: #ef4444;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Guest state */
.uat-guest-actions {
    display: flex;
    gap: 10px;
}

.uat-login-btn {
    background: linear-gradient(135deg, #64ffda, #3b82f6);
    border: none;
    color: #1a1a2e;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}

.uat-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .uat-topbar {
        padding: 4px 8px;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .uat-topbar-nav {
        display: none;
    }
    
    .uat-user-details {
        display: none;
    }
    
    .uat-subscription-badge span:not(.badge-icon) {
        display: none;
    }
}
