/* 
   WaltersWorks - Vanilla Design System 2.0
   Modern Comic Book Aesthetic (Refined & Polished)
*/

:root {
    /* Core Concept: Clean line art, professional HSL colors */
    --background: 210 25% 97%;
    --foreground: 210 40% 15%;
    
    --card: 0 0% 100%;
    --card-foreground: 210 40% 15%;
    
    --primary: 201 82% 44%;
    --primary-foreground: 0 0% 100%;
    
    --secondary: 25 90% 55%;
    --secondary-foreground: 0 0% 100%;
    
    --muted: 210 20% 92%;
    --muted-foreground: 210 25% 35%; /* Hardened for better contrast */
    
    --accent: 145 65% 42%;
    --accent-foreground: 0 0% 100%;
    
    --highlight: 48 95% 60%;
    --highlight-foreground: 210 40% 15%;
    
    --border: 210 25% 85%;
    
    /* Spacing Scale (4px/8px based) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;

    /* Comic Tokens */
    --comic-border: 3px solid hsl(var(--foreground));
    --comic-border-thick: 4px solid hsl(var(--foreground));
    --comic-shadow: 6px 6px 0 hsl(var(--foreground));
    --comic-shadow-sm: 4px 4px 0 hsl(var(--foreground));
    --halftone-pattern: radial-gradient(circle, hsl(var(--foreground) / 0.08) 1px, transparent 1px);
    --gradient-hero: linear-gradient(135deg, hsl(201 82% 50%) 0%, hsl(201 82% 38%) 100%);
    --gradient-warm: linear-gradient(135deg, hsl(25 90% 55%) 0%, hsl(15 85% 50%) 100%);
    --gradient-success: linear-gradient(135deg, hsl(145 65% 45%) 0%, hsl(145 60% 35%) 100%);
    
    --radius: 0.5rem;
    --transition-smooth: all 0.2s ease-out;
}

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

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Layout Core */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

section {
    position: relative;
}

.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-24 { padding-top: var(--space-24); padding-bottom: var(--space-24); }

/* Grid & Flex Utilities */
.grid { display: grid; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

.grid-cols-1 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:flex-row { flex-direction: row; }
    .md\:text-left { text-align: left; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Typography Scale */
.comic-headline {
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-shadow: 3px 3px 0 hsl(var(--primary) / 0.2);
}

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-secondary { color: hsl(var(--secondary)); }

/* Comic Components */
.comic-panel {
    background: hsl(var(--card));
    border-radius: var(--radius);
    border: var(--comic-border);
    box-shadow: var(--comic-shadow-sm);
    transition: var(--transition-smooth);
    padding: var(--space-8);
}

.comic-panel:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--comic-shadow);
}

.comic-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 1.75rem;
    border-radius: 0.375rem;
    border: var(--comic-border);
    box-shadow: var(--comic-shadow-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.875rem;
}

.comic-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 hsl(var(--foreground));
}

.comic-button.bg-primary { background: hsl(var(--primary)); color: white; }
.comic-button.bg-secondary { background: hsl(var(--secondary)); color: white; }

.comic-hero {
    background: var(--gradient-hero);
    color: white;
}

.halftone-bg {
    background-image: var(--halftone-pattern);
    background-size: 8px 8px;
}

.comic-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--primary) / 0.1);
    border: 2px solid hsl(var(--primary));
    box-shadow: 2px 2px 0 hsl(var(--primary));
}

.success-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    background: hsl(var(--accent));
    color: white;
    border: 2px solid hsl(var(--foreground));
    box-shadow: 2px 2px 0 hsl(var(--foreground));
}

/* Specific UI Bits */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: hsl(var(--background) / 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid hsl(var(--foreground));
}

.nav-container {
    height: 4.5rem;
}

/* Animations */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

/* Utilities */
.hidden { display: none; }
.max-w-prose { max-width: 65ch; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
