:root {
    --background: #FFF9F2;
    --foreground: #171717;
    --primary: #F7C8D8;
    --secondary: #DCD4FF;
    --accent: #FFD9C2;
    --font-sans: 'Inter', sans-serif;
    --font-accent: 'Caveat', cursive;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
}

button {
    font-family: var(--font-sans);
    cursor: pointer;
    border: none;
    outline: none;
}

/* Primary Button Style */
.btn-primary {
    background-color: var(--foreground);
    color: var(--background);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, opacity 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 62, 108, 0.4);
}
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f1f1f1;
    color: #111;
    border: 1px solid #e1e1e1;
}
.btn-secondary:hover {
    background: #e5e5e5;
    border-color: #d1d1d1;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Theming System Variables */
/* Soft (Default) */
[data-theme="soft"] {
    --background: #FFF9F2;
    --foreground: #3D2D2D;
    --primary: #F7C8D8;
    --surface: #FFFDF7;
}

/* Late Night */
[data-theme="late-night"] {
    --background: #121212;
    --foreground: #F5F5F5;
    --primary: #6B4E71;
    --surface: #1E1E1E;
}

/* Playful */
[data-theme="playful"] {
    --background: #FFF0F5;
    --foreground: #D81B60;
    --primary: #FFB6C1;
    --surface: #FFFFFF;
}

/* Unhinged */
[data-theme="unhinged"] {
    --background: #000000;
    --foreground: #39FF14;
    --primary: #FF00FF;
    --surface: #111111;
}

/* Minimal */
[data-theme="minimal"] {
    --background: #FFFFFF;
    --foreground: #000000;
    --primary: #E0E0E0;
    --surface: #F9F9F9;
}

.template-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    background: var(--primary, #0f172a);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    box-sizing: border-box;
    transition: background-color 0.2s, transform 0.2s;
}

.template-cta:hover {
    background: #1e293b;
    transform: translateY(-1px);
}
