/* User Dashboard Page Styles */
/* Complete self-contained CSS for user-dashboard.html */

/* ============================================ */
/* CSS RESET AND BASE STYLES */
/* ============================================ */

:root {
    --grit-black: #000000;
    --synth-green: #00FF7F;
    --response-gold: #FFD700;
    --remix-neon: #FF0055;
    --ai-azure: #001AFF;
    --thread-silver: #E5E5E5;
    --context-gray: #1A1A1A;
    --vhs-white: #F5F5F5;
    --obsidian-gray: #2A2A2A;
    --midnight-black: #0F0F0F;
    --platinum-silver: #E8E8E8;
    --primary-dark: #000000;
    --primary-gold: #FFD700;
    --primary-green: #00FF7F;
    --primary-blue: #001AFF;
    --primary-pink: #FF0055;
    --secondary-gray: #1A1A1A;
    --text-light: #E5E5E5;
    --text-white: #F5F5F5;
    --border-subtle: rgba(229, 229, 229, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --duration-fast: 0.15s;
    --duration-standard: 0.3s;
    --duration-slow: 0.5s;
    --ease-linear: linear;
    --ease-in: ease-in;
    --ease-out: ease-out;
    --ease-in-out: ease-in-out;
    --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
    --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* CSS Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================ */
/* TYPOGRAPHY SYSTEM */
/* ============================================ */

.h1, h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--response-gold);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.h2, h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--response-gold);
    line-height: 1.3;
    margin-bottom: var(--space-lg);
}

.h3, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--synth-green);
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.h4, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--synth-green);
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.h5, h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--thread-silver);
    line-height: 1.4;
    margin-bottom: var(--space-sm);
}

.h6, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--thread-silver);
    line-height: 1.4;
    margin-bottom: var(--space-sm);
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

.text-base {
    font-size: 1rem;
    line-height: 1.6;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1.4;
}

.text-mono {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ============================================ */
/* BUTTON COMPONENTS */
/* ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--duration-standard) var(--ease-standard);
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--synth-green);
    color: var(--grit-black);
    border-color: var(--synth-green);
}

.btn-primary:hover {
    background: var(--response-gold);
    border-color: var(--response-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 127, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--thread-silver);
    border-color: var(--thread-silver);
}

.btn-secondary:hover {
    background: var(--thread-silver);
    color: var(--grit-black);
    transform: translateY(-2px);
}

.btn-action {
    background: var(--remix-neon);
    color: var(--vhs-white);
    border-color: var(--remix-neon);
}

.btn-action:hover {
    background: var(--response-gold);
    border-color: var(--response-gold);
    color: var(--grit-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 85, 0.3);
}

.btn-sm {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

/* ============================================ */
/* CARD COMPONENTS */
/* ============================================ */

.card {
    background: var(--context-gray);
    border: 1px solid var(--thread-silver);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--duration-standard) var(--ease-standard);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--synth-green);
}

.card-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(229, 229, 229, 0.1);
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--response-gold);
    margin-bottom: var(--space-sm);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--synth-green);
    font-family: 'JetBrains Mono', monospace;
}

.card-content {
    margin-bottom: var(--space-lg);
}

.card-footer {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(229, 229, 229, 0.1);
}

.content-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.product-card {
    background: var(--obsidian-gray);
    border: 2px solid var(--thread-silver);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--duration-standard) var(--ease-standard);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--response-gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.analytics-card {
    background: linear-gradient(135deg, var(--context-gray) 0%, var(--obsidian-gray) 100%);
    border: 1px solid var(--ai-azure);
}

.analytics-card:hover {
    border-color: var(--response-gold);
    box-shadow: 0 10px 30px rgba(0, 26, 255, 0.2);
}

