/* ============================================================
builder.css — ResumeAI Resume Builder Page
Loaded by: frontend/index.html
Requires:  base.css
============================================================ */
section { padding: var(--space-2xl) var(--space-sm); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: var(--space-lg); color: var(--cream); }
/* ── Hero ── */
#hero {
min-height: 92vh;
display: flex; flex-direction: column; align-items: center; justify-content: center;
text-align: center; max-width: var(--max-width); margin: 0 auto;
animation: fadeUp 0.8s ease both;
}
.hero-badge {
display: inline-block; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.05em;
color: var(--gold); border: 1px solid rgba(201,168,76,0.3);
padding: 6px 16px; border-radius: var(--radius-pill); margin-bottom: var(--space-md);
}
#hero h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; color: var(--cream); margin-bottom: var(--space-md); }
.accent { color: var(--gold); font-style: italic; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 480px; margin-bottom: var(--space-lg); font-weight: 300; }
.hero-stats { display: flex; align-items: center; gap: var(--space-md); animation: fadeUp 0.8s 0.3s ease both; }
.hero-stats .stat { display: flex; flex-direction: column; align-items: center; }
.hero-stats .stat strong { font-size: 1.1rem; font-weight: 500; color: var(--cream); }
.hero-stats .stat span  { font-size: 0.78rem; color: var(--muted); }
.stat-divider { width: 1px; height: 32px; background: var(--border); }
/* ── Form ── */
#form-section { max-width: var(--max-width); margin: 0 auto; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-md); margin-bottom: var(--space-md); background: var(--surface); }
legend { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0 var(--space-xs); }
.tone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); }
.tone-option { cursor: pointer; }
.tone-option input[type="radio"] { display: none; }
.tone-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-sm); text-align: center; transition: border-color 0.2s, background 0.2s; }
.tone-card strong { display: block; font-size: 0.9rem; margin-bottom: 4px; color: var(--cream); }
.tone-card span   { font-size: 0.78rem; color: var(--muted); }
.tone-option input[type="radio"]:checked + .tone-card { border-color: var(--gold); background: rgba(201,168,76,0.08); }
.btn-generate {
width: 100%; margin-top: var(--space-md); padding: 18px;
background: var(--gold); color: var(--ink);
font-family: var(--font-sans); font-size: 1.05rem; font-weight: 500;
border: none; border-radius: var(--radius-md); cursor: pointer;
transition: background 0.2s, transform 0.2s;
}
.btn-generate:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-generate:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
/* ── Result ── */
#result-section { max-width: var(--max-width); margin: 0 auto; }
.result-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-md); align-items: start; }
.preview-panel { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.preview-header { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--space-sm); background: var(--surface); border-bottom: 1px solid var(--border); font-size: 0.85rem; color: var(--muted); }
.preview-badge { font-size: 0.72rem; padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.resume-output { padding: var(--space-md); font-size: 0.88rem; line-height: 1.8; color: var(--cream); white-space: pre-wrap; min-height: 400px; }
.download-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-md); text-align: center; margin-bottom: var(--space-sm); }
.download-icon { font-size: 2.5rem; margin-bottom: var(--space-sm); }
.download-card h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: var(--space-xs); }
.download-card > p { font-size: 0.875rem; color: var(--muted); margin-bottom: var(--space-sm); }
.price { font-size: 2.5rem; font-weight: 700; color: var(--gold); margin-bottom: var(--space-sm); }
.download-features { list-style: none; text-align: left; margin-bottom: var(--space-md); }
.download-features li { font-size: 0.85rem; color: var(--muted); padding: 4px 0; }
.secure-note { font-size: 0.75rem; color: var(--muted); }
.btn-download {
width: 100%; padding: 14px; background: var(--gold); color: var(--ink);
font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500;
border: none; border-radius: var(--radius-sm); cursor: pointer;
transition: background 0.2s, transform 0.2s; margin-bottom: var(--space-xs);
}
.btn-download:hover { background: var(--gold-light); transform: translateY(-1px); }
/* ── Footer ── */
#footer { text-align: center; padding: var(--space-lg) var(--space-sm); border-top: 1px solid var(--border); }
.footer-brand { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold); margin-bottom: var(--space-xs); }
#footer p { font-size: 0.8rem; color: var(--muted); margin-bottom: var(--space-sm); }
.footer-links { display: flex; justify-content: center; gap: var(--space-md); }
.footer-links a { font-size: 0.8rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--cream); }
@media (max-width: 700px) {
.tone-grid     { grid-template-columns: 1fr 1fr; }
.result-layout { grid-template-columns: 1fr; }
#hero h1       { font-size: 2.8rem; }
}
