/*
 * ResumeGlow — css/style.css
 * Premium design system: glassmorphism, micro-interactions, luxury aesthetic
 */

/* ═══════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES (Design Tokens)
═══════════════════════════════════════════════════ */
:root {
  --accent: #d4852a;
  --accent-soft: rgba(212, 133, 42, 0.15);
  --accent-glow: rgba(212, 133, 42, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --surface-1: #0a0a0a;
  --surface-2: #111111;
  --surface-3: #1a1a1a;
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-muted: #525252;
  --shadow-glow: 0 0 40px rgba(212, 133, 42, 0.12);
}

.light {
  --glass-bg: rgba(0, 0, 0, 0.02);
  --glass-border: rgba(0, 0, 0, 0.06);
  --surface-1: #fafaf9;
  --surface-2: #f5f5f4;
  --surface-3: #eeeeec;
  --text-primary: #1a1a1a;
  --text-secondary: #525252;
  --text-muted: #a3a3a3;
}

/* ═══════════════════════════════════════════════════
   BASE RESET & TYPOGRAPHY
═══════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ═══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 80px var(--accent-soft); }
}

@keyframes shimmer {
  from { background-position: -200% center; }
  to { background-position: 200% center; }
}

@keyframes scoreReveal {
  from { stroke-dashoffset: 239; }
}

/* Animate everything nicely */
.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-slide-up { animation: slideUp 0.5s ease forwards; opacity: 0; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-glow-pulse { animation: glowPulse 3s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════
   LIGHT MODE — COMPREHENSIVE OVERRIDES
   Fixes ALL invisible text, icons, and hover states
═══════════════════════════════════════════════════ */

/* Base body */
.light body,
html.light body {
  background-color: #fafaf9 !important;
  color: #1a1a1a !important;
}

/* ── Header ── */
html.light header,
.light header {
  background: rgba(250, 250, 249, 0.92) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Logo text */
html.light header span,
html.light header a span {
  color: #1a1a1a !important;
}

/* Header nav buttons */
html.light header nav button {
  color: #525252 !important;
}
html.light header nav button:hover,
html.light header nav button.active {
  color: #1a1a1a !important;
  background: rgba(0, 0, 0, 0.06) !important;
}
html.light header nav button[class*="bg-white/10"] {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #1a1a1a !important;
}

/* Header icon buttons (dark/light toggle, GitHub, My Resumes, Export) */
html.light header button,
html.light header a {
  color: #525252 !important;
}
html.light header button:hover,
html.light header a:hover {
  color: #1a1a1a !important;
  background: rgba(0, 0, 0, 0.05) !important;
}
/* Export PDF button keeps its glow color */
html.light header button[class*="bg-glow"] {
  color: white !important;
  background: #d4852a !important;
}
html.light header button[class*="bg-glow"]:hover {
  background: #e29f43 !important;
}

/* ── Landing page ── */
html.light section {
  color: #1a1a1a;
}
html.light .text-neutral-400 { color: #525252 !important; }
html.light .text-neutral-500 { color: #6b6b6b !important; }
html.light .text-neutral-600 { color: #525252 !important; }
html.light .text-white       { color: #1a1a1a !important; }
html.light .text-neutral-300 { color: #333333 !important; }
html.light .text-neutral-100 { color: #1a1a1a !important; }

/* Stats row on landing */
html.light .font-display { color: #1a1a1a !important; }

/* Landing background orbs — lighter in light mode */
html.light section .absolute.bg-glow-500\/10 { background: rgba(212, 133, 42, 0.06) !important; }

/* Template gallery card text */
html.light section .text-white    { color: #1a1a1a !important; }
html.light section .text-neutral-500 { color: #737373 !important; }

/* Template cards */
html.light div[class*="bg-white/3"],
html.light div[class*="bg-white/5"] {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
html.light div[class*="border-white/5"]  { border-color: rgba(0, 0, 0, 0.08) !important; }
html.light div[class*="border-white/10"] { border-color: rgba(0, 0, 0, 0.1) !important; }
html.light div[class*="border-white/15"] { border-color: rgba(0, 0, 0, 0.14) !important; }

/* ── Builder: Left sidebar ── */
html.light aside {
  background: rgba(248, 248, 246, 0.97) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Panel tab bar */
html.light aside > div:first-child {
  background: rgba(244, 244, 242, 0.98) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
html.light aside > div:first-child button {
  color: #737373 !important;
}
html.light aside > div:first-child button:hover {
  color: #1a1a1a !important;
}
html.light aside > div:first-child button[class*="text-white"] {
  color: #1a1a1a !important;
}

/* Section headers (accordion) */
html.light .section-header {
  color: #333333 !important;
}
html.light .section-header:hover {
  color: #111111 !important;
}
html.light .section-header svg {
  color: #888888 !important;
}

/* Field labels */
html.light .field-label {
  color: #888888 !important;
}

/* Panel sections */
html.light .panel-section {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
html.light .panel-section:hover {
  border-color: rgba(0, 0, 0, 0.14) !important;
}

/* Job cards */
html.light .job-card {
  background: rgba(0, 0, 0, 0.025) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
html.light .job-card:hover {
  border-color: rgba(0, 0, 0, 0.14) !important;
}

/* Skill tags */
html.light .skill-tag {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #333333 !important;
}
html.light .skill-tag:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}

/* Add bullet / Add position buttons */
html.light button[class*="border-dashed"] {
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #737373 !important;
}
html.light button[class*="border-dashed"]:hover {
  border-color: rgba(212, 133, 42, 0.5) !important;
  color: #d4852a !important;
  background: rgba(212, 133, 42, 0.05) !important;
}

/* Generic text colors in sidebar */
html.light aside .text-neutral-400 { color: #525252 !important; }
html.light aside .text-neutral-500 { color: #737373 !important; }
html.light aside .text-neutral-600 { color: #525252 !important; }
html.light aside .text-neutral-300 { color: #333333 !important; }
html.light aside .text-neutral-200 { color: #1a1a1a !important; }
html.light aside .text-white       { color: #1a1a1a !important; }
html.light aside .text-neutral-100 { color: #1a1a1a !important; }
html.light aside .text-neutral-700 { color: #333333 !important; }
html.light aside p, html.light aside span, html.light aside label { color: inherit; }

/* Photo upload circle */
html.light div[class*="border-dashed"][class*="rounded-full"] {
  background: rgba(0,0,0,0.04) !important;
  border-color: rgba(0,0,0,0.15) !important;
}
html.light div[class*="border-dashed"][class*="rounded-full"] svg {
  color: #888888 !important;
}

/* Toggle switches off-state */
html.light div[class*="bg-white/10"][class*="rounded-full"] {
  background: rgba(0, 0, 0, 0.1) !important;
}

/* ATS panel */
html.light aside .text-neutral-400 { color: #525252 !important; }
html.light div[class*="bg-green-500/8"],
html.light div[class*="bg-red-500/8"] {
  /* keep existing tint but ensure text is visible */
}
html.light div[class*="bg-green-500/8"] .text-green-300 { color: #15803d !important; }
html.light div[class*="bg-red-500/8"]   .text-red-300   { color: #b91c1c !important; }
html.light .text-neutral-500 { color: #737373 !important; }

/* JD panel textarea + button */
html.light aside .text-neutral-400,
html.light aside .text-neutral-500 { color: #525252 !important; }

/* Refresh analysis button */
html.light button[class*="bg-white/5"] {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #333333 !important;
}
html.light button[class*="bg-white/5"]:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #111111 !important;
}

/* ── Preview toolbar ── */
html.light div[class*="border-b"][class*="bg-neutral-900"] {
  background: rgba(240, 240, 238, 0.97) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
html.light div[class*="border-b"][class*="bg-neutral-900"] .text-neutral-400 {
  color: #525252 !important;
}
html.light div[class*="border-b"][class*="bg-neutral-900"] svg {
  color: #525252 !important;
}
html.light div[class*="border-b"][class*="bg-neutral-900"] .text-neutral-600 {
  color: #737373 !important;
}
html.light div[class*="border-b"][class*="bg-neutral-900"] .text-neutral-500 {
  color: #737373 !important;
}

/* Zoom controls */
html.light div[class*="bg-white/5"][class*="rounded-lg"] {
  background: rgba(0, 0, 0, 0.05) !important;
}
html.light div[class*="bg-white/5"][class*="rounded-lg"] button {
  color: #525252 !important;
}
html.light div[class*="bg-white/5"][class*="rounded-lg"] button:hover {
  color: #111111 !important;
}
html.light div[class*="bg-white/5"][class*="rounded-lg"] span {
  color: #737373 !important;
}

/* ── Mobile bottom nav ── */
html.light div[class*="bg-neutral-900/95"] {
  background: rgba(248, 248, 246, 0.97) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
html.light div[class*="bg-neutral-900/95"] button {
  color: #737373 !important;
}

/* ── Modals ── */
html.light div[class*="bg-neutral-900"][class*="rounded-2xl"] {
  background: #f8f8f6 !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
html.light div[class*="bg-neutral-900"][class*="rounded-2xl"] h2,
html.light div[class*="bg-neutral-900"][class*="rounded-2xl"] p,
html.light div[class*="bg-neutral-900"][class*="rounded-2xl"] span,
html.light div[class*="bg-neutral-900"][class*="rounded-2xl"] div {
  color: inherit;
}
html.light div[class*="bg-neutral-900"][class*="rounded-2xl"] .text-white  { color: #1a1a1a !important; }
html.light div[class*="bg-neutral-900"][class*="rounded-2xl"] .text-neutral-400 { color: #525252 !important; }
html.light div[class*="bg-neutral-900"][class*="rounded-2xl"] .text-neutral-500 { color: #737373 !important; }
html.light div[class*="bg-neutral-900"][class*="rounded-2xl"] .text-neutral-300 { color: #333333 !important; }

/* Modal story bullets */
html.light div[class*="bg-glow-500/5"] {
  background: rgba(212, 133, 42, 0.06) !important;
}
html.light div[class*="bg-glow-500/5"] span { color: #333333 !important; }

/* Modal cancel button */
html.light button[class*="border-white/10"] {
  border-color: rgba(0,0,0,0.1) !important;
  color: #525252 !important;
}
html.light button[class*="border-white/10"]:hover {
  color: #111111 !important;
  border-color: rgba(0,0,0,0.2) !important;
  background: rgba(0,0,0,0.04) !important;
}

/* Resume picker items */
html.light div[class*="hover:bg-white/5"]:hover {
  background: rgba(0, 0, 0, 0.04) !important;
}
html.light div[class*="bg-glow-500/10"] {
  background: rgba(212, 133, 42, 0.08) !important;
}

/* ── Scrollbars in light mode ── */
html.light ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12) !important;
}
html.light ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2) !important;
}

/* ── SVG icon color propagation ── */
/* Ensure all SVG icons in light mode inherit visible color */
html.light svg {
  color: inherit;
}

/* Story mode button in light */
html.light .story-btn {
  background: linear-gradient(135deg, rgba(212,133,42,0.12), rgba(228,159,67,0.08)) !important;
  border-color: rgba(212,133,42,0.3) !important;
  color: #b8640a !important;
}
html.light .story-btn:hover {
  background: linear-gradient(135deg, rgba(212,133,42,0.2), rgba(228,159,67,0.14)) !important;
  color: #a0540a !important;
}

/* Glow accent text stays amber */
html.light .text-glow-400 { color: #b8640a !important; }
html.light .text-glow-500 { color: #a0540a !important; }
html.light .text-glow-300 { color: #c97820 !important; }

/* Separator lines */
html.light .w-px, html.light [class*="bg-white/10"] {
  background: rgba(0,0,0,0.1) !important;
}

/* ── Preview canvas background in light ── */
html.light .preview-canvas {
  background:
    radial-gradient(ellipse at top right, rgba(212, 133, 42, 0.07) 0%, transparent 60%),
    #e8e7e4 !important;
}

/* ═══════════════════════════════════════════════════
   EDITOR FORM COMPONENTS
═══════════════════════════════════════════════════ */

/* Field label */
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

/* Field input */
.field-input {
  width: 100%;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: #f5f5f5;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  line-height: 1.5;
}

.field-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-input::placeholder {
  color: #404040;
}

.field-input:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Light mode field inputs */
html.light .field-input,
.light .field-input {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1a1a1a !important;
}

html.light .field-input::placeholder,
.light .field-input::placeholder {
  color: #b0b0b0 !important;
}

html.light .field-input:focus,
.light .field-input:focus {
  background: white !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
}

html.light .field-input:hover:not(:focus),
.light .field-input:hover:not(:focus) {
  border-color: rgba(0, 0, 0, 0.2) !important;
}

html.light select.field-input option,
.light select.field-input option {
  background: white !important;
  color: #1a1a1a !important;
}

select.field-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23737373' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

select.field-input option {
  background: #1a1a1a;
  color: #f5f5f5;
}

/* Panel section wrapper */
.panel-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}

.panel-section:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.light .panel-section {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.06);
}

/* Section header (accordion trigger) */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #d4d4d4;
  user-select: none;
  transition: color 0.2s;
}

.section-header:hover {
  color: white;
}

.section-header .section-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
}

/* Job entry card */
.job-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  transition: border-color 0.2s;
}

.job-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.light .job-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.07);
}

/* Story mode button */
.story-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(212, 133, 42, 0.15), rgba(228, 159, 67, 0.1));
  border: 1px solid rgba(212, 133, 42, 0.3);
  color: #e29f43;
  cursor: pointer;
  transition: all 0.2s;
}

.story-btn:hover {
  background: linear-gradient(135deg, rgba(212, 133, 42, 0.25), rgba(228, 159, 67, 0.15));
  border-color: rgba(212, 133, 42, 0.5);
  color: #ecbc6e;
  box-shadow: 0 0 12px rgba(212, 133, 42, 0.2);
}

/* Skill tag */
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d4d4d4;
  transition: all 0.2s;
}

.skill-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ═══════════════════════════════════════════════════
   PREVIEW CANVAS
═══════════════════════════════════════════════════ */
.preview-canvas {
  background:
    radial-gradient(ellipse at top right, rgba(212, 133, 42, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(212, 133, 42, 0.03) 0%, transparent 60%),
    #0a0a0a;
}

.light .preview-canvas {
  background:
    radial-gradient(ellipse at top right, rgba(212, 133, 42, 0.06) 0%, transparent 60%),
    #e8e8e5;
}

/* ═══════════════════════════════════════════════════
   RESUME PREVIEW ROOT
═══════════════════════════════════════════════════ */
.resume-preview-root {
  width: 794px;
  min-height: 1123px; /* A4 at 96dpi */
  font-family: 'DM Sans', Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: normal;
  word-spacing: normal;
  color: #1a1a1a;
  background: white;
  position: relative;
  overflow: hidden;
  /* Prevent any inherited zoom/scale from the parent affecting text metrics */
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
}

/* Ensure ALL children in the resume inherit sane font settings */
.resume-preview-root * {
  letter-spacing: inherit;
  word-spacing: inherit;
}

/* Cormorant Garamond display elements */
.resume-preview-root [style*="Cormorant"],
.resume-preview-root .header-name,
.resume-preview-root .section-title-display {
  font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
}

/* ─── MODERN TEMPLATE ─── */
.resume-modern {
  font-size: 11.5px;
  color: #1a1a1a;
  background: white;
}

.resume-modern .resume-header {
  padding: 36px 40px 28px;
  border-bottom: 2px solid var(--accent);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.resume-modern .resume-header .photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}

.resume-modern .header-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: white;
}

.resume-modern .header-title {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}

.resume-modern .header-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.resume-modern .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}

.resume-modern .resume-body {
  display: grid;
  grid-template-columns: 1fr 220px;
  min-height: calc(1123px - 144px);
}

.resume-modern .main-col {
  padding: 28px 32px;
  border-right: 1px solid #f0f0f0;
}

.resume-modern .side-col {
  padding: 28px 24px;
  background: #fafaf9;
}

.resume-modern .section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 5px;
  margin-bottom: 14px;
  margin-top: 20px;
}

.resume-modern .section-title:first-child { margin-top: 0; }

.resume-modern .job-entry { margin-bottom: 18px; }

.resume-modern .job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 3px;
}

.resume-modern .job-title {
  font-weight: 600;
  font-size: 12.5px;
  color: #111;
}

.resume-modern .job-company {
  font-weight: 500;
  font-size: 11.5px;
  color: #555;
}

.resume-modern .job-date {
  font-size: 10.5px;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

.resume-modern .job-bullets {
  margin-top: 6px;
  padding-left: 0;
  list-style: none;
}

.resume-modern .job-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11px;
  color: #333;
  margin-bottom: 3px;
  line-height: 1.55;
}

.resume-modern .job-bullets li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 5px;
}

.resume-modern .skill-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 500;
  background: var(--accent);
  color: white;
  margin: 2px 2px 2px 0;
}

.resume-modern .side-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(212,133,42,0.3);
  padding-bottom: 4px;
  margin-bottom: 10px;
  margin-top: 18px;
}

.resume-modern .side-section-title:first-child { margin-top: 0; }

/* ─── MINIMAL TEMPLATE ─── */
.resume-minimal {
  font-size: 11.5px;
  color: #1a1a1a;
  background: white;
  padding: 52px 56px;
}

.resume-minimal .header-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 300;
  letter-spacing: -1px;
  color: #111;
  line-height: 1;
}

.resume-minimal .header-title {
  font-size: 13px;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 6px;
}

.resume-minimal .header-divider {
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  margin: 18px 0;
}

.resume-minimal .header-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 10.5px;
  color: #666;
}

.resume-minimal .section-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 24px 0 12px;
}

.resume-minimal .job-title {
  font-weight: 600;
  font-size: 12.5px;
  color: #111;
}

.resume-minimal .job-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #777;
  margin: 2px 0 7px;
}

.resume-minimal .bullet {
  font-size: 11px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 3px;
  padding-left: 12px;
  position: relative;
}

.resume-minimal .bullet::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ─── EXECUTIVE TEMPLATE ─── */
.resume-executive {
  font-size: 11.5px;
  color: #1a1a1a;
  background: white;
}

.resume-executive .resume-header {
  padding: 44px 48px 32px;
  text-align: center;
  background: white;
  border-bottom: 3px solid var(--accent);
  position: relative;
}

.resume-executive .resume-header::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
}

.resume-executive .photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  margin: 0 auto 16px;
  display: block;
}

.resume-executive .header-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: #111;
}

.resume-executive .header-title {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 6px;
}

.resume-executive .header-contacts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
  font-size: 10.5px;
  color: #666;
}

.resume-executive .resume-body {
  padding: 32px 48px;
}

.resume-executive .section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: #111;
  text-align: center;
  letter-spacing: 0.05em;
  margin: 24px 0 14px;
  position: relative;
}

.resume-executive .section-title span {
  background: white;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.resume-executive .section-title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: #e5e5e5;
  z-index: 0;
}

/* ─── CREATIVE TEMPLATE ─── */
.resume-creative {
  font-size: 11.5px;
  color: #1a1a1a;
  background: white;
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 1123px;
}

.resume-creative .side-panel {
  background: var(--accent);
  padding: 36px 24px;
  color: white;
}

.resume-creative .side-panel .photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  margin: 0 auto 16px;
  display: block;
}

.resume-creative .side-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 4px;
}

.resume-creative .side-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.85;
  margin-bottom: 20px;
}

.resume-creative .side-section-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  margin: 16px 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 4px;
}

.resume-creative .contact-line {
  font-size: 10px;
  opacity: 0.9;
  margin-bottom: 4px;
  line-height: 1.5;
}

.resume-creative .main-panel {
  padding: 32px 36px;
}

.resume-creative .section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 5px;
  margin: 22px 0 12px;
}

.resume-creative .section-title:first-child { margin-top: 0; }

/* ─── ELEGANT TEMPLATE ─── */
.resume-elegant {
  font-size: 11.5px;
  color: #2c2c2c;
  background: white;
  padding: 48px 52px;
}

.resume-elegant .header-band {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e0d4;
  position: relative;
}

.resume-elegant .photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  margin: 0 auto 12px;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.resume-elegant .header-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 300;
  letter-spacing: 2px;
  color: #111;
  line-height: 1;
}

.resume-elegant .header-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 8px;
}

.resume-elegant .header-contacts {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
  font-size: 10.5px;
  color: #888;
}

.resume-elegant .decorative-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}

.resume-elegant .decorative-line::before,
.resume-elegant .decorative-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.resume-elegant .decorative-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.resume-elegant .section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: #111;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin: 22px 0 14px;
}

/* ─── TECH TEMPLATE ─── */
.resume-tech {
  font-size: 11px;
  color: #1a1a1a;
  background: white;
  font-family: 'DM Mono', 'DM Sans', monospace;
}

.resume-tech .resume-header {
  padding: 32px 40px;
  background: #0d1117;
  color: white;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  border-bottom: 3px solid var(--accent);
}

.resume-tech .photo {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.resume-tech .header-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.resume-tech .header-title {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.resume-tech .header-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.resume-tech .contact-item {
  font-size: 10.5px;
  color: rgba(255,255,255,0.6);
  font-family: 'DM Sans', sans-serif;
}

.resume-tech .resume-body {
  padding: 28px 40px;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 0;
}

.resume-tech .main-col {
  padding-right: 28px;
  border-right: 1px solid #f0f0f0;
}

.resume-tech .side-col {
  padding-left: 24px;
}

.resume-tech .section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(212,133,42,0.08);
  padding: 4px 10px;
  border-radius: 4px;
  border-left: 3px solid var(--accent);
  margin: 20px 0 12px;
  display: inline-block;
}

.resume-tech .section-title:first-child { margin-top: 0; }

.resume-tech .skill-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(212,133,42,0.1);
  border: 1px solid rgba(212,133,42,0.2);
  color: var(--accent);
  margin: 2px 2px 2px 0;
  font-family: 'DM Sans', sans-serif;
}

/* Shared resume elements */
.resume-summary-text {
  font-size: 11.5px;
  line-height: 1.65;
  color: #444;
}

.edu-entry {
  margin-bottom: 12px;
}

.edu-degree {
  font-weight: 600;
  font-size: 12px;
  color: #111;
}

.edu-school {
  font-size: 11px;
  color: #666;
}

.edu-year {
  font-size: 10.5px;
  color: #999;
}

.lang-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  margin-bottom: 5px;
  color: #444;
}

.lang-level {
  font-size: 9.5px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.cert-item {
  font-size: 11px;
  color: #444;
  padding: 3px 0;
  border-bottom: 1px solid #f5f5f5;
}

.project-entry {
  margin-bottom: 14px;
}

.project-name {
  font-weight: 600;
  font-size: 12px;
  color: #111;
}

.project-tech {
  font-size: 10.5px;
  color: var(--accent);
  margin: 2px 0 4px;
}

.project-desc {
  font-size: 11px;
  color: #444;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════
   SCROLLBAR THIN UTILITY
═══════════════════════════════════════════════════ */
.scrollbar-thin::-webkit-scrollbar { width: 3px; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 2px; }

/* ═══════════════════════════════════════════════════
   PRINT / PDF STYLES
   Used both by window.print() in the export popup
   and by browser direct print (Ctrl+P)
═══════════════════════════════════════════════════ */
@media print {
  /* Hide the app UI — only show the resume */
  body > *:not(#resume-print-root) { display: none !important; }

  @page {
    size: A4 portrait;
    margin: 0;
  }

  html, body {
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
    overflow: hidden !important;
  }

  #resume-print-root,
  .resume-preview-root,
  .resume-modern,
  .resume-minimal,
  .resume-executive,
  .resume-creative,
  .resume-elegant,
  .resume-tech {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
}

/* ═══════════════════════════════════════════════════
   GLASSMORPHISM ELEMENTS
═══════════════════════════════════════════════════ */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ═══════════════════════════════════════════════════
   MOBILE RESPONSIVE ADJUSTMENTS
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .resume-preview-root {
    width: 100%;
    min-height: auto;
  }

  .resume-modern .resume-body,
  .resume-creative,
  .resume-tech .resume-body {
    grid-template-columns: 1fr;
  }

  .resume-modern .side-col,
  .resume-tech .side-col {
    border-top: 1px solid #f0f0f0;
    border-left: none;
    padding-left: 0;
    padding-right: 0;
  }
}


/* ═══════════════════════════════════════════════════
   HEADER — THEME-AWARE UTILITY CLASSES
   These adapt automatically to dark/light mode
   without relying on Tailwind's dark: prefix
═══════════════════════════════════════════════════ */

/* Icon button (sun/moon toggle, GitHub) */
.header-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #a3a3a3;
  transition: color 0.18s, background 0.18s;
  cursor: pointer;
  background: transparent;
  border: none;
  text-decoration: none;
}
.header-icon-btn:hover {
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.07);
}
html.light .header-icon-btn {
  color: #525252 !important;
}
html.light .header-icon-btn:hover {
  color: #111111 !important;
  background: rgba(0, 0, 0, 0.06) !important;
}

/* Generic header text button (My Resumes, etc.) */
.header-btn {
  border-radius: 10px;
  transition: color 0.18s, background 0.18s;
}
.header-btn:hover {
  color: #f5f5f5 !important;
  background: rgba(255, 255, 255, 0.07) !important;
}
html.light .header-btn:hover {
  color: #111111 !important;
  background: rgba(0, 0, 0, 0.06) !important;
}

/* Logo / tagline text */
.header-text-primary {
  color: #f5f5f5;
  transition: color 0.2s;
}
html.light .header-text-primary {
  color: #1a1a1a !important;
}

.header-text-secondary {
  color: #a3a3a3;
  transition: color 0.2s;
}
html.light .header-text-secondary {
  color: #525252 !important;
}

.header-text-muted {
  color: #525252;
  transition: color 0.2s;
}
html.light .header-text-muted {
  color: #888 !important;
}

/* ═══════════════════════════════════════════════════
   FOOTER — BLACKBIRDO CREDIT
═══════════════════════════════════════════════════ */

/* Footer wrapper */
.landing-footer {
  background: transparent;
}
html.light .landing-footer {
  border-color: rgba(0, 0, 0, 0.07) !important;
}

/* Footer text */
.footer-text-muted {
  color: #4a4a4a;
  transition: color 0.2s;
}
html.dark .footer-text-muted,
.footer-text-muted {
  color: #525252;
}
html.light .footer-text-muted {
  color: #888 !important;
}

.footer-link {
  color: #525252;
  text-decoration: none;
  transition: color 0.18s;
}
.footer-link:hover {
  color: #d4852a;
}
html.light .footer-link {
  color: #888;
}
html.light .footer-link:hover {
  color: #b8640a;
}

/* BlackBirdo credit pill */
.blackbirdo-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px 7px 14px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}
.blackbirdo-credit:hover {
  border-color: rgba(212, 133, 42, 0.35);
  background: rgba(212, 133, 42, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 133, 42, 0.12);
}
html.light .blackbirdo-credit {
  border-color: rgba(0, 0, 0, 0.09) !important;
  background: rgba(255, 255, 255, 0.7) !important;
}
html.light .blackbirdo-credit:hover {
  border-color: rgba(212, 133, 42, 0.4) !important;
  background: rgba(212, 133, 42, 0.05) !important;
}

/* Heart icon */
.blackbirdo-heart {
  color: #e25555;
  transition: transform 0.3s ease, color 0.2s;
  flex-shrink: 0;
}
.blackbirdo-credit:hover .blackbirdo-heart {
  transform: scale(1.25);
  color: #f06060;
}

/* Bird icon */
.blackbirdo-bird {
  color: #a3a3a3;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.3s;
}
.blackbirdo-credit:hover .blackbirdo-bird {
  color: #1a1a1a;
  transform: rotate(-8deg) scale(1.1);
}
html.light .blackbirdo-bird {
  color: #555 !important;
}
html.light .blackbirdo-credit:hover .blackbirdo-bird {
  color: #111 !important;
}

/* Brand name container */
.blackbirdo-name {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.2px;
  color: #d4d4d4;
  transition: color 0.2s;
}
html.light .blackbirdo-name {
  color: #1a1a1a !important;
}
.blackbirdo-credit:hover .blackbirdo-name {
  color: #f5f5f5;
}
html.light .blackbirdo-credit:hover .blackbirdo-name {
  color: #111 !important;
}

/* "Black" part — slightly more muted */
.blackbirdo-text {
  color: inherit;
}

/* "Birdo" part — accent colored */
.blackbirdo-birdo {
  background: linear-gradient(135deg, #d4852a, #ecbc6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  transition: opacity 0.2s;
}
.blackbirdo-credit:hover .blackbirdo-birdo {
  opacity: 0.9;
}