/* ============================================ */
/* FORM ELEMENTS */
/* ============================================ */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--thread-silver);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--context-gray);
    border: 2px solid var(--thread-silver);
    border-radius: var(--radius-md);
    color: var(--vhs-white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all var(--duration-standard) var(--ease-standard);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--synth-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 127, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(229, 229, 229, 0.6);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================ */
/* DASHBOARD SPECIFIC STYLES */
/* ============================================ */

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.sidebar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    border: 3px solid var(--glass-border);
}

.user-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.user-email {
    font-size: 0.9rem;
    color: rgba(229, 229, 229, 0.8);
}

.sidebar-stats {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(229, 229, 229, 0.8);
}

.stat-value {
    font-weight: 600;
    color: var(--primary-green);
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.dashboard-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: rgba(229, 229, 229, 0.8);
    font-size: 1.1rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: var(--glass-bg);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-icon {
    font-size: 1.5rem;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-label {
    font-size: 0.9rem;
    color: rgba(229, 229, 229, 0.8);
}

.metric-value {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gold);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.activity-description {
    font-size: 0.9rem;
    color: rgba(229, 229, 229, 0.8);
    margin-bottom: 0.5rem;
}

.activity-time {
    font-size: 0.8rem;
    color: rgba(229, 229, 229, 0.6);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.quick-action:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.quick-action-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.quick-action-title {
    font-weight: 600;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-green));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .dashboard-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .h1, h1 {
        font-size: 2.5rem;
    }
    
    .h2, h2 {
        font-size: 2rem;
    }
    
    .h3, h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .h1, h1 {
        font-size: 2rem;
    }
    
    .h2, h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }
}

/* ============================================ */
/* ACCESSIBILITY */
/* ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
    outline: 2px solid var(--synth-green);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    :root {
        --thread-silver: #ffffff;
        --context-gray: #000000;
        --synth-green: #00ff00;
        --response-gold: #ffff00;
    }
}

/* ============================================ */
/* NAVIGATION STYLES (BACKUP) */
/* ============================================ */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--grit-black);
    border-bottom: 2px solid var(--response-gold);
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    flex-shrink: 0;
}

.site-logo {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--response-gold);
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
}

/* Hamburger Menu Button */
.hamburger-menu {
    background: transparent;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all var(--duration-standard) var(--ease-standard);
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--synth-green);
    border-radius: 2px;
    transition: all var(--duration-standard) var(--ease-standard);
}

.hamburger-menu:hover .hamburger-line {
    background: var(--response-gold);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Horizontal Menu */
.horizontal-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: var(--grit-black);
    padding-top: 100px;
    transform: translateY(-100%);
    transition: transform var(--duration-slow) var(--ease-emphasized);
    overflow-y: auto;
    z-index: 99;
}

.horizontal-menu.active {
    transform: translateY(0);
}

.menu-categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.menu-category {
    background: var(--context-gray);
    border: 2px solid var(--thread-silver);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--duration-standard) var(--ease-standard);
}

.menu-category:hover {
    border-color: var(--synth-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 127, 0.2);
}

.category-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--response-gold);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.menu-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--obsidian-gray);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--thread-silver);
    transition: all var(--duration-standard) var(--ease-standard);
}

.menu-link:hover {
    background: var(--context-gray);
    border-color: var(--synth-green);
    color: var(--synth-green);
    transform: translateX(4px);
}

.menu-link.active {
    background: var(--synth-green);
    color: var(--grit-black);
    font-weight: 600;
}

.link-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.link-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

/* Adjust main container for fixed header */
body {
    padding-top: 80px;
}

/* Responsive Navigation */
@media (max-width: 1024px) {
    .menu-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .site-logo {
        font-size: 1.5rem;
    }
    
    .menu-categories {
        grid-template-columns: 1fr;
        padding: var(--space-lg);
    }
    
    .category-title {
        font-size: 1.25rem;
    }
}

/* Smooth scrolling for menu */
.horizontal-menu {
    -webkit-overflow-scrolling: touch;
}

/* Disable body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}