/*
 * Soulie Ceramics - Design Tokens & Theme
 *
 * Color Palette: warm, earthy ceramics tones
 * - Background: #faf8f5 (warm cream)
 * - Primary: #c4846c (terracotta)
 * - Secondary: #8fa68a (sage green)
 * - Accent: #d4b5a0 (soft clay pink)
 * - Text: #3d3832 (warm charcoal)
 * - Muted: #7a746c (warm gray)
 *
 * Approach: mobile-first with min-width breakpoints
 * Breakpoints: 480px (sm), 768px (md), 1024px (lg), 1280px (xl)
 */

:root {
    /* Colors */
    --color-bg: #faf8f5;
    --color-bg-alt: #f5f0ea;
    --color-bg-card: #ffffff;
    --color-primary: #c4846c;
    --color-primary-dark: #a66b54;
    --color-primary-light: #f8e8e0;
    --color-secondary: #8fa68a;
    --color-accent: #d4b5a0;
    --color-text: #3d3832;
    --color-text-secondary: #5c5650;
    --color-text-muted: #7a746c;
    --color-border: #e8e4de;
    --color-border-light: #f0ebe5;
    --color-footer-bg: #3d3832;
    --color-footer-text: #c9c4bc;
    --color-studio-sidebar: #2d2a26;

    /* Typography */
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-display: 'Crimson Pro', var(--font-serif);
    --font-handwritten: 'NothingYouCouldDo', cursive;
    --font-accent: 'Arsenal', var(--font-sans);

    /* Responsive type scale using clamp(min, preferred, max) */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: clamp(1rem, 0.5vw + 0.9rem, 1.125rem);
    --text-xl: clamp(1.125rem, 1vw + 0.9rem, 1.25rem);
    --text-2xl: clamp(1.25rem, 1.5vw + 0.9rem, 1.5rem);
    --text-3xl: clamp(1.5rem, 2vw + 1rem, 1.75rem);
    --text-4xl: clamp(1.75rem, 3vw + 1rem, 2.5rem);
    --text-hero: clamp(2rem, 5vw + 1rem, 4rem);

    /* Responsive spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: clamp(1rem, 2vw + 0.5rem, 1.5rem);
    --space-xl: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    --space-2xl: clamp(2rem, 4vw + 0.5rem, 3rem);
    --space-3xl: clamp(2.5rem, 5vw + 0.5rem, 4rem);

    /* Container widths */
    --container-sm: 640px;
    --container-md: 900px;
    --container-lg: 1200px;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Touch target minimum */
    --touch-target: 44px;

    /* Studio sidebar */
    --sidebar-width: 220px;
}

/* Base styles */
body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--color-text);
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary-dark);
}

/* Quasar button overrides */
.q-btn[color="brown-7"] {
    background-color: var(--color-primary) !important;
}

.q-btn[color="brown-7"]:hover {
    background-color: var(--color-primary-dark) !important;
}

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

.animate-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Responsive utilities */
@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
}
@media (min-width: 768px) {
    .hide-desktop { display: none !important; }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* NiceGUI overrides for consistent styling */
.nicegui-content {
    background-color: var(--color-bg);
}

/* Quasar/NiceGUI button color overrides */
.q-btn[color="brown-7"] {
    background-color: var(--color-primary) !important;
}

.q-btn[color="brown-7"]:hover {
    background-color: var(--color-primary-dark) !important;
}
