/* PostMatic Pro - Main Stylesheet */
:root {
    --bg: #07070f;
    --surface: #10101a;
    --surface-2: #161624;
    --border: #1b1b2c;
    --text: #f0f0ff;
    --text-dim: #8888a0;
    --text-muted: #4e4e68;
    --primary: #ff5e1a;
    --secondary: #8b5cf6;
    --cyan: #00d4ff;
    --green: #00e5a0;
    --red: #ef4444;
    --gold: #ffb800;
    --pink: #ff3d8a;
    --blue: #3b82f6;
}
[data-theme="light"] {
    --bg: #f5f5fa;
    --surface: #ffffff;
    --surface-2: #f0f0f5;
    --border: #e0e0ea;
    --text: #0a0a1a;
    --text-dim: #555570;
    --text-muted: #888899;
}
* { margin:0; padding:0; box-sizing:border-box; }
html, body { height:100%; }
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select {
    font-family: inherit;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Auth pages */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at 10% 10%, rgba(139,92,246,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 90%, rgba(255,94,26,0.1) 0%, transparent 50%),
        var(--bg);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.auth-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 4px;
}
.auth-logo span {
    background: linear-gradient(90deg, #ff5e1a, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 28px;
}
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.15s, opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    width: 100%;
}
.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-danger { background: var(--red); color: white; }
.btn-success { background: var(--green); color: #000; }
.btn-ghost { background: transparent; color: var(--text-dim); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.auth-foot {
    text-align: center;
    margin-top: 20px;
    color: var(--text-dim);
    font-size: 13px;
}
.auth-foot a { color: var(--primary); font-weight: 600; }

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
}
.alert-error { background: rgba(239,68,68,0.12); color: #ff8a8a; border: 1px solid rgba(239,68,68,0.3); }
.alert-success { background: rgba(0,229,160,0.12); color: var(--green); border: 1px solid rgba(0,229,160,0.3); }

/* Theme toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    z-index: 9999;
    display: flex;
    gap: 6px;
    align-items: center;
}
.theme-toggle button {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-dim);
}
.theme-toggle button.active {
    background: var(--primary);
    color: white;
}