
/* ═══════════════════════════════════════════════════════════
   QOLIFIED — Brand Theme CSS
   Based on: Qolified_Brand_Guide.docx
   Tagline: "Get Qolified for your dream job"
   ═══════════════════════════════════════════════════════════ */

/* ═══ GOOGLE FONTS ═══ */
500;700&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

/* ═══════════════════════════════════════════════════════════
   CSS VARIABLES — Your entire brand in one place
   ═══════════════════════════════════════════════════════════ */
:root {
  /* ─── Colours ─── */
  --cloud:       #F7F5F1;   /* Primary background */
  --mist:        #E3EEF2;   /* Secondary background / cards */
  --steel:       #3E6E85;   /* Primary brand — headings, links, buttons */
  --coral:       #F2946B;   /* Accent ONLY — dot, period, highlights */
  --deep-slate:  #2F4B57;   /* Body text / dark surfaces / replaces ALL black */
  --taupe:       #8B8580;   /* Secondary/muted text */
  --white:       #FFFFFF;   /* Card backgrounds */

  /* ─── Functional Colours (keep for UX) ─── */
  --success:     #2E7D6F;   /* Green for success states */
  --error:       #C0392B;   /* Red for errors */
  --warning:     #D4740E;   /* Amber for warnings */

  /* ─── Typography ─── */
  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'IBM Plex Sans', sans-serif;

  /* ─── Font Weights ─── */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* ─── Font Sizes ─── */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.25rem;    /* 20px */
  --text-2xl:   1.5rem;     /* 24px */
  --text-3xl:   1.875rem;   /* 30px */
  --text-4xl:   2.25rem;    /* 36px */
  --text-5xl:   3rem;       /* 48px */

  /* ─── Spacing ─── */
  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full: 999px;

  /* ─── Shadows ─── */
  --shadow-sm:  0 1px 3px rgba(47, 75, 87, 0.08);
  --shadow-md:  0 4px 12px rgba(47, 75, 87, 0.12);
  --shadow-lg:  0 8px 24px rgba(47, 75, 87, 0.16);
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  color: var(--deep-slate);
  background-color: var(--cloud);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--deep-slate);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  color: var(--deep-slate);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.text-muted {
  color: var(--taupe);
}

.text-steel {
  color: var(--steel);
}

.text-coral {
  color: var(--coral);
}

small, .caption {
  font-size: var(--text-xs);
  color: var(--taupe);
}

strong, b {
  font-weight: var(--weight-semibold);
}


/* ═══════════════════════════════════════════════════════════
   WORDMARK / BRAND
   ═══════════════════════════════════════════════════════════ */
.wordmark {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
  color: var(--steel);
}

.wordmark .period {
  color: var(--coral);  /* The trailing period is ALWAYS coral */
}

.tagline {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  color: var(--taupe);
  letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════════════════════
   LINKS
   ═══════════════════════════════════════════════════════════ */
a {
  color: var(--steel);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--deep-slate);
  text-decoration: underline;
}

a:active {
  color: var(--coral);
}


/* ═══════════════════════════════════════════════════════════
   NAVIGATION BAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
  background-color: var(--white);
  border-bottom: 1px solid var(--mist);
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar-dark {
  background-color: var(--deep-slate);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  color: var(--steel);
  text-decoration: none;
}

.navbar-brand:hover {
  text-decoration: none;
  color: var(--steel);
}

.navbar-brand .period {
  color: var(--coral);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  color: var(--deep-slate);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--steel);
  background-color: var(--mist);
  text-decoration: none;
}

.nav-link.active {
  color: var(--steel);
  background-color: var(--mist);
  font-weight: var(--weight-bold);
}

.navbar-dark .nav-link {
  color: var(--cloud);
}

.navbar-dark .nav-link:hover {
  color: var(--mist);
  background-color: rgba(255,255,255,0.08);
}


/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--steel);
  color: var(--cloud);
}

.btn-primary:hover {
  background-color: var(--deep-slate);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  background-color: var(--deep-slate);
  transform: translateY(0);
}

.btn-primary:disabled {
  background-color: var(--taupe);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--steel);
  border: 1.5px solid var(--steel);
}

.btn-secondary:hover {
  background-color: var(--mist);
  border-color: var(--deep-slate);
  color: var(--deep-slate);
}

.btn-ghost {
  background-color: transparent;
  color: var(--steel);
  font-family: var(--font-body);
}

.btn-ghost:hover {
  background-color: var(--mist);
}

.btn-danger {
  background-color: transparent;
  color: var(--error);
  border: 1.5px solid var(--error);
}

.btn-danger:hover {
  background-color: var(--error);
  color: var(--cloud);
}

.btn-coral {
  background-color: var(--coral);
  color: var(--white);
}

.btn-coral:hover {
  background-color: #E07D55;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: var(--text-xs);
}

.btn-full {
  width: 100%;
}


/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background-color: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-mist {
  background-color: var(--mist);
  border: 1px solid rgba(62, 110, 133, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.card-header {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  color: var(--deep-slate);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--mist);
}

.card-body {
  font-size: var(--text-base);
  color: var(--deep-slate);
}


/* ═══════════════════════════════════════════════════════════
   FORMS & INPUTS
   ═══════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  color: var(--deep-slate);
  margin-bottom: 0.375rem;
}

.form-input,
.form-textarea,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  background-color: var(--white);
  border: 1.5px solid var(--mist);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--deep-slate);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--taupe);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(62, 110, 133, 0.15);
}

.form-input:disabled,
input:disabled,
textarea:disabled {
  background-color: var(--mist);
  color: var(--taupe);
  cursor: not-allowed;
}

/* File Upload Area */
.upload-area {
  border: 2px dashed var(--steel);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  background-color: var(--mist);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-area:hover {
  background-color: rgba(62, 110, 133, 0.08);
  border-color: var(--deep-slate);
}

.upload-area p {
  color: var(--steel);
  font-weight: var(--weight-medium);
}


/* ═══════════════════════════════════════════════════════════
   SECTIONS & LAYOUT
   ═══════════════════════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-md {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
  background-color: var(--cloud);
}

.section-mist {
  padding: 4rem 0;
  background-color: var(--mist);
}

.section-dark {
  padding: 4rem 0;
  background-color: var(--deep-slate);
  color: var(--cloud);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--cloud);
}


/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero {
  background-color: var(--deep-slate);
  color: var(--cloud);
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  color: var(--cloud);
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: var(--text-lg);
  color: var(--mist);
  margin-bottom: 2rem;
}

.hero .highlight {
  color: var(--coral);
}


/* ═══════════════════════════════════════════════════════════
   ALERTS & NOTIFICATIONS
   ═══════════════════════════════════════════════════════════ */
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  margin-bottom: 1rem;
}

