/* assets/css/themes.css */
/* Premium Charcoal Design System - Apple-core Luxury Vibe */

:root {
    /* Base: Soft Graphite/Charcoal */
    --bg-dark: #121214;
    --bg-surface: #1c1c1e;
    --bg-card: #242426;
    --bg-elevated: #2c2c2e;

    /* Text: High Contrast Hierarchy */
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;

    /* Accent: Purple - ONLY for actions */
    --primary: #a855f7;
    --primary-hover: #c084fc;
    --primary-glow: rgba(168, 85, 247, 0.15);

    /* Neutrals for non-interactive */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

    /* Legacy compatibility */
    --accent: var(--primary);
    --nav-bg: rgba(18, 18, 20, 0.95);
    --hover-bg: var(--primary-glow);
    --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --bg-top: var(--bg-surface);
    --bg-bottom: var(--bg-dark);
}

/* Body: Clean charcoal base - NO gradients */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography: Crisp & Technical */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

p,
span,
li,
label {
    color: var(--text-secondary);
}

strong,
b {
    color: var(--text-primary);
    font-weight: 600;
}

/* Cards: Low contrast - blend with background */
.card,
.container,
.profile-card,
.login-card,
.order-card,
.template-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

/* Links: Purple accent */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Buttons: Purple accent with micro-interactions */
.btn-primary,
.add-to-cart,
.btn-checkout {
    background: var(--primary);
    color: white;
    border: none;
    transition: all 0.2s ease;
    box-shadow: none;
}

.btn-primary:hover,
.add-to-cart:hover,
.btn-checkout:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 0 2px var(--primary-glow);
    transform: translateY(-1px);
}

/* Secondary buttons: Neutral */
.btn-outline,
.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    transition: all 0.2s ease;
}

.btn-outline:hover,
.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.03);
}

/* Input fields */
input,
textarea,
select {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
    outline: none;
}

/* ============================================
   ALTERNATE THEMES (keep for theme switcher)
   ============================================ */

/* Sunset Theme */
:root[data-theme="sunset"] {
    --primary: #f97316;
    --primary-hover: #fb923c;
    --primary-glow: rgba(249, 115, 22, 0.15);
    --bg-dark: #1a1205;
    --bg-surface: #251a0a;
    --bg-card: #2d1a0c;
    --text-secondary: #a8a29e;
}

/* Ocean Theme */
:root[data-theme="ocean"] {
    --primary: #0ea5e9;
    --primary-hover: #38bdf8;
    --primary-glow: rgba(14, 165, 233, 0.15);
    --bg-dark: #0a1628;
    --bg-surface: #0f2035;
    --bg-card: #132a45;
    --text-secondary: #94a3b8;
}

/* Forest Theme */
:root[data-theme="forest"] {
    --primary: #22c55e;
    --primary-hover: #4ade80;
    --primary-glow: rgba(34, 197, 94, 0.15);
    --bg-dark: #0f1a12;
    --bg-surface: #142018;
    --bg-card: #1a2a1f;
    --text-secondary: #9ca38b;
}

/* Midnight Theme */
:root[data-theme="midnight"] {
    --primary: #a855f7;
    --primary-hover: #c084fc;
    --primary-glow: rgba(168, 85, 247, 0.15);
    --bg-dark: #12061f;
    --bg-surface: #1a0d2e;
    --bg-card: #23103d;
    --text-secondary: #a78bfa;
}

/* Pure Dark Theme */
:root[data-theme="dark"] {
    --primary: #a855f7;
    --primary-hover: #c084fc;
    --primary-glow: rgba(168, 85, 247, 0.12);
    --bg-dark: #000000;
    --bg-surface: #0a0a0a;
    --bg-card: #141414;
    --text-secondary: #737373;
}

/* Elegant Light Theme */
:root[data-theme="light"] {
    --primary: #7c3aed;
    --primary-hover: #8b5cf6;
    --primary-glow: rgba(124, 58, 237, 0.1);
    --bg-dark: #fafafa;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #18181b;
    --text-secondary: #71717a;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-default: rgba(0, 0, 0, 0.1);
}

/* Gold Premium Theme */
:root[data-theme="gold"] {
    --primary: #eab308;
    --primary-hover: #facc15;
    --primary-glow: rgba(234, 179, 8, 0.15);
    --bg-dark: #0a0a0a;
    --bg-surface: #121210;
    --bg-card: #1a1a15;
    --text-secondary: #a3a396;
}