/* Immersive Design System - Core Styles */

:root {
    /* Brand Colors */
    --primary-500: #21b1ff;
    --primary-600: #1a8ecc;
    --primary-50: #e6f7ff;
    
    --secondary-500: #ffff3f;
    --secondary-600: #cccc32;
    --secondary-50: #fffef0;
    
    --accent-500: #ffbeef;
    --accent-600: #cc98bf;
    --accent-50: #fff0f9;
    
    /* Status Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #ef4444;
    --error-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    
    /* Neutral Colors */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-900: #171717;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.25);
    --shadow-vibrant: 0 8px 32px rgba(33, 177, 255, 0.3);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

/* Immersive Wrapper */
.immersive-wrapper {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
.immersive-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Dashboard Theme Background */
.dashboard-theme {
    background: linear-gradient(135deg, #21b1ff 0%, #3b82f6 50%, #6366f1 100%);
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--gray-900);
    text-decoration: none;
    white-space: nowrap;
}

.nav-logo-text {
    background: linear-gradient(90deg, #5cc2ff 0%, #ff6ea8 48%, #ffd45a 100%);
    display: inline-block;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.nav-logo-text-black {
    color: var(--gray-900) !important;
    -webkit-text-fill-color: var(--gray-900) !important;
    background: none !important;
    display: inline-block;
}

.nav-logo:hover {
    text-decoration: none;
    color: var(--gray-900);
}

.nav-logo-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

.nav-logo-image {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    border-radius: 0.5rem;
    display: block;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(33, 177, 255, 0.1);
    color: var(--primary-600);
    text-decoration: none;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
}

.nav-search {
    flex: 1;
    max-width: 300px;
    margin: 0 1rem;
}

.search-form {
    width: 100%;
}

.nav-search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 2rem;
    font-size: 0.875rem;
    background: var(--gray-50);
    transition: all 0.3s ease;
}

.nav-search-input:focus {
    outline: none;
    border-color: var(--primary-500);
    background: white;
    box-shadow: 0 0 0 4px rgba(33, 177, 255, 0.1);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.user-name {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
}

.btn-logout,
.btn-settings {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-logout {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-logout:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.btn-settings {
    background: transparent;
    color: var(--gray-600);
    padding: 0.5rem;
    font-size: 1.125rem;
}

.btn-settings:hover {
    background: var(--gray-100);
    color: var(--primary-600);
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 3rem;
}

/* Compact Dashboard - Override main-content padding */
.main-content .dashboard-compact-container {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-content {
        flex-wrap: wrap;
    }
    
    .nav-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin: 0.5rem 0 0 0;
    }
}

@media (max-width: 768px) {
    .floating-nav {
        padding: 1rem;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .nav-logo-circle {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .nav-logo-image {
        width: 28px;
        height: 28px;
        max-width: 28px;
        max-height: 28px;
    }
    
    .nav-links {
        display: none; /* Will be replaced with hamburger menu */
    }
    
    .nav-user {
        gap: 0.5rem;
    }
    
    .user-name {
        display: none;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .main-content {
        padding-top: 80px;
    }
}

