/**
 * Header Component Styles
 * Extracted from inline styles in header.php
 *
 * @package ZeroDetail
 * @subpackage CSS Components
 */

/* ==================== HEADER ==================== */

.dashboard-header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==================== LOGO ==================== */

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo span {
    color: #4CAF50;
}

/* ==================== NAVIGATION ==================== */

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 2rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background: rgba(76, 175, 80, 0.3);
    color: white;
}

.nav-link i {
    font-size: 1rem;
}

/* KYC Pending Highlight */
.nav-link.kyc-pending {
    background: rgba(255, 152, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* CTA Buttons in Navigation */
.nav-cta .login-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-cta .register-btn {
    background: #4CAF50;
    color: white;
}

.nav-cta .register-btn:hover {
    background: #45a049;
}

/* ==================== USER INFO ==================== */

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.user-avatar a {
    color: white;
    text-decoration: none;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    line-height: 1.2;
}

.user-name a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.user-name a:hover {
    text-decoration: underline;
}

.user-role {
    font-size: 0.8rem;
    opacity: 0.8;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* ==================== MOBILE MENU ==================== */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        margin: 0;
    }

    .main-navigation.show {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.75rem 1rem;
    }

    .user-info {
        display: none;
        position: absolute;
        top: 100%;
        right: 20px;
        background: white;
        color: #333;
        padding: 1rem;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        min-width: 200px;
    }

    .user-info.show {
        display: flex;
    }

    .user-avatar {
        margin: 0 auto;
    }

    .user-details {
        align-items: center;
    }

    .user-name a {
        color: #333;
    }

    .logout-btn {
        background: #f44336;
        width: 100%;
        justify-content: center;
    }
}

/* ==================== TABLET ==================== */

@media (max-width: 1024px) {
    .nav-link span {
        /* display: none; */
        color: white;
    }

    .nav-link {
        padding: 0.5rem;
    }

    .nav-link i {
        font-size: 1.2rem;
    }
}
