/* Logic Technologies ATS Resume Builder — integrated page styles */
.resume-page {
  --blue: #0a66c2;
  --blue-dark: #074f97;
  --blue-soft: #eaf2ff;
  --black: #071d46;
  --text-dark: #1e293b;
  --text-muted: #5f6b7a;
  --white: #ffffff;
  --border: #e2e8f0;
  background: linear-gradient(180deg, #eef6ff 0, #f8fafc 360px, #f8fafc 100%);
  min-height: 100vh;
}

.resume-page-hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 68px 0 105px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(14,165,233,.38), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(245,158,11,.18), transparent 34%),
    linear-gradient(135deg, #04122d, #071d46 54%, #0a66c2);
}

.resume-page-hero::before,
.resume-page-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}

.resume-page-hero::before {
  width: 360px;
  height: 360px;
  right: -100px;
  top: -170px;
}

.resume-page-hero::after {
  width: 250px;
  height: 250px;
  right: 120px;
  top: -130px;
}

.resume-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.resume-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.resume-page-hero h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}

.resume-page-hero p {
  max-width: 690px;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.75;
}

.resume-page .resume-premium-wrapper {
  margin-top: -70px;
}

.resume-page .premium-card h2 {
  font-family: var(--font-display, "Sora", sans-serif);
}

.resume-page button,
.resume-page input,
.resume-page textarea {
  font-family: var(--font-body, "Inter", sans-serif);
}

.resume-page .nav-active {
  color: var(--blue);
}

@media (max-width: 720px) {
  .resume-page-hero { padding: 52px 0 92px; min-height: 300px; }
  .resume-page-hero p { font-size: 15px; }
  .resume-page .resume-premium-wrapper { margin-top: -52px; }
}

/* =====================================================
   AI ATS Resume Builder - Added to Project Rutu Home UI
===================================================== */

.resume-api-hero {
    min-height: 430px;
}

.resume-premium-wrapper {
    width: min(1180px, 92%);
    margin: -55px auto 80px;
    position: relative;
    z-index: 5;
}

.resume-builder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.premium-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(11, 94, 215, 0.12);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(12, 40, 80, 0.12);
}

.premium-card h2 {
    color: var(--black);
    font-size: 26px;
    margin-bottom: 10px;
}

.premium-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.section-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: var(--blue);
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 18px;
}

.linkedin-card label {
    display: block;
    margin: 20px 0 8px;
    color: var(--text-dark);
    font-weight: 700;
}

.linkedin-card input,
.profile-preview-grid input,
.imported-data-card textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    outline: none;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--white);
    font-family: inherit;
    transition: 0.25s ease;
}

.linkedin-card input:focus,
.profile-preview-grid input:focus,
.imported-data-card textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.10);
}

.primary-action,
.secondary-action {
    border: none;
    border-radius: 14px;
    padding: 14px 22px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 15px;
    font-family: inherit;
}

