/* ============================================================
dashboard.css — ResumeAI Dashboard Page
Loaded by: frontend/dashboard.html
Requires:  base.css
============================================================ */
/* ── Welcome hero ── */
.welcome-hero { margin-bottom: 3rem; animation: fadeUp 0.7s ease both; }
.welcome-time {
font-size: 0.78rem; letter-spacing: 0.12em;
text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem;
}
.welcome-hero h1 {
font-family: var(--font-serif);
font-size: clamp(2.2rem, 5vw, 3.5rem);
font-weight: 600; line-height: 1.1; color: var(--cream); margin-bottom: 0.75rem;
}
.welcome-hero h1 em { color: var(--gold); font-style: italic; }
.welcome-hero p { font-size: 1rem; color: var(--muted); font-weight: 300; }
/* ── Ticker ── */
.ticker-wrap {
overflow: hidden; margin-bottom: 2rem;
border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
padding: 10px 0; animation: fadeUp 0.7s 0.05s ease both;
}
.ticker { display: flex; gap: 3rem; animation: ticker 25s linear infinite; white-space: nowrap; }
.ticker-item { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ticker-item span { color: var(--gold); font-weight: 500; }
/* ── Stats row ── */
.stats-row {
display: grid; grid-template-columns: repeat(4, 1fr);
gap: 1rem; margin-bottom: 2.5rem; animation: fadeUp 0.7s 0.1s ease both;
}
.stat-card {
background: var(--surface); border: 1px solid var(--border);
border-radius: 14px; padding: 1.25rem 1.5rem;
position: relative; overflow: hidden;
transition: transform 0.2s, border-color 0.2s;
}
.stat-card:hover { transform: translateY(-3px); border-color: rgba(201,168,76,0.35); }
.stat-card::before {
content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
background: linear-gradient(90deg, transparent, var(--gold), transparent);
opacity: 0; transition: opacity 0.3s;
}
.stat-card:hover::before { opacity: 1; }
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.stat-value { font-size: 2rem; font-weight: 500; color: var(--cream); line-height: 1; margin-bottom: 0.35rem; }
.stat-delta { font-size: 0.78rem; color: var(--green); }
.stat-icon  { position: absolute; right: 1.25rem; top: 1.25rem; font-size: 1.4rem; opacity: 0.25; }
/* ── Main grid ── */
.dashboard-grid {
display: grid; grid-template-columns: 1fr 340px;
gap: 1.5rem; animation: fadeUp 0.7s 0.2s ease both;
}
/* ── CTA card ── */
.cta-card {
background: linear-gradient(135deg, rgba(201,168,76,0.12) 0%, rgba(201,168,76,0.04) 100%);
border: 1px solid rgba(201,168,76,0.3);
border-radius: var(--radius-lg); padding: 2.5rem; margin-bottom: 1.5rem;
position: relative; overflow: hidden;
}
.cta-card::after {
content: '✦'; position: absolute; right: 2rem; top: 50%;
font-size: 6rem; color: var(--gold); opacity: 0.06;
animation: spin 20s linear infinite;
}
.cta-card h2 { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 600; color: var(--cream); margin-bottom: 0.5rem; }
.cta-card p  { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem; max-width: 400px; }
.btn-build {
display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px;
background: var(--gold); color: var(--ink);
font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500;
border: none; border-radius: var(--radius-pill); cursor: pointer;
transition: background 0.2s, transform 0.15s;
}
.btn-build:hover { background: var(--gold-light); transform: translateY(-2px); }
/* ── Resume list ── */
.section-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1rem; }
.resume-list { display: flex; flex-direction: column; gap: 0.75rem; }
.resume-item {
display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
cursor: pointer; color: inherit;
transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.resume-item:hover { background: rgba(255,255,255,0.06); border-color: rgba(201,168,76,0.3); transform: translateX(4px); }
.resume-thumb {
width: 40px; height: 50px; background: rgba(201,168,76,0.1);
border: 1px solid var(--border); border-radius: var(--radius-sm);
display: flex; align-items: center; justify-content: center;
font-size: 1.2rem; flex-shrink: 0;
}
.resume-info { flex: 1; min-width: 0; }
.resume-name { font-size: 0.9rem; font-weight: 500; color: var(--cream); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-meta { font-size: 0.78rem; color: var(--muted); }
.resume-status { font-size: 0.72rem; padding: 3px 10px; border-radius: var(--radius-pill); font-weight: 500; flex-shrink: 0; }
.status-complete { background: rgba(46,204,138,0.12); color: var(--green); border: 1px solid rgba(46,204,138,0.25); }
.status-draft    { background: rgba(201,168,76,0.12); color: var(--gold); border: 1px solid rgba(201,168,76,0.25); }
/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; }
.sidebar-card h3 { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; color: var(--cream); margin-bottom: 1rem; }
.strength-score { display: flex; align-items: baseline; gap: 6px; margin-bottom: 1rem; }
.strength-number { font-size: 3rem; font-weight: 500; color: var(--gold); line-height: 1; }
.strength-max    { font-size: 1rem; color: var(--muted); }
.strength-bar-track { height: 6px; background: rgba(255,255,255,0.08); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 1rem; }
.strength-bar-fill  { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--gold), var(--green)); width: 0%; transition: width 1.5s cubic-bezier(0.4,0,0.2,1); }
.strength-tips { display: flex; flex-direction: column; gap: 6px; }
.tip-item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); }
.tip-dot  { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.tip-dot.done { background: var(--green); }
.tip-dot.todo { background: rgba(255,255,255,0.2); }
.job-match-list { display: flex; flex-direction: column; gap: 0.75rem; }
.job-match-item { display: flex; align-items: center; gap: 10px; }
.match-logo { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.match-info { flex: 1; }
.match-company { font-size: 0.83rem; font-weight: 500; color: var(--cream); }
.match-role    { font-size: 0.75rem; color: var(--muted); }
.match-pct     { font-size: 0.8rem; font-weight: 500; color: var(--green); }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.quick-btn {
display: flex; flex-direction: column; align-items: center; gap: 6px;
padding: 1rem; background: rgba(255,255,255,0.03);
border: 1px solid var(--border); border-radius: 10px; cursor: pointer; color: inherit;
transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.quick-btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(201,168,76,0.3); transform: translateY(-2px); }
.quick-btn-icon  { font-size: 1.4rem; }
.quick-btn-label { font-size: 0.75rem; color: var(--muted); text-align: center; }
.activity-feed { display: flex; flex-direction: column; gap: 0.75rem; }
.activity-item { display: flex; gap: 10px; align-items: flex-start; }
.activity-dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 5px; }
.activity-text { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.activity-text strong { color: var(--cream); font-weight: 500; }
.activity-time { font-size: 0.72rem; color: rgba(107,101,117,0.7); }
@media (max-width: 900px) {
.dashboard-grid { grid-template-columns: 1fr; }
.stats-row      { grid-template-columns: 1fr 1fr; }
}
