/* 
 * Data Vault - Nature-Centric Minimalist Design System
 * Emphasizing focus, wellbeing, and organic aesthetics
 */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Earth Tone Color Palette */
    --earth-dark: #2A3A2E;           /* Primary background - deep forest green */
    --earth-medium: #3D5240;         /* Secondary background */
    --earth-light: #4F6B53;          /* Accents */
    --earth-moss: #6B8E6F;           /* Hover states */
    
    --beige-card: #E5E5E5;           /* Card backgrounds */
    --beige-light: #F5F5F0;          /* Lighter card elements */
    --beige-warm: #EAE7DC;           /* Warm beige for highlights */
    --cream: #FFFEF7;                /* Near-white cream */
    
    --text-white: #FFFFFF;           /* Large headings */
    --text-dark: #2A3A2E;            /* Text on light backgrounds */
    --text-muted: #6B7566;           /* Muted text */
    
    --accent-terracotta: #C97D60;    /* Warm accent */
    --accent-sage: #A4B494;          /* Sage green accent */
    
    /* Shadows - Soft and organic */
    --shadow-sm: 0 2px 8px rgba(42, 58, 46, 0.08);
    --shadow-md: 0 4px 16px rgba(42, 58, 46, 0.12);
    --shadow-lg: 0 8px 32px rgba(42, 58, 46, 0.16);
    --shadow-xl: 0 12px 48px rgba(42, 58, 46, 0.20);
    
    /* Typography */
    --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'SF Pro Display', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Border Radius - Organic curves */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--earth-dark);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Add subtle texture to background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='%232A3A2E'/%3E%3Cpath d='M30 30m-2 0a2 2 0 1 0 4 0 2 2 0 1 0-4 0' fill='%233D5240' fill-opacity='0.3'/%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-white);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-family: var(--font-display);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    font-family: var(--font-display);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--beige-light);
}

/* Header Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--earth-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    font-family: var(--font-display);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--beige-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--text-white);
}

.cart-badge {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--beige-card);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.cart-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cart-badge i {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-terracotta);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.menu-icon {
    width: 40px;
    height: 40px;
    background: var(--beige-card);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-icon:hover {
    background: var(--beige-warm);
}

.menu-icon i {
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(107, 142, 111, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease-out;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--beige-light);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    display: inline-flex;
    gap: var(--space-md);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Buttons */
.btn {
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--beige-card);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--beige-warm);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white) !important;
    border: 2px solid var(--beige-card);
}

.btn-secondary:hover {
    background: var(--beige-card);
    color: var(--text-white) !important;
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent-terracotta);
    color: white;
}

.btn-accent:hover {
    background: #B36D50;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Cards - Beige with Sketch Aesthetic */
.card {
    background: var(--beige-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--earth-moss), var(--accent-sage));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    opacity: 1;
}

.card-content {
    color: var(--text-dark);
}

.card h3 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Sketch Illustration Style */
.sketch-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-md);
    filter: grayscale(20%) contrast(1.1);
    opacity: 0.9;
}

/* Grid Layouts */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.grid {
    display: grid;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Forms */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    color: var(--beige-light);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-sage);
    box-shadow: 0 0 0 3px rgba(164, 180, 148, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Tables */
.table-container {
    background: var(--beige-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--earth-medium);
    color: var(--text-white);
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
}

.table td {
    padding: var(--space-md);
    border-bottom: 1px solid rgba(42, 58, 46, 0.1);
    color: var(--text-dark);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background: rgba(42, 58, 46, 0.03);
}

/* Status Messages */
.status-message {
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border-radius: var(--radius-md);
    font-weight: 500;
    display: none;
}

.status-message.info {
    background: rgba(164, 180, 148, 0.2);
    color: var(--earth-dark);
    border: 1px solid var(--accent-sage);
}

.status-message.success {
    background: rgba(107, 142, 111, 0.2);
    color: var(--earth-dark);
    border: 1px solid var(--earth-moss);
}

.status-message.error {
    background: rgba(201, 125, 96, 0.2);
    color: var(--earth-dark);
    border: 1px solid var(--accent-terracotta);
}

.status-message.warning {
    background: rgba(234, 231, 220, 0.3);
    color: var(--text-dark);
    border: 1px solid var(--beige-warm);
}

/* Animations */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.5rem;
}

.badge-success {
    background: rgba(107, 142, 111, 0.2);
    color: var(--earth-moss);
}

.badge-warning {
    background: rgba(201, 125, 96, 0.2);
    color: var(--accent-terracotta);
}

.badge-info {
    background: rgba(164, 180, 148, 0.2);
    color: var(--accent-sage);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* Focus & Wellbeing Aesthetic */
.focus-section {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.focus-section h2 {
    margin-bottom: var(--space-md);
}

.focus-section .tagline {
    font-size: 1.25rem;
    color: var(--beige-light);
    font-style: italic;
    font-family: var(--font-display);
    margin-bottom: var(--space-xl);
}

/* Responsive Design */
@media (max-width: 900px) {
    .header-container {
        padding: var(--space-sm) var(--space-md);
    }
    .header-nav {
        gap: var(--space-sm);
        position: relative;
    }
    .nav-link {
        display: none;
    }
    .menu-icon {
        display: flex;
    }
    #dropdown-menu {
        right: 0.5rem;
        left: auto;
        min-width: 180px;
    }
}

@media (min-width: 901px) {
    .menu-icon {
        display: none !important;
    }
    #dropdown-menu {
        display: none !important;
    }
    .nav-link {
        display: flex !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
