/**
 * Futuristic Navigation CSS
 * CORCADO.COM - Mystic & Modern Navigation
 */

/* Header - Glassmorphism & Futuristic */
.header {
    background: linear-gradient(135deg, 
        rgba(15, 15, 26, 0.95), 
        rgba(26, 26, 46, 0.9)) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15) !important;
    padding: 16px 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(139, 92, 246, 0.1) inset;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 215, 0, 0.5),
        transparent);
}

/* Logo - Futuristic */
.logo {
    font-size: 22px !important;
    font-weight: 200 !important;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none !important;
    position: relative;
    transition: all 0.4s ease;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple));
    transition: width 0.4s ease;
}

.logo:hover::after {
    width: 100%;
}

.logo:hover {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Navigation Links - Icon-based */
.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.nav-link .icon {
    font-size: 16px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--accent-purple);
    transform: translateY(-1px);
}

.nav-link:hover .icon {
    opacity: 1;
    transform: scale(1.1);
}

.nav-link.active {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.15), 
        rgba(139, 92, 246, 0.15));
    border-color: rgba(255, 215, 0, 0.3);
    color: var(--accent-gold);
}

.nav-link.active .icon {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

/* Dropdown - Futuristic */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.nav-dropdown-toggle:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--accent-purple);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: linear-gradient(135deg, 
        rgba(15, 15, 26, 0.98), 
        rgba(26, 26, 46, 0.95)) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    min-width: 220px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(139, 92, 246, 0.2) inset,
                0 0 40px rgba(139, 92, 246, 0.1) !important;
    animation: dropdownFadeIn 0.3s ease;
    display: none !important; /* Default: closed */
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    margin-bottom: 4px !important;
    transition: all 0.2s ease !important;
    font-size: 13px;
    border: 1px solid transparent;
}

.nav-dropdown-menu a .icon {
    font-size: 14px;
    opacity: 0.7;
}

.nav-dropdown-menu a:hover {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1), 
        rgba(139, 92, 246, 0.1)) !important;
    border-color: rgba(255, 215, 0, 0.2);
    color: var(--accent-gold) !important;
    transform: translateX(4px);
}

.nav-dropdown-menu a:hover .icon {
    opacity: 1;
    transform: scale(1.15);
}

/* Language Selector - Futuristic */
.language-selector {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-link {
    padding: 6px 14px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: var(--text-secondary) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent;
    letter-spacing: 1px;
}

.lang-link:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    color: var(--accent-purple) !important;
    border-color: rgba(139, 92, 246, 0.3);
}

.lang-link.active {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.2), 
        rgba(139, 92, 246, 0.2)) !important;
    color: var(--accent-gold) !important;
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

/* Credit Display - Futuristic */
.credit-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1), 
        rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.credit-icon {
    font-size: 18px;
    animation: creditPulse 2s ease-in-out infinite;
}

@keyframes creditPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.credit-amount {
    font-weight: 600;
    font-size: 16px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Bottom Nav - Futuristic */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, 
        rgba(15, 15, 26, 0.98), 
        rgba(26, 26, 46, 0.95));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 400;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-bottom-nav a .icon {
    font-size: 20px;
    transition: all 0.3s ease;
}

.mobile-bottom-nav a.active {
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
}

.mobile-bottom-nav a.active .icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.mobile-bottom-nav a:hover {
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
}

/* Typography Improvements */
h1, h2, h3 {
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.section-header::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    border-radius: 2px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 4px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .nav-link .text {
        display: none;
    }
    
    .nav-link .icon {
        font-size: 18px;
    }
    
    .logo {
        font-size: 18px !important;
        letter-spacing: 2px;
    }
}

