/**
 * Shared CSS for NutsXTZ
 * Standardized design system for all pages
 */

:root {
    /* Colors - Orange/Amber Theme */
    --primary: #f59e0b;
    --secondary: #ea580c;
    --accent: #84cc16;
    --dark: #0c0a09;
    --darker: #1c1917;
    --light: #fef3c7;
    --glow: rgba(245, 158, 11, 0.6);
    
    /* Typography - Heading Sizes */
    --h1-size: 3rem;
    --h2-size: 2.25rem;
    --h3-size: 1.875rem;
    --h4-size: 1.5rem;
    --h5-size: 1.25rem;
    --h6-size: 1.125rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #0c0a09 0%, #1a1512 50%, #0c0a09 100%);
    color: var(--light);
    min-height: 100vh;
    line-height: 1.7;
}

/* Typography Utilities */
.h1, h1 {
    font-family: 'Russo One', sans-serif;
    font-size: var(--h1-size);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.h2, h2 {
    font-family: 'Russo One', sans-serif;
    font-size: var(--h2-size);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

.h3, h3 {
    font-family: 'Russo One', sans-serif;
    font-size: var(--h3-size);
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
}

.h4, h4 {
    font-family: 'Russo One', sans-serif;
    font-size: var(--h4-size);
    line-height: 1.4;
    margin-bottom: var(--spacing-xs);
}

.h5, h5 {
    font-size: var(--h5-size);
    line-height: 1.5;
    margin-bottom: var(--spacing-xs);
}

.h6, h6 {
    font-size: var(--h6-size);
    line-height: 1.5;
    margin-bottom: var(--spacing-xs);
}

/* Standardized Navbar */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.1);
}

.glass-nav .logo {
    font-family: 'Russo One', sans-serif;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 30px var(--glow);
    text-decoration: none;
}

.glass-nav .nav-links {
    display: flex;
    gap: 2.5rem;
}

.glass-nav .nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.7;
    position: relative;
}

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

.glass-nav .nav-link:hover,
.glass-nav .nav-link.active {
    opacity: 1;
    color: var(--primary);
}

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

/* Reusable Card Component */
.card {
    background: rgba(28, 25, 23, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: var(--spacing-md);
}

/* Button System */
.btn-primary,
.btn-secondary,
.btn-cta {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary,
.btn-cta {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 20px var(--glow);
}

.btn-primary:hover,
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px var(--glow);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid rgba(245, 158, 11, 0.4);
}

.btn-secondary:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--primary);
}

/* Burger Menu */
.burger-menu {
    position: relative;
}

.burger-btn {
    background: transparent;
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 50px;
    padding: 0.7rem 1.2rem;
    color: var(--light);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.burger-btn:hover {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
}

.burger-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(28, 25, 23, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 1rem;
    min-width: 200px;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.burger-menu-dropdown.active {
    display: block;
}

.burger-menu-dropdown h3 {
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.burger-menu-link {
    display: block;
    color: var(--light);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.burger-menu-link:hover {
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary);
}

.burger-menu-link:last-child {
    margin-bottom: 0;
}

/* Mobile-First Navbar - Hide links under 768px */
@media (max-width: 768px) {
    .glass-nav .nav-links {
        display: none;
    }
    
    .burger-menu {
        display: block;
    }
    
    /* Mobile drawer could be added here if needed */
}

/* Background Layer */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../img/bg-layer.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

/* Main Content Area */
.main-content {
    padding: 140px 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Theme Toggle (Optional) */
[data-theme="light"] {
    --dark: #fef3c7;
    --light: #0c0a09;
    /* Add more light theme overrides as needed */
}

/* Modal Styles */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10000 !important;
    opacity: 1;
    transition: opacity 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.modal.hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden !important;
}

.modal-content {
    background: linear-gradient(135deg, rgba(28, 25, 23, 0.95) 0%, rgba(12, 10, 9, 0.95) 100%) !important;
    border: 2px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
    margin: auto !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

.modal-content h2,
.modal-content h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.close-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-icon:hover {
    opacity: 1;
}

/* Profile Modal Specific */
#profile-modal .modal-content {
    width: 450px;
    max-width: 95%;
}

.profile-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.profile-info-label {
    color: rgba(254, 243, 199, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-info-value {
    color: var(--primary);
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-actions .btn-primary,
.profile-actions .btn-secondary {
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: block;
}

/* Disconnect Confirmation Modal */
#disconnect-confirm-modal .modal-content {
    width: 350px;
    text-align: center;
}

#disconnect-confirm-modal .modal-content p {
    color: rgba(254, 243, 199, 0.8);
    margin-bottom: 1.5rem;
}

.disconnect-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.disconnect-buttons .btn-primary {
    flex: 1;
    background: #dc2626;
}

.disconnect-buttons .btn-primary:hover {
    background: #b91c1c;
}

.disconnect-buttons .btn-secondary {
    flex: 1;
}