.primary-action {
    background: linear-gradient(135deg, var(--blue), #006dff);
    color: var(--white);
    box-shadow: 0 12px 25px rgba(11, 94, 215, 0.24);
    margin-top: 16px;
}

.secondary-action {
    background: var(--blue-soft);
    color: var(--blue);
    border: 1px solid rgba(11, 94, 215, 0.16);
}

.primary-action:hover,
.secondary-action:hover {
    transform: translateY(-2px);
}

.primary-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.status-text {
    margin-top: 14px;
    color: var(--blue);
    font-weight: 700;
}

.mini-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.mini-info-grid div {
    background: #f5f9ff;
    border: 1px solid #e0ecff;
    border-radius: 16px;
    padding: 14px;
}

.mini-info-grid strong {
    display: block;
    color: var(--black);
    font-size: 14px;
}

.mini-info-grid span {
    color: var(--text-muted);
    font-size: 13px;
}

.live-preview-card {
    background:
        radial-gradient(circle at top right, rgba(11, 94, 215, 0.1), transparent 35%),
        var(--white);
}

.preview-mini-card {
    background: #f8fbff;
    border: 1px solid #e2ecfa;
    border-radius: 20px;
    padding: 20px;
    margin-top: 18px;
}

.preview-success {
    background: #e9f7ef;
    color: #147a3f;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.preview-name {
    font-size: 30px;
    font-weight: 900;
    color: var(--black);
}

.preview-role {
    color: var(--blue);
    font-weight: 700;
    margin-top: 4px;
}

.preview-line {
    height: 1px;
    background: #d9e2ef;
    margin: 18px 0;
}

.preview-section strong {
    color: var(--black);
}

.preview-section p {
    font-size: 14px;
}

.score-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

.score-card {
    background: var(--white);
    border: 1px solid #e2ecfa;
    border-radius: 18px;
    padding: 18px;
    text-align: center;
}

.score-card span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.score-card strong {
    font-size: 32px;
    color: var(--blue);
}

.template-section-premium,
.imported-data-card,
.generate-section {
    margin-bottom: 24px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

.premium-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 16px;
}

.template-card {
    min-height: 126px;
    border: 1px solid #dfe8f5 !important;
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
    color: var(--black) !important;
    border-radius: 18px !important;
    padding: 18px !important;
    text-align: left;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 8px 24px rgba(12, 40, 80, 0.06);
    font-family: inherit;
}

.template-card strong {
    display: block;
    font-size: 16px;
    margin-bottom: 9px;
}

.template-card span {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.template-card:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 94, 215, 0.35) !important;
}

