/* Shared Navigation Styles for all HAXZ pages */

.header {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(229, 39, 61, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    gap: 2rem;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 39, 61, 0.5) 50%, transparent);
}

.header-left {
    flex-shrink: 0;
}

.header h1 {
    font-size: 1.5rem;
    font-family: 'Oxanium', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #f9f8d7 0%, #e5273d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header-nav a {
    color: #f9f8d7;
    text-decoration: none;
    font-size: 0.875rem;
    font-family: 'Share Tech Mono', monospace;
    opacity: 0.7;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.header-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5273d, transparent);
    transform: translateX(-50%);
    transition: width 0.3s;
}

.header-nav a:hover {
    opacity: 1;
    color: #e5273d;
}

.header-nav a:hover::before {
    width: 100%;
}

.header-nav a.active {
    opacity: 1;
    background: rgba(229, 39, 61, 0.1);
    border: 1px solid rgba(229, 39, 61, 0.3);
    color: #e5273d;
}

/* Special shiny staking button */
.header-nav a.staking-link {
    background: linear-gradient(135deg, #e5273d 0%, #c41e33 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f9f8d7 !important;
    opacity: 1;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.header-nav a.staking-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.header-nav a.staking-link:hover {
    background: linear-gradient(135deg, #ff3d52 0%, #e5273d 100%);
    transform: translateY(-2px);
}

.header-nav a.staking-link.active {
    background: linear-gradient(135deg, #e5273d 0%, #c41e33 100%);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(229, 39, 61, 0.1);
    border: 1px solid rgba(229, 39, 61, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    color: #f9f8d7;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background: rgba(229, 39, 61, 0.2);
    border-color: rgba(229, 39, 61, 0.5);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 968px) {
    .header {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 1rem;
    }
    
    .header-left {
        flex: 1;
    }
    
    .header-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(229, 39, 61, 0.2);
        margin-top: 0.5rem;
        order: 3;
    }
    
    .header-nav.mobile-open {
        display: flex;
    }
    
    .header-nav a {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }
    
    .header > div:last-child {
        order: 2;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    .connect-btn {
        font-size: 0.75rem;
        padding: 0.6rem 1rem;
    }
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(229, 39, 61, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover {
    border-color: rgba(229, 39, 61, 0.5);
    background: rgba(229, 39, 61, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 39, 61, 0.3);
}

.social-icon svg {
    position: relative;
    z-index: 1;
}

/* Connect Wallet Button (for staking page) */
.connect-btn {
    background: linear-gradient(135deg, #e5273d 0%, #c41e33 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    color: #f9f8d7;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Oxanium', sans-serif;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.connect-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.connect-btn:hover::before {
    left: 100%;
}

.connect-btn > * {
    position: relative;
    z-index: 1;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 39, 61, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.connect-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Connected state */
.connect-btn.connected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

.connect-btn.connected:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

