/* KayakVault - Main Styles */

:root {
    --deep-water: #0a1628;
    --ocean-blue: #1a3a5c;
    --river-teal: #2d8a8a;
    --shallow-water: #4ecdc4;
    --foam-white: #f7f9fc;
    --accent-orange: #ff6b35;
    --accent-coral: #ff8c61;
    --accent-gold: #f7c948;
    --accent-sunset: #e85d4c;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem; --space-lg: 1.5rem; --space-xl: 2rem; --space-2xl: 3rem; --space-3xl: 4rem;
    --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 20px; --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05); --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1); --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1); --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --transition-fast: 150ms ease; --transition-base: 250ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--slate-100); background: var(--deep-water); min-height: 100vh; overflow-x: hidden; }

.ambient-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; background: radial-gradient(ellipse 80% 50% at 20% 40%, rgba(45, 138, 138, 0.15) 0%, transparent 50%), radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%), radial-gradient(ellipse 100% 100% at 50% 100%, rgba(26, 58, 92, 0.5) 0%, transparent 50%), var(--deep-water); }

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

.text-gradient { background: linear-gradient(135deg, var(--shallow-water) 0%, var(--accent-orange) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Navigation */
.main-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: var(--space-md) 0; transition: all var(--transition-base); background: rgba(10, 22, 40, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-xl); display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); }
.nav-logo { display: flex; align-items: center; gap: var(--space-sm); }
.logo-icon { width: 40px; height: 40px; color: var(--shallow-water); }
.logo-text { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: 0.05em; color: var(--foam-white); }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); }
.nav-link { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-sm) var(--space-md); font-weight: 500; color: var(--slate-300); border-radius: var(--radius-md); transition: all var(--transition-fast); }
.nav-link:hover { color: var(--foam-white); background: rgba(255, 255, 255, 0.05); }
.nav-actions { display: flex; align-items: center; gap: var(--space-md); }
.nav-auth-buttons { display: flex; align-items: center; gap: var(--space-sm); }
.nav-user-menu { display: flex; align-items: center; gap: var(--space-md); }
.nav-messages-btn { position: relative; padding: var(--space-sm); color: var(--slate-300); border-radius: var(--radius-md); }
.nav-notif-btn .notif-badge, .nav-messages-btn .msg-badge { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 4px; background: #ef4444; border-radius: 999px; font-size: 0.65rem; font-weight: 600; color: white; display: flex; align-items: center; justify-content: center; }
.nav-messages-btn .msg-badge { background: var(--shallow-water); color: var(--deep-water); }
.user-dropdown { position: relative; }
.user-avatar-btn { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-sm); color: var(--slate-200); border-radius: var(--radius-full); }
.user-avatar { width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--ocean-blue); }
.user-name { font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-menu { position: absolute; top: calc(100% + var(--space-sm)); right: 0; min-width: 200px; background: var(--slate-800); border: 1px solid var(--slate-700); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all var(--transition-fast); z-index: 100; }
.dropdown-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: block; padding: var(--space-sm) var(--space-md); color: var(--slate-300); }
.dropdown-item:hover { color: var(--foam-white); background: rgba(255, 255, 255, 0.05); }
.dropdown-divider { border: none; border-top: 1px solid var(--slate-700); margin: var(--space-xs) 0; }
.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: var(--space-sm); cursor: pointer; }
.nav-mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--slate-300); border-radius: 2px; transition: all 0.3s ease; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-lg); font-weight: 600; font-size: 0.95rem; border-radius: var(--radius-md); transition: all var(--transition-fast); cursor: pointer; white-space: nowrap; }
.btn-primary { color: var(--deep-water); background: linear-gradient(135deg, var(--shallow-water) 0%, var(--river-teal) 100%); box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4); }
.btn-secondary { color: var(--foam-white); background: var(--ocean-blue); border: 1px solid var(--slate-600); }
.btn-secondary:hover { background: var(--slate-700); }
.btn-ghost { color: var(--slate-300); background: transparent; }
.btn-ghost:hover { color: var(--foam-white); background: rgba(255, 255, 255, 0.05); }
.btn-lg { padding: var(--space-md) var(--space-xl); font-size: 1.1rem; }
.btn-sm { padding: var(--space-xs) var(--space-md); font-size: 0.85rem; }
.w-full { width: 100%; }

/* Forms */
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; margin-bottom: var(--space-sm); font-weight: 500; color: var(--slate-300); }
.form-input, .form-textarea, .form-select { width: 100%; padding: var(--space-md); color: var(--foam-white); background: var(--slate-800); border: 1px solid var(--slate-600); border-radius: var(--radius-md); transition: all var(--transition-fast); }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--shallow-water); box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2); }
.form-input::placeholder { color: var(--slate-500); }
.form-hint { margin-top: var(--space-xs); font-size: 0.85rem; color: var(--slate-500); }

/* Layout */
.container { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-xl); }
.main-content { min-height: 100vh; padding-top: 80px; }
.section { padding: var(--space-3xl) 0; }

/* Flash Messages */
.flash-container { position: fixed; top: 100px; right: var(--space-xl); z-index: 400; display: flex; flex-direction: column; gap: var(--space-sm); }
.flash-message { padding: var(--space-md) var(--space-lg); background: var(--slate-800); border: 1px solid var(--slate-700); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: var(--space-md); animation: slideIn 0.3s ease; }
.flash-message.success { border-color: var(--shallow-water); }
.flash-message.error { border-color: var(--accent-sunset); }
@keyframes slideIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }

/* Footer */
.main-footer { background: var(--slate-900); border-top: 1px solid var(--slate-800); padding: var(--space-3xl) 0 var(--space-xl); }
.footer-container { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-xl); display: grid; grid-template-columns: 2fr 3fr 1fr; gap: var(--space-2xl); }
.footer-tagline { margin-top: var(--space-md); color: var(--slate-500); font-size: 0.95rem; }
.footer-links { display: flex; gap: var(--space-2xl); }
.footer-section h4 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate-400); margin-bottom: var(--space-md); }
.footer-section a { display: block; padding: var(--space-xs) 0; color: var(--slate-500); font-size: 0.95rem; }
.footer-section a:hover { color: var(--shallow-water); }
.footer-social { display: flex; gap: var(--space-sm); justify-content: flex-end; }
.social-link { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--slate-500); background: var(--slate-800); border-radius: var(--radius-md); }
.social-link:hover { color: var(--foam-white); background: var(--ocean-blue); }
.footer-bottom { max-width: 1400px; margin: var(--space-2xl) auto 0; padding: var(--space-lg) var(--space-xl) 0; border-top: 1px solid var(--slate-800); text-align: center; color: var(--slate-600); font-size: 0.85rem; }
@media (max-width: 900px) { .footer-container { grid-template-columns: 1fr; text-align: center; } .footer-links { justify-content: center; flex-wrap: wrap; } .footer-social { justify-content: center; } }

/* Spinner */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