.alert-success {
  background-color: rgba(62, 110, 133, 0.1);
  border: 1px solid var(--steel);
  color: var(--deep-slate);
}

.alert-error {
  background-color: rgba(192, 57, 43, 0.08);
  border: 1px solid var(--error);
  color: var(--error);
}

.alert-warning {
  background-color: rgba(242, 148, 107, 0.12);
  border: 1px solid var(--coral);
  color: var(--deep-slate);
}

.alert-info {
  background-color: var(--mist);
  border: 1px solid rgba(62, 110, 133, 0.3);
  color: var(--deep-slate);
}


/* ═══════════════════════════════════════════════════════════
   BADGES & TAGS
   ═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.badge-steel {
  background-color: var(--mist);
  color: var(--steel);
}

.badge-success {
  background-color: rgba(46, 125, 111, 0.12);
  color: var(--success);
}

.badge-warning {
  background-color: rgba(242, 148, 107, 0.15);
  color: var(--warning);
}

.badge-error {
  background-color: rgba(192, 57, 43, 0.1);
  color: var(--error);
}


/* ═══════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════ */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}

thead {
  background-color: var(--mist);
}

th {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  color: var(--steel);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(62, 110, 133, 0.2);
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--mist);
  font-size: var(--text-sm);
  color: var(--deep-slate);
}

tr:hover {
  background-color: rgba(227, 238, 242, 0.4);
}


/* ═══════════════════════════════════════════════════════════
   LOADING & PROGRESS
   ═══════════════════════════════════════════════════════════ */
.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--mist);
  border-top-color: var(--steel);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

.progress-bar {
  height: 4px;
  background-color: var(--mist);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--steel);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background-color: var(--deep-slate);
  color: var(--cloud);
  padding: 3rem 1.5rem 2rem;
}

.footer h3, .footer h4 {
  font-family: var(--font-display);
  color: var(--cloud);
  margin-bottom: 1rem;
}

.footer p {
  color: var(--taupe);
  font-size: var(--text-sm);
}

.footer a {
  color: var(--taupe);
  font-size: var(--text-sm);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--cloud);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  color: var(--taupe);
  font-size: var(--text-xs);
  text-align: center;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--mist);
  font-style: italic;
}


/* ═══════════════════════════════════════════════════════════
   AUTH PAGES (Login / Signup)
   ═══════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cloud);
  padding: 2rem;
}

.auth-card {
  background-color: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-md);
}

.auth-card h1, .auth-card h2 {
  font-family: var(--font-display);
  text-align: center;
  color: var(--deep-slate);
  margin-bottom: 0.5rem;
}

.auth-card .tagline {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-divider {
  text-align: center;
  color: var(--taupe);
  font-size: var(--text-sm);
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: var(--mist);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }


/* ═══════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  background-color: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--steel);
}

.stat-card .stat-label {
  font-size: var(--text-sm);
  color: var(--taupe);
  margin-top: 0.25rem;
}


/* ═══════════════════════════════════════════════════════════
   PRICING / PACKAGES
   ═══════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background-color: var(--white);
  border: 1.5px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.2s ease;
}

.pricing-card:hover {
  border-color: var(--steel);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--steel);
  background-color: var(--mist);
  position: relative;
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--steel);
  margin: 1rem 0;
}

.pricing-card .price span {
  font-size: var(--text-sm);
  color: var(--taupe);
  font-weight: var(--weight-regular);
}


/* ═══════════════════════════════════════════════════════════
   TEMPLATE CARDS (CV Template Selection)
   ═══════════════════════════════════════════════════════════ */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.template-card {
  background-color: var(--white);
  border: 2px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.template-card:hover {
  border-color: var(--steel);
  box-shadow: var(--shadow-md);
}

.template-card.selected {
  border-color: var(--steel);
  background-color: var(--mist);
  box-shadow: 0 0 0 3px rgba(62, 110, 133, 0.2);
}

.template-card h4 {
  color: var(--steel);
  margin-bottom: 0.5rem;
}

.template-card p {
  font-size: var(--text-sm);
  color: var(--taupe);
}


/* ═══════════════════════════════════════════════════════════
   MODAL / OVERLAY
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(47, 75, 87, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  color: var(--deep-slate);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--mist);
}


/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden { display: none; }
.visible { display: block; }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  
  .hero h1 { font-size: var(--text-3xl); }
  .hero { padding: 3rem 1rem; }
  
  .container { padding: 0 1rem; }
  .card { padding: 1rem; }
  .auth-card { padding: 1.5rem; }
  
  .navbar {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }
  
  .nav-links {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .dashboard-grid,
  .pricing-grid,
  .template-grid {
    grid-template-columns: 1fr;
  }

  .btn-lg {
    width: 100%;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
