/* === MagAtelier Common Styles === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #c9a96e;
    --accent-light: #e4cc9c;
    --text: #f0ece2;
    --text-muted: #a8a4a0;
    --bg-dark: #0d0d1a;
    --bg-card: #1e1e30;
    --bg-panel: rgba(26, 26, 46, 0.95);
    --white: #ffffff;
    --danger: #e74c3c;
    --success: #2ecc71;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --radius: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

html { font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

button, .btn {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    border-radius: var(--radius);
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}
.btn-primary:hover { background: var(--accent-light); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--primary); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { opacity: 0.85; }

input, textarea, select {
    font-family: var(--font-body);
    background: var(--primary-light);
    border: 1px solid rgba(201, 169, 110, 0.2);
    color: var(--text);
    border-radius: var(--radius);
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
}

.loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(201,169,110,0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
