/**
 * QMPR — Quiz Maker Premium Reports
 * © 2024-2026 Elia Consulting SRL. Toate drepturile rezervate.
 * Autor: Roxana Hurdubei | eliaconsulting.ro
 */
  :root {
    --magenta: #6B3FA0;
    --magenta-light: #9B6FD4;
    --magenta-soft: #EDE0F7;
    --magenta-glow: rgba(107, 63, 160, 0.07);
    --rose: #F8BBD0;
    --blush: #FFF0F3;
    --warm-white: #FFFBFC;
    --text-dark: #2D2D2D;
    --text-body: #4A4A4A;
    --text-muted: #999;
    --border-soft: rgba(107, 63, 160, 0.12);
  }

  /* Scoped reset — only inside report */
  .report-container * { margin: 0; padding: 0; box-sizing: border-box; }

  /* Force font-family on ALL elements */
  .report-container,
  .report-container p,
  .report-container div,
  .report-container span,
  .report-container li,
  .report-container td,
  .report-container th,
  .report-container a {
    font-family: 'Inter', sans-serif !important;
  }

  /* Force consistent text on paragraph-level elements */
  .report-container p {
    font-size: 18px !important;
    color: #4A4A4A !important;
    line-height: 1.85 !important;
  }

  /* Headings use Cormorant Garamond + dark color */
  .report-container h1,
  .report-container h2,
  .report-container h3 {
    font-family: 'Cormorant Garamond', serif !important;
    color: #2D2D2D !important;
    line-height: 1.3;
  }

  .report-container {
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 60px rgba(0,0,0,0.04);
    font-family: 'Inter', sans-serif !important;
    font-size: 18px;
    color: #4A4A4A;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
  }

  /* ─── HEADER ─── */
  .report-header {
    background: #FFFFFF;
    padding: 56px 44px 52px;
    text-align: center;
  }

  .header-brand {
    margin-bottom: 40px;
  }

  .header-brand img {
    height: 36px;
    width: auto;
    opacity: 1;
  }

  .header-emoji {
    font-size: 44px;
    margin-bottom: 22px;
  }

  .report-container .header-label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
  }

  .report-container .header-profile-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 700;
    color: #6B3FA0 !important;
    margin-bottom: 16px;
    line-height: 1.15;
  }

  .header-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--magenta), transparent);
    margin: 0 auto 18px;
    border-radius: 2px;
  }

  .report-container .header-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    font-style: italic;
    color: var(--text-muted);
    font-weight: 400;
  }

  /* ─── DEDICATION ─── */
  .report-container .header-dedication {
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 6px;
  }

  .report-container .header-dedication strong {
    color: var(--magenta);
    font-weight: 500;
  }

  /* ─── CONTENT AREA ─── */
  .report-body {
    padding: 48px 48px 32px;
  }

  /* ─── SECTION ─── */
  .section {
    margin-bottom: 48px;
  }

  .report-container .section-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 25px;
    font-weight: 600;
    color: #2D2D2D !important;
    margin-bottom: 6px;
    display: inline-block;
  }

  .report-container .section-title::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--magenta), var(--magenta-light));
    border-radius: 2px;
    margin-top: 8px;
  }

  .report-container .section-text {
    margin-top: 20px;
    font-size: 18px;
    color: #4A4A4A !important;
    line-height: 1.85;
  }

  .report-container .section-text p + p {
    margin-top: 16px;
  }

  /* ─── SECRETS SECTION ─── */
  .secrets-section {
    background: transparent;
    padding: 36px 0;
    margin-bottom: 48px;
    border-top: 1px solid rgba(107, 63, 160, 0.12);
    border-bottom: 1px solid rgba(107, 63, 160, 0.12);
    border-radius: 0;
  }

  .secrets-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .secrets-header .emoji-icon {
    font-size: 22px;
  }

  .report-container .secret-item {
    position: relative;
    padding-left: 20px;
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.85;
    color: #4A4A4A !important;
  }

  .secret-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 3px;
    height: calc(100% - 16px);
    background: linear-gradient(180deg, var(--magenta-light), var(--rose));
    border-radius: 2px;
  }

  /* ─── POWER CARDS ─── */
  .power-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 48px;
  }

  .power-card {
    border-radius: 16px;
    padding: 30px 26px;
    position: relative;
    text-align: center;
  }

  .power-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    pointer-events: none;
  }

  .power-card.strength {
    background: linear-gradient(150deg, #F8F2FB 0%, #FFFFFF 100%);
  }

  .power-card.weakness {
    background: linear-gradient(150deg, #FFFBF0 0%, #FFFFFF 100%);
  }

  .power-card .card-emoji {
    font-size: 28px;
    margin-bottom: 14px;
  }

  .report-container .power-card .card-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--magenta);
    margin-bottom: 10px;
  }

  .report-container .power-card.weakness .card-label {
    color: #D4A017;
  }

  .report-container .power-card .card-text {
    font-size: 18px;
    line-height: 1.85;
    color: #4A4A4A !important;
  }

  /* ─── ADVICE SECTION ─── */
  .advice-section {
    margin-bottom: 48px;
  }

  .advice-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }

  .advice-item:last-child {
    border-bottom: none;
  }

  .advice-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--magenta-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }

  .advice-content {
    flex: 1;
  }

  .report-container .advice-title {
    font-weight: 600;
    font-size: 18px;
    color: #2D2D2D !important;
    margin-bottom: 6px;
  }

  .report-container .advice-text {
    font-size: 18px;
    line-height: 1.85;
    color: #4A4A4A !important;
  }

  /* ─── DISCLAIMER ─── */
  .disclaimer {
    background: #FFF8F0;
    border-radius: 12px;
    padding: 26px 30px;
    margin-bottom: 36px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid rgba(107, 63, 160, 0.1);
  }

  .disclaimer-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .report-container .disclaimer-text {
    font-size: 18px;
    line-height: 1.85;
    color: #777 !important;
  }

  /* ─── FOOTER ─── */
  .report-footer {
    text-align: center;
    padding: 32px 44px 48px;
    border-top: 1px solid rgba(0,0,0,0.04);
  }

  .footer-brand {
    margin-bottom: 6px;
  }

  .footer-brand img {
    height: 36px;
    width: auto;
  }

  .footer-tagline {
    font-size: 16px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    margin-bottom: 24px;
  }

  .report-container .footer-cta {
    display: inline-block;
    padding: 13px 36px;
    background: #fff;
    color: var(--magenta);
    font-size: 16.5px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 10px !important;
    text-decoration: none;
    border: 1.5px solid var(--magenta);
    transition: all 0.25s ease;
  }

  .report-container .footer-cta:hover {
    background: var(--magenta);
    color: #fff;
  }

  .footer-date {
    margin-top: 22px;
    font-size: 12px;
    color: #ccc;
  }


  .footer-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 0;
  }

  .report-container .footer-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 36px;
    background: var(--magenta);
    color: #fff;
    font-size: 16.5px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 10px !important;
    text-decoration: none;
    border: 1.5px solid var(--magenta);
    transition: all 0.25s ease;
    cursor: pointer;
  }

  .footer-download:hover {
    background: var(--magenta-light);
    border-color: var(--magenta-light);
  }

  .footer-download svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
  }

  /* ─── RESPONSIVE — TABLET ─── */
  @media (max-width: 720px) {
    .report-body { padding: 36px 28px 24px; }
    .report-header { padding: 44px 28px 40px; }
    .report-container .header-profile-name { font-size: 32px; }
    .power-grid { grid-template-columns: 1fr; }
    .secrets-section { padding: 28px 0; }
  }

  /* ─── RESPONSIVE — MOBILE ─── */
  @media (max-width: 480px) {
    .report-header {
      padding: 32px 20px 32px;
    }

    .header-brand img { height: 30px; }

    .report-container .header-dedication {
      font-size: 10px;
      letter-spacing: 2px;
      margin-top: 14px;
      padding-top: 14px;
    }

    .header-emoji { font-size: 36px; margin-bottom: 16px; }
    .report-container .header-label { font-size: 9.5px; letter-spacing: 3px; }

    .report-container .header-profile-name {
      font-size: 26px;
      margin-bottom: 12px;
    }

    .report-container .header-tagline { font-size: 17px; }

    .report-body {
      padding: 28px 20px 20px;
    }

    .section { margin-bottom: 36px; }

    .report-container .section-title { font-size: 22px; }

    .report-container .section-text {
      font-size: 16px;
      line-height: 1.75;
      margin-top: 16px;
    }

    .secrets-section {
      padding: 24px 0;
      margin-bottom: 36px;
    }

    .report-container .secret-item {
      font-size: 16px;
      line-height: 1.7;
      margin-top: 16px;
      padding-left: 16px;
    }

    .power-grid {
      grid-template-columns: 1fr;
      gap: 14px;
      margin-bottom: 36px;
    }

    .power-card {
      padding: 24px 22px;
    }

    .report-container .power-card .card-text { font-size: 16px; }

    .advice-section { margin-bottom: 36px; }

    .advice-item {
      flex-direction: row;
      gap: 14px;
      padding: 18px 0;
    }

    .advice-icon {
      width: 40px;
      height: 40px;
      min-width: 40px;
      font-size: 18px;
      border-radius: 11px;
    }

    .report-container .advice-title { font-size: 16px; }
    .report-container .advice-text { font-size: 16px; }

    .disclaimer {
      padding: 20px 20px;
      flex-direction: row;
      gap: 12px;
    }

    .report-container .disclaimer-text { font-size: 16px; }

    .report-footer {
      padding: 28px 20px 36px;
    }

    .footer-brand img { height: 30px; }

    .footer-buttons {
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }

    .footer-download,
    .footer-cta {
      width: 100%;
      text-align: center;
      justify-content: center;
      padding: 14px 28px;
    }

    .footer-date { font-size: 11px; }
  }

  /* ─── PAGE NUMBERS (print only) ─── */
  .page-number {
    display: none;
  }

  /* ─── PRINT — 2 PAGES A4 ─── */
  /* IMPORTANT: @page INTERZIS — cauzează loop infinit în mPDF (2796+ pagini goale) */
  /* Marginile se setează DOAR în constructorul mPDF din venusiana-pdf-generator.php */
  @media print {
    body {
      background: #fff;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
    }

    .report-container {
      box-shadow: none;
      max-width: 100%;
    }

    .footer-buttons { display: none; }
    #qmpr-print-hint { display: none !important; }

    /* Header — readable, not cramped */
    .report-header {
      padding: 32px 36px 28px;
    }

    .header-brand { margin-bottom: 22px; }
    .header-brand img { height: 30px; }
    .header-emoji { font-size: 36px; margin-bottom: 16px; }
    .report-container .header-label { margin-bottom: 8px; font-size: 10px; }
    .report-container .header-profile-name { font-size: 34px; margin-bottom: 12px; }
    .header-divider { margin: 0 auto 14px; }
    .report-container .header-tagline { font-size: 15px; }

    /* Body — generous readable fonts */
    .report-body {
      padding: 28px 36px 16px;
    }

    .section { margin-bottom: 28px; }
    .report-container .section-text { margin-top: 14px; font-size: 15px; line-height: 1.7; }
    .report-container .section-text p + p { margin-top: 10px; }
    .report-container .section-title { font-size: 20px; }
    .report-container .section-title::after { margin-top: 6px; }

    /* Secrets — comfortable reading */
    .secrets-section {
      padding: 22px 0;
      margin-bottom: 0;
      border-bottom: none;
    }

    .report-container .secret-item { margin-top: 14px; font-size: 14.5px; line-height: 1.65; }

    /* FORCE PAGE 2 at power cards */
    .power-grid {
      page-break-before: always;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 28px;
      padding-top: 8px;
    }

    .power-card { padding: 22px 20px; }
    .power-card .card-emoji { font-size: 24px; margin-bottom: 10px; }
    .report-container .power-card .card-label { font-size: 11px; }
    .report-container .power-card .card-text { font-size: 14px; line-height: 1.65; }

    /* Advice — readable */
    .advice-section { margin-bottom: 28px; }
    .advice-item { padding: 16px 0; gap: 16px; }
    .advice-icon { width: 40px; height: 40px; font-size: 18px; border-radius: 11px; }
    .report-container .advice-title { font-size: 15px; margin-bottom: 4px; }
    .report-container .advice-text { font-size: 14px; line-height: 1.65; }

    /* Disclaimer */
    .disclaimer { padding: 18px 22px; margin-bottom: 24px; }
    .disclaimer-icon { font-size: 18px; }
    .report-container .disclaimer-text { font-size: 12.5px; line-height: 1.65; }

    /* Footer */
    .report-footer { padding: 20px 36px 28px; }
    .footer-brand img { height: 30px; }
    .footer-tagline { margin-bottom: 0; font-size: 12px; }
    .footer-date { margin-top: 10px; }

    /* Keep sections together */
    .advice-section { page-break-inside: avoid; }
    .disclaimer { page-break-inside: avoid; }
    .report-footer { page-break-inside: avoid; }

    /* Page numbers */
    .page-number {
      display: block;
      text-align: center;
      font-family: 'Cormorant Garamond', serif;
      font-style: italic;
      font-size: 11px;
      color: var(--text-muted);
      padding-top: 16px;
    }
  }
