/* mitchkoko.app – Shared Styles */

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Design Tokens (source of truth: ep3 aesthetic) */
:root {
    --bg: #f5f5f5;
    --surface: #ffffff;
    --surface-hover: #fafafa;
    --surface-glass: rgba(255, 255, 255, 0.92);
    --border: #e5e5e5;
    --border-hover: #d4d4d8;
    --border-subtle: #f0f0f0;
    --text-primary: #2c2c2c;
    --text-secondary: #6c6c6c;
    --text-muted: #a1a1aa;
    --hover-bg: #f0f0f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
    --shadow-xl: 0 12px 32px rgba(0,0,0,.15), 0 6px 12px rgba(0,0,0,.08);
    --accent-red: #ff0000;
    --accent-red-dark: #dc2626;
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
    --transition-bounce: all .4s cubic-bezier(.175, .885, .32, 1.275);
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

[data-theme="dark"] {
    --bg: #1f1f1f;
    --surface: #1a1a1a;
    --surface-hover: #252525;
    --surface-glass: rgba(31, 31, 31, 0.95);
    --border: #2a2a2a;
    --border-hover: #404040;
    --border-subtle: #252525;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #71717a;
    --hover-bg: #252525;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.2), 0 1px 2px rgba(0,0,0,.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.4), 0 4px 8px rgba(0,0,0,.2);
    --shadow-xl: 0 12px 32px rgba(0,0,0,.5), 0 6px 12px rgba(0,0,0,.25);
    --accent-red: #ff4444;
    --accent-red-dark: #ff6666;
}

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background .3s ease, color .3s ease;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 52px;
    height: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.theme-toggle-circle {
    width: 22px;
    height: 22px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

[data-theme="dark"] .theme-toggle-circle {
    transform: translateX(26px);
}

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

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