.template-card.active {
    background: linear-gradient(135deg, var(--blue), #006dff) !important;
    color: var(--white) !important;
    border-color: var(--blue) !important;
    box-shadow: 0 16px 34px rgba(11, 94, 215, 0.25);
}

.template-card.active span {
    color: rgba(255, 255, 255, 0.86);
}

.profile-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.imported-data-card textarea {
    min-height: 100px;
    margin-top: 14px;
    resize: vertical;
}

.action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.resume-preview {
    margin-top: 20px;
    background: #f6f9fd;
    border: 1px dashed #b9cae2;
    border-radius: 20px;
    padding: 20px;
}

.premium-resume-preview > p {
    text-align: center;
    color: var(--text-muted);
}

.ats-resume {
    background: var(--white);
    color: var(--text-dark);
    font-family: Arial, Calibri, sans-serif;
    padding: 38px;
    border-radius: 16px;
    line-height: 1.55;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.resume-top-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.ats-resume h1 {
    text-align: center;
    color: var(--black);
    margin: 0;
    font-size: 30px;
}

.ats-resume h3 {
    text-align: center;
    color: var(--blue);
    margin: 6px 0 10px;
}

.resume-contact {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.ats-resume h2 {
    color: var(--blue);
    border-bottom: 2px solid var(--blue);
    font-size: 15px;
    margin-top: 22px;
    padding-bottom: 5px;
    text-transform: uppercase;
}

.ats-resume p,
.ats-resume li,
.ats-resume pre {
    font-size: 14px;
}

.ats-resume pre {
    white-space: pre-wrap;
    font-family: Arial, Calibri, sans-serif;
}

.skills-list {
    columns: 2;
}

@media (max-width: 900px) {
    .resume-builder-grid {
        grid-template-columns: 1fr;
    }

    .profile-preview-grid {
        grid-template-columns: 1fr;
    }

    .section-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .mini-info-grid,
    .score-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .resume-premium-wrapper {
        width: 94%;
        margin-top: -30px;
    }

    .premium-card {
        padding: 20px;
        border-radius: 18px;
    }

    .ats-resume {
        padding: 22px;
    }

    .skills-list {
        columns: 1;
    }

    .action-row button {
        width: 100%;
    }
}

/* =====================================================
   No API ATS Resume Builder refinements
===================================================== */

.no-api-hero .inner-hero-content h1 {
    max-width: 850px;
}

.manual-card .top-action-row {
    margin-top: 20px;
}

.no-api-info-grid {
    margin-top: 20px;
}

.profile-preview-grid label,
.imported-data-card .textarea-label {
    display: block;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 14px;
}

.profile-preview-grid label input {
    margin-top: 8px;
}

.imported-data-card .textarea-label {
    margin-top: 18px;
    margin-bottom: -4px;
}

.manual-card .secondary-action {
    margin-top: 0;
}

.ats-resume hr {
    border: 0;
    border-top: 1px solid #d1d5db;
    margin: 14px 0;
}

.ats-resume ul {
    margin: 0 0 0 20px;
    padding: 0;
}

.ats-resume li {
    margin-bottom: 5px;
    break-inside: avoid;
}

.ats-resume .skills-list li {
    margin-bottom: 4px;
}

@media print {
    body * {
        visibility: hidden;
    }

    .resume-preview,
    .resume-preview * {
        visibility: visible;
    }

    .resume-preview {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
        padding: 0;
        background: #ffffff;
    }

    .ats-resume {
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }
}

/* ============================================================
   RESUME DESIGN PICKER, ACCENT COLOURS & AUTO-SUMMARY CONTROLS
   ============================================================ */

.design-section-premium { margin-top: 24px; }

.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.design-card {
    border: 1px solid #dfe8f5;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    color: var(--black);
    border-radius: 18px;
    padding: 16px;
    text-align: left;
    cursor: pointer;
    transition: 0.22s ease;
    box-shadow: 0 8px 24px rgba(12, 40, 80, 0.06);
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.design-card:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 94, 215, 0.35);
}

.design-card.active {
    border-color: var(--blue);
    box-shadow: 0 16px 34px rgba(11, 94, 215, 0.22);
    background: linear-gradient(180deg, #ffffff, #eef5ff);
}

.design-card.active strong { color: var(--blue-dark); }

.design-card strong { font-size: 15.5px; margin-top: 10px; }

.design-card .design-desc {
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

/* Mini visual swatch that previews each design's header style */
.design-swatch {
    display: block;
    width: 100%;
    height: 78px;
    border-radius: 11px;
    background: #ffffff;
    border: 1px solid #e6edf6;
    padding: 12px 14px;
    overflow: hidden;
}

.design-swatch .ds-name {
    display: block;
    height: 9px;
    width: 56%;
    border-radius: 3px;
    background: #1f2937;
}

.design-swatch .ds-rule {
    display: block;
    height: 3px;
    width: 30px;
    margin: 7px 0;
    background: var(--blue);
    border-radius: 2px;
}

.design-swatch .ds-line {
    display: block;
    height: 5px;
    width: 100%;
    margin-top: 6px;
    border-radius: 3px;
    background: #e2e8f0;
}

.design-swatch .ds-line.short { width: 64%; }

/* Per-design swatch personalities */
.design-swatch-classic { text-align: center; }
.design-swatch-classic .ds-name { margin: 0 auto; width: 64%; }
.design-swatch-classic .ds-rule { margin: 7px auto; width: 80%; height: 1px; background: #cbd5e1; }

.design-swatch-modern .ds-name { width: 62%; height: 11px; }
.design-swatch-modern .ds-rule { width: 34px; height: 4px; }

.design-swatch-executive { text-align: center; }
.design-swatch-executive .ds-name { margin: 0 auto; width: 60%; font-family: Georgia, serif; }
.design-swatch-executive .ds-rule { margin: 7px auto; width: 70%; height: 3px; border-top: 3px double var(--blue); background: transparent; border-radius: 0; }

.design-swatch-minimal .ds-name { width: 48%; height: 8px; background: #475569; }
.design-swatch-minimal .ds-rule { width: 100%; height: 1px; background: #e5e8ee; }
.design-swatch-minimal .ds-line { background: #eef1f5; }

.design-swatch-elegant { text-align: center; }
.design-swatch-elegant .ds-name { margin: 0 auto; width: 58%; letter-spacing: 1px; }
.design-swatch-elegant .ds-rule { margin: 7px auto; width: 40px; height: 1px; }

.design-swatch-compact .ds-name { width: 50%; height: 9px; }
.design-swatch-compact .ds-rule { width: 8px; height: 8px; border-radius: 2px; }
.design-swatch-compact .ds-line { height: 4px; margin-top: 4px; }

/* Accent colour row */
.accent-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.accent-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
}

.accent-swatches { display: flex; gap: 10px; }

.accent-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.18s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
    padding: 0;
}

.accent-dot:hover { transform: scale(1.12); }

.accent-dot.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px #0f172a, 0 2px 8px rgba(15, 23, 42, 0.25);
}

.mono-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-muted);
    cursor: pointer;
    margin-left: auto;
}

.mono-toggle input { width: 16px; height: 16px; cursor: pointer; }

/* Auto-summary controls */
.summary-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.summary-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.chip-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #ffffff;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.18s ease;
}

.chip-action:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.chip-action i { font-size: 14px; }

.chip-action.ghost {
    background: var(--blue-soft);
    color: var(--blue-dark);
    border-color: #cfe0fb;
}

.chip-action.ghost:hover { background: #dcebff; }

.field-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: 7px 0 4px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .summary-label-row { flex-direction: column; align-items: flex-start; }
    .mono-toggle { margin-left: 0; }
}

/* ============================================================
   v3: RESUME THUMBNAILS, PER-FIELD AUTO BUTTONS, STEP BADGES
   ============================================================ */

/* Step badges on each section heading */
.step-badge {
    display: inline-block;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 999px;
    margin-bottom: 10px;
}

/* Wider cards so thumbnails read clearly */
.premium-template-grid,
.design-grid {
    grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
    align-items: stretch;
    gap: 18px;
}

.template-card,
.design-card {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px !important;
}

/* Real mini-resume thumbnail — large enough to actually read */
.thumb-frame {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 208px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
    position: relative;
    margin-bottom: 13px;
}

.thumb-scale {
    flex: 0 0 auto;
    width: 470px;
    transform: scale(0.48);
    transform-origin: top center;
    pointer-events: none;
}

.thumb-resume,
.role-thumb-resume {
    width: 470px;
    padding: 28px 30px;
    background: #ffffff;
    color: #1f2937;
}

.template-card strong,
.design-card strong {
    display: block;
    font-size: 15px;
    margin: 2px 0 4px;
    color: var(--black);
}

.design-card.active strong,
.template-card.active strong { color: var(--blue-dark); }

/* Keep the small description readable and not clipped by .active gradient.
   Role/design cards are now light even when active, so text stays dark. */
.card-desc {
    display: block;
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

/* Selected state: light highlight (no dark gradient, so thumbnails + text
   stay legible) with a clear accent ring */
.template-card.active,
.design-card.active {
    background: linear-gradient(180deg, #ffffff, #eef5ff) !important;
    border-color: var(--blue) !important;
    color: var(--black) !important;
    box-shadow: 0 16px 34px rgba(11, 94, 215, 0.20),
                0 0 0 2px var(--blue) inset;
}

.template-card.active .card-desc,
.design-card.active .card-desc { color: var(--text-muted); }

/* Per-field auto-generate buttons */
.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.field-auto-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #cfe0fb;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.16s ease;
}

.field-auto-btn:hover {
    background: var(--blue);
    color: #ffffff;
    border-color: var(--blue);
    transform: translateY(-1px);
}

.field-auto-btn i { font-size: 13px; }

.imported-data-card textarea { margin-top: 8px; }

/* Make the live-preview card sticky on large screens for easier editing */
@media (min-width: 1024px) {
    .live-preview-card {
        position: sticky;
        top: 90px;
    }
}

@media (max-width: 560px) {
    .premium-template-grid,
    .design-grid {
        grid-template-columns: 1fr;
    }
    .field-label-row { flex-direction: row; }
}

/* Resume page mobile header correction for the existing site navigation. */
@media (max-width: 820px) {
  .header .nav {
    height: 72px;
    min-height: 72px;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 0;
  }

  .header .nav-links {
    display: none;
  }

  .header .logo img {
    width: auto;
    height: 74px;
    max-width: 180px;
    object-fit: contain;
  }

  .header .nav-actions {
    flex: 0 0 auto;
  }

  .header .nav-btn {
    padding: 10px 14px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .header .logo img {
    height: 66px;
    max-width: 150px;
  }
}

/* Prevent fixed-size thumbnail canvases from forcing horizontal overflow. */
.template-card,
.design-card {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.thumb-frame {
  min-width: 0;
  max-width: 100%;
}

.thumb-scale {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) scale(0.48);
}

