/* ===== VARIABLES ===== */
:root {
    --color-bg-primary: #121212;
    --color-bg-secondary: #181818;
    --color-bg-elevated: #282828;
    --color-gold: #D4AF37;
    --color-gold-hover: #F4CF57;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #B3B3B3;
    --color-text-tertiary: #6A6A6A;
    --color-border: #282828;
    --spacing-unit: 8px;
    --header-height: 56px;
    --footer-height: 64px;
    --border-radius: 8px;
    --transition-speed: 0.2s;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 calc(var(--spacing-unit) * 2);
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

.header-left {
    flex: 1;
}

.logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: -0.3px;
}

.header-right {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    align-items: center;
}

.header-btn {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-speed) ease;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
}

.header-btn:hover {
    color: var(--color-gold);
    border-color: var(--color-gold-hover);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: var(--footer-height);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    background: var(--color-bg-primary);
}

/* Custom scrollbar */
.main-content::-webkit-scrollbar {
    width: 12px;
}

.main-content::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

.main-content::-webkit-scrollbar-thumb {
    background: var(--color-bg-elevated);
    border-radius: 6px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-tertiary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text-primary);
}

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

/* ===== FOOTER NAVIGATION ===== */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    background-color: var(--color-bg-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--color-border);
    z-index: 100;
    padding: 0 calc(var(--spacing-unit));
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing-unit) / 2);
    padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) / 2);
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: all var(--transition-speed) ease;
    border-radius: var(--border-radius);
    position: relative;
}

.nav-item:hover {
    color: var(--color-text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--color-gold);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background-color: var(--color-gold);
    border-radius: 0 0 3px 3px;
}

.nav-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #FF3040, #E91E63);
    border-radius: 10px;
    border: 2px solid var(--color-bg-secondary);
    box-shadow: 0 2px 8px rgba(255, 48, 64, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

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

.nav-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-align: center;
}

/* ===== RESPONSIVE - DESKTOP ===== */
@media (min-width: 768px) {
    :root {
        --header-height: 56px;
        --footer-height: 0;
    }

    .header {
        padding: 0 calc(var(--spacing-unit) * 3);
    }

    .logo {
        font-size: 16px;
    }

    /* Desktop: Side navigation */
    .footer-nav {
        position: fixed;
        left: 0;
        top: var(--header-height);
        bottom: 0;
        width: 180px;
        height: auto;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 12px 8px;
        border-top: none;
        border-right: 1px solid var(--color-border);
        gap: 2px;
    }

    .nav-item {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
        padding: 8px 12px;
        border-radius: 4px;
    }

    .nav-item.active::before {
        display: none;
    }

    .nav-item.active {
        background-color: rgba(212, 175, 55, 0.15);
    }

    .nav-label {
        font-size: 14px;
        font-weight: 400;
    }

    .nav-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .main-content {
        left: 180px;
        bottom: 0;
        padding: 20px;
    }
}

@media (min-width: 1024px) {
    .main-content {
        left: 200px;
        padding: 24px;
    }

    .footer-nav {
        width: 200px;
    }
}

/* ===== UTILITY CLASSES ===== */
.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
    .hide-desktop {
        display: none;
    }
}
