/* ====================================================
   AGENT MUNDIAL — Shared Base Stylesheet
   Extracted from index.html (homepage template)
   Include this in every page to guarantee consistent UI.
   ==================================================== */

/* --- ROOT VARIABLES --- */
:root {
    --bg-deep-navy: #060B19;
    --bg-panel: rgba(15, 23, 42, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --accent-blue: #2563EB;
    --accent-light-blue: #60A5FA;
    --accent-gold: #F59E0B;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(96, 165, 250, 0.3);
    --success-green: #10B981;
}

/* --- GLOBAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

/* --- BODY --- */
body {
    background-color: var(--bg-deep-navy);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(37, 99, 235, 0.05), transparent 25%);
    min-height: 100vh;
}

/* --- HEADINGS --- */
h1,
h2,
h3,
h4,
.nav-logo,
.btn-primary,
.title-font {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(6, 11, 25, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 5%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(6, 11, 25, 0.95);
}

.nav-logo {
    font-weight: 900;
    font-size: 24px;
    color: var(--text-primary);
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-logo span {
    color: var(--accent-light-blue);
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

/* --- BURGER MENU --- */
.burger-menu {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
    padding: 10px;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

/* Burger Animation to 'X' */
.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--accent-light-blue);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--accent-light-blue);
}

@media (max-width: 991px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(6, 11, 25, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1500;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        transform: translateX(100%);
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-link {
        font-size: 18px;
        letter-spacing: 3px;
    }

    /* Move wallet info to bottom on mobile or hide it to focus nav */
    #walletInfo {
        margin-top: 20px;
    }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-light-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-primary);
}

/* --- BUTTONS --- */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #1D4ED8);
    color: white;
    padding: 12px 28px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
    border-color: var(--accent-light-blue);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Orbitron';
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* --- FORMS & DROPDOWNS --- */
select {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;

    /* Custom Dropdown Arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360A5FA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

select:hover {
    background-color: rgba(30, 41, 59, 0.9);
    border-color: rgba(96, 165, 250, 0.5);
}

select:focus {
    outline: none;
    border-color: var(--accent-light-blue);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.2);
}

select option {
    background-color: var(--bg-deep-navy);
    color: var(--text-primary);
    padding: 12px;
}

/* --- WALLET PILL (connected state) --- */
.wallet-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    padding: 6px 12px 6px 14px;
    border-radius: 50px;
    font-family: 'Orbitron';
    font-size: 13px;
}