/* ============================================================
base.css — ResumeAI
Design tokens, reset, shared components used across all pages.
Every HTML file loads this first.
============================================================ */
/* ── VARIABLES ────────────────────────────────────────────── */
:root {
--ink:         #0a0a0f;
--ink-2:       #13131f;
--gold:        #c9a84c;
--gold-light:  #e8c96a;
--cream:       #f0ebe0;
--cream-2:     #ede7d9;
--muted:       #7a7488;
--border:      rgba(201, 168, 76, 0.18);
--surface:     rgba(255, 255, 255, 0.04);
--surface-2:   rgba(255, 255, 255, 0.07);
--green:       #2ecc8a;
--blue:        #4a9eff;
--font-serif:  'Cormorant Garamond', Georgia, serif;
--font-sans:   'DM Sans', system-ui, sans-serif;
--space-xs:    0.5rem;
--space-sm:    1rem;
--space-md:    1.5rem;
--space-lg:    2.5rem;
--space-xl:    4rem;
--space-2xl:   6rem;
--max-width:   900px;
--radius-sm:   6px;
--radius-md:   12px;
--radius-lg:   20px;
--radius-pill: 100px;
}
/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
font-family: var(--font-sans);
background: var(--ink);
color: var(--cream);
min-height: 100vh;
overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.15; }
img { max-width: 100%; display: block; }
/* ── SHARED NAV ───────────────────────────────────────────── */
nav {
position: sticky;
top: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 2.5rem;
background: rgba(10, 10, 15, 0.85);
backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold); font-weight: 600; }
.nav-center { display: flex; gap: 2rem; }
.nav-center a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.nav-center a:hover, .nav-center a.active { color: var(--cream); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.user-chip {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 14px 6px 6px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-pill);
cursor: pointer;
transition: background 0.2s;
}
.user-chip:hover { background: rgba(255,255,255,0.07); }
.user-avatar {
width: 28px; height: 28px;
border-radius: 50%;
background: linear-gradient(135deg, var(--gold), #8b6914);
display: flex; align-items: center; justify-content: center;
font-size: 0.72rem; font-weight: 500; color: var(--ink);
}
.user-name { font-size: 0.83rem; color: var(--cream); }
/* ── SHARED INPUTS ────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-sm); }
.field label { font-size: 0.83rem; font-weight: 500; color: var(--cream-2); letter-spacing: 0.02em; }
.field-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
margin-bottom: var(--space-sm);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
width: 100%;
padding: 12px 16px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 10px;
color: var(--cream);
font-family: var(--font-sans);
font-size: 0.95rem;
outline: none;
transition: border-color 0.2s, background 0.2s;
}
input:focus, textarea:focus, select:focus {
border-color: rgba(201, 168, 76, 0.5);
background: rgba(201, 168, 76, 0.04);
}
input::placeholder, textarea::placeholder { color: rgba(138, 128, 112, 0.6); }
textarea { resize: vertical; min-height: 90px; }
.hint { display: block; font-size: 0.78rem; font-weight: 400; color: var(--muted); }
.required { color: var(--gold); }
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 52px; }
.toggle-pw {
position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
background: none; border: none; color: var(--muted); cursor: pointer;
font-size: 0.8rem; font-family: var(--font-sans); padding: 4px; transition: color 0.2s;
}
.toggle-pw:hover { color: var(--cream); }
/* ── SHARED BUTTONS ───────────────────────────────────────── */
.btn-primary {
display: inline-block;
background: var(--gold); color: var(--ink);
font-family: var(--font-sans); font-size: 1rem; font-weight: 500;
padding: 14px 32px; border-radius: var(--radius-pill); border: none;
cursor: pointer; transition: background 0.2s, transform 0.2s;
margin-bottom: var(--space-lg);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-gold {
padding: 11px 24px;
background: var(--gold); color: var(--ink);
font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500;
border: none; border-radius: var(--radius-sm);
cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
padding: 9px 18px; background: transparent; color: var(--cream);
font-family: var(--font-sans); font-size: 0.875rem;
border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm);
cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); }
.btn-ghost {
padding: 9px 14px; background: transparent; color: var(--muted);
font-family: var(--font-sans); font-size: 0.875rem; border: none;
cursor: pointer; transition: color 0.2s;
}
.btn-ghost:hover { color: var(--cream); }
.btn-secondary {
width: 100%; padding: 12px; background: transparent; color: var(--muted);
font-family: var(--font-sans); font-size: 0.875rem;
border: 1px solid var(--border); border-radius: var(--radius-sm);
cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.btn-secondary:hover { color: var(--cream); border-color: rgba(255,255,255,0.2); }
.btn-danger-outline {
padding: 9px 18px; background: transparent; color: #f07070;
font-family: var(--font-sans); font-size: 0.875rem;
border: 1px solid rgba(240,80,80,0.4); border-radius: var(--radius-sm);
cursor: pointer; white-space: nowrap; flex-shrink: 0;
transition: background 0.2s, border-color 0.2s;
}
.btn-danger-outline:hover { background: rgba(240,80,80,0.1); border-color: rgba(240,80,80,0.7); }
.btn-danger {
padding: 9px 18px; background: rgba(240,80,80,0.15); color: #f07070;
font-family: var(--font-sans); font-size: 0.875rem;
border: 1px solid rgba(240,80,80,0.4); border-radius: var(--radius-sm);
cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background 0.2s;
}
.btn-danger:hover { background: rgba(240,80,80,0.25); }
/* ── SHARED UTILITIES ─────────────────────────────────────── */
.section-label {
font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em;
text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-sm);
}
.fade-in { animation: fadeUp 0.6s ease both; }
/* Starfield canvas background (dashboard, templates, settings) */
.bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-canvas canvas { width: 100%; height: 100%; }
/* Generic main content wrapper */
.page-main {
position: relative; z-index: 1;
max-width: 1100px; margin: 0 auto;
padding: 3rem 2rem 6rem;
}
/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
from { opacity: 0; transform: translateY(24px); }
to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
from { opacity: 0; transform: translateX(30px); }
to   { opacity: 1; transform: translateX(0); }
}
@keyframes meshShift {
from { transform: scale(1) rotate(0deg); }
to   { transform: scale(1.08) rotate(2deg); }
}
@keyframes orbPulse {
0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
50%       { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}
@keyframes floatUp {
0%   { transform: translateY(100vh) scale(0); opacity: 0; }
10%  { opacity: 0.6; }
90%  { opacity: 0.3; }
100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}
@keyframes ticker {
from { transform: translateX(0); }
to   { transform: translateX(-50%); }
}
@keyframes spin {
from { transform: translateY(-50%) rotate(0deg); }
to   { transform: translateY(-50%) rotate(360deg); }
}
@keyframes panelIn {
from { opacity: 0; transform: translateY(10px); }
to   { opacity: 1; transform: translateY(0); }
}
/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 480px) {
nav { padding: 1rem; }
.nav-center { display: none; }
.page-main { padding: 2rem 1rem 4rem; }
.field-row { grid-template-columns: 1fr; }
}
