/* ═══════════════════════════════════════════════════
   BEAZATWORK — MASTER STYLESHEET
   ═══════════════════════════════════════════════════ */
:root {
    --bg:           #F5F6F8;
    --white:        #FFFFFF;
    --teal:         #4a7c78;
    --teal-hover:   #3a6460;
    --teal-light:   #EAF2F1;
    --charcoal:     #1A1A1A;
    --slate:        #6B7280;
    --gray:         #9CA3AF;
    --border:       #DDE3EC;
    --orange:       #E98A3A;
    --orange-hover: #C97420;
    --radius:       8px;
    --radius-md:    12px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--charcoal);
}

/* ─── Analyzer ───────────────────────────────────── */
.job-analyzer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.ja-headline {
    width: 100%;
    max-width: 820px;
    font-size: 22px;
    color: var(--charcoal);
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.7;
    font-weight: 600;
}
textarea.job-analyzer-textarea {
    width: 100%;
    max-width: 820px;
    min-height: 260px;
    padding: 20px;
    box-sizing: border-box;
    resize: vertical;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--charcoal);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
textarea.job-analyzer-textarea:focus { border-color: var(--teal); }
textarea.job-analyzer-textarea::placeholder { color: var(--gray); }

.job-analyzer-button {
    margin: 20px 0 30px;
    padding: 11px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    background: var(--orange);
    color: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
}
.job-analyzer-button:hover { background: var(--orange-hover); }

.job-analyzer-result {
    width: 100%;
    max-width: 820px;
    padding: 26px 28px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-sizing: border-box;
    margin-bottom: 40px;
}
.score-meter {
    width: 100%;
    height: 12px;
    background: var(--border);
    border-radius: var(--radius);
    margin: 10px 0 14px;
    overflow: hidden;
}
.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #E53935, #FB8C00, #FDD835, #4a7c78);
    border-radius: var(--radius);
    transition: width 0.6s ease;
}
.label-strong   { color: var(--teal);   font-weight: bold; }
.label-moderate { color: #D9A441;       font-weight: bold; }
.label-weak     { color: #E53935;       font-weight: bold; }
.issues-list { margin: 10px 0 0; padding-left: 20px; }
.issues-list li { margin-bottom: 6px; color: var(--charcoal); font-size: 15px; }

.ja-error {
    width: 100%;
    max-width: 820px;
    background: #FFF3F3;
    border: 1.5px solid #F5C6C6;
    color: #C0392B;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 12px;
}
.ja-cta-teaser {
    margin: 16px 0 8px;
    font-size: 15px;
    color: var(--slate);
    text-align: center;
    font-weight: bold;
}
.ja-btn-upgrade {
    display: block;
    margin: 0 auto 8px;
    background: var(--orange);
    color: var(--white);
    font-weight: bold;
}
.ja-btn-upgrade:hover { background: var(--orange-hover); }
.ja-reset-btn { margin-top: 16px; }

/* ─── Popup ──────────────────────────────────────── */
.ja-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44,47,58,0.65);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.ja-popup-box {
    background: var(--white);
    border-radius: 14px;
    padding: 40px 36px 32px;
    max-width: 680px;
    width: 100%;
    position: relative;
    box-shadow: 0 12px 48px rgba(44,47,58,0.15);
    box-sizing: border-box;
}
.ja-popup-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none; border: none;
    font-size: 26px; color: var(--gray);
    cursor: pointer; line-height: 1;
    transition: color 0.2s;
}
.ja-popup-close:hover { color: var(--charcoal); }
.ja-popup-title {
    font-size: 22px; font-weight: 700;
    color: var(--charcoal);
    margin: 0 0 8px; text-align: center;
}
.ja-popup-subtitle {
    font-size: 15px; color: var(--slate);
    text-align: center; margin: 0 0 28px;
    line-height: 1.6;
}
.ja-popup-toggle {
    display: flex; justify-content: center;
    gap: 8px; margin: 16px 0 24px;
}
.ja-toggle-btn {
    padding: 10px 28px;
    border: 2px solid var(--teal);
    background: var(--white);
    color: var(--teal);
    border-radius: var(--radius);
    font-weight: 700; cursor: pointer;
    font-size: 1em;
    transition: background 0.2s, color 0.2s;
}
.ja-toggle-active { background: var(--teal); color: var(--white); }

.ja-popup-plans {
    display: flex; gap: 20px;
    justify-content: center; flex-wrap: wrap;
}
.ja-plan-card {
    flex: 1; min-width: 220px; max-width: 280px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px 20px;
    box-sizing: border-box;
    position: relative; text-align: center;
    background: var(--white);
    transition: box-shadow 0.2s;
}
.ja-plan-card:hover { box-shadow: 0 4px 20px rgba(74,124,120,0.12); }
.ja-plan-featured {
    border-color: var(--teal);
    box-shadow: 0 4px 18px rgba(74,124,120,0.15);
}
.ja-plan-badge {
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--teal); color: var(--white);
    font-size: 11px; font-weight: 700;
    padding: 3px 12px; border-radius: 20px;
    white-space: nowrap;
}
.ja-plan-name { font-size: 17px; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; }
.ja-plan-price { font-size: 26px; font-weight: 800; color: var(--teal); margin-bottom: 14px; }
.ja-plan-price span { font-size: 14px; font-weight: 500; color: var(--gray); }
.ja-plan-features { list-style: none; padding: 0; margin: 0 0 14px; font-size: 14px; color: var(--charcoal); text-align: left; }
.ja-plan-features li { padding: 4px 0; border-bottom: 1px solid var(--border); }
.ja-plan-features li:last-child { border-bottom: none; }
.ja-plan-features .ja-muted { color: var(--gray); }
.ja-plan-note { font-size: 12px; color: var(--gray); margin-bottom: 16px; }
.ja-plan-btn {
    width: 100%; padding: 11px 0;
    font-size: 14px; font-weight: 600;
    border: none; border-radius: var(--radius);
    cursor: pointer; transition: background 0.2s;
}
.ja-btn-primary { background: var(--teal); color: var(--white); }
.ja-btn-primary:hover { background: var(--teal-hover); }
.ja-btn-secondary { background: var(--bg); color: var(--charcoal); border: 1.5px solid var(--border); }
.ja-btn-secondary:hover { background: var(--border); }

.ja-popup-signin { text-align: center; font-size: 13px; color: var(--slate); margin: 20px 0 0; }
.ja-popup-signin a { color: var(--teal); text-decoration: none; font-weight: 600; }
.ja-popup-signin a:hover { text-decoration: underline; }

/* ─── Pricing pages ──────────────────────────────── */
.ja-page {
    max-width: 800px; margin: 0 auto;
    padding: 40px 20px; font-family: inherit;
    text-align: center; color: var(--charcoal);
}
.ja-page-title { font-size: 2em; font-weight: 700; color: var(--charcoal); margin: 0 0 10px; }
.ja-page-subtitle { color: var(--slate); margin: 0 0 40px; font-size: 1em; line-height: 1.6; }

.ja-pricing-grid {
    display: flex; gap: 24px;
    justify-content: center; flex-wrap: wrap;
    margin-bottom: 32px;
}
.ja-pricing-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 28px; width: 260px;
    text-align: left; background: var(--white);
    box-sizing: border-box; position: relative;
    transition: box-shadow 0.2s;
}
.ja-pricing-card:hover { box-shadow: 0 4px 20px rgba(74,124,120,0.1); }
.ja-pricing-card--featured {
    border-color: var(--teal);
    box-shadow: 0 4px 18px rgba(74,124,120,0.15);
}
.ja-pricing-badge {
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--teal); color: var(--white);
    font-size: 11px; font-weight: 700;
    padding: 3px 14px; border-radius: 20px;
    white-space: nowrap;
}
.ja-card-name { font-size: 1.1em; font-weight: 700; color: var(--charcoal); margin: 0 0 8px; }
.ja-card-price { font-size: 2.4em; font-weight: 800; color: var(--teal); margin: 0 0 4px; line-height: 1.1; }
.ja-card-price span { font-size: 0.4em; font-weight: 500; color: var(--gray); }
.ja-card-price-note { color: var(--slate); font-size: 0.88em; margin: 0 0 24px; }
.ja-card-features { list-style: none; padding: 0; margin: 0 0 28px; }
.ja-card-features li { padding: 6px 0; border-bottom: 1px solid var(--border); color: var(--charcoal); font-size: 0.95em; }
.ja-card-features li:last-child { border-bottom: none; }
.ja-card-features .ja-muted { color: var(--gray); }
.ja-card-btn {
    display: block; text-align: center;
    padding: 12px; border-radius: var(--radius);
    font-weight: 700; text-decoration: none;
    font-size: 0.95em; cursor: pointer;
    border: none; width: 100%;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
}
.ja-card-btn--primary { background: var(--teal); color: var(--white); }
.ja-card-btn--primary:hover { background: var(--teal-hover); color: var(--white); }
.ja-card-btn--secondary { background: var(--bg); color: var(--charcoal); border: 1.5px solid var(--border); }
.ja-card-btn--secondary:hover { background: var(--border); }

.ja-page-footnote { color: var(--gray); font-size: 0.85em; margin: 8px 0 0; }
.ja-page-crosslink { color: var(--slate); font-size: 0.9em; margin: 24px 0 0; }
.ja-page-crosslink a { color: var(--teal); font-weight: 600; text-decoration: none; }
.ja-page-crosslink a:hover { text-decoration: underline; }

/* ─── Dashboard ──────────────────────────────────── */
.ja-dash-page { max-width: 700px; margin: 0 auto; padding: 40px 20px; font-family: inherit; color: var(--charcoal); }
.ja-dash-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 28px; margin-bottom: 24px; }
.ja-dash-card h2 { font-size: 1.1em; font-weight: 700; color: var(--teal); margin: 0 0 16px; }
.ja-dash-card p { color: var(--slate); font-size: 0.9em; margin: 0 0 16px; }
.ja-dash-label { margin: 0 0 8px; color: var(--charcoal); font-size: 0.95em; }
.ja-dash-label strong { color: var(--charcoal); }
.ja-dash-btn {
    display: inline-block; padding: 11px 24px;
    border-radius: var(--radius); font-weight: 700;
    text-decoration: none; font-size: 0.95em;
    transition: background 0.2s;
    margin-right: 12px; margin-bottom: 8px;
    border: none; cursor: pointer;
}
.ja-dash-btn--primary { background: var(--teal); color: var(--white); }
.ja-dash-btn--primary:hover { background: var(--teal-hover); color: var(--white); }
.ja-dash-btn--secondary { background: var(--white); color: var(--charcoal); border: 1.5px solid var(--border); }
.ja-dash-btn--secondary:hover { background: var(--border); }
.ja-dash-signout { display: block; text-align: center; margin-top: 32px; color: var(--gray); font-size: 0.9em; text-decoration: underline; cursor: pointer; background: none; border: none; }
.ja-dash-signout:hover { color: var(--slate); }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 620px) {
    .ja-pricing-grid { flex-direction: column; align-items: center; }
    .ja-pricing-card { width: 100%; max-width: 340px; }
    .ja-popup-box { padding: 30px 18px 24px; }
    .ja-popup-plans { flex-direction: column; align-items: center; }
    .ja-plan-card { max-width: 100%; min-width: unset; width: 100%; }
}
/* ─── Global nav link colour override ───────────────────────────── */
a,
.nav-links a,
.wp-block-navigation a,
.wp-block-navigation-item a,
header a,
nav a {
    color: var(--teal) !important;
    text-decoration: none;
}
a:hover,
.wp-block-navigation a:hover,
nav a:hover {
    color: var(--teal-hover) !important;
    text-decoration: underline;
}
/* ─── Remove page title whitespace on Template page ─ */
.page-id-1504 .entry-title,
.page-id-1504 .page-header,
.page-id-1504 .wp-block-post-title {
    display: none !important;
}
.jd-preview-head {
    display: none;
}
.jd-preview.open .jd-preview-head {
    display: block;
}

/* ─── Fix invisible button text on teal backgrounds ─ */
.ja-btn-primary,
.ja-btn-primary:hover,
.ja-card-btn--primary,
.ja-card-btn--primary:hover,
.ja-dash-btn--primary,
.ja-dash-btn--primary:hover,
.ja-plan-btn.ja-btn-primary,
.ja-toggle-active,
button.ja-btn-primary {
    color: #ffffff !important;
}

.ja-btn-secondary,
.ja-card-btn--secondary,
.ja-dash-btn--secondary {
    color: var(--charcoal) !important;
}

/* Fix contact us + any white button on teal background */
a.ja-card-btn--primary,
a.ja-dash-btn--primary,
a.ja-plan-btn {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Fix compliance guide contact button */
a[style*="background:#4a7c78"],
a[style*="background: #4a7c78"] {
    color: #ffffff !important;
}

.ja-page-crosslink a {
    color: #E98A3A;
    font-weight: 600;
}
.ja-page-crosslink a:hover {
    color: #C97420;
}

/* ─── Clerk modal z-index fix ───────────────────── */
.cl-modalBackdrop,
.cl-modal,
.cl-rootBox,
[data-clerk-modal],
#clerk-components {
    z-index: 999999 !important;
}

/* ─── Print styles ───────────────────────────────── */
@media print {
    header,
    .site-header,
    .wp-block-navigation,
    nav,
    #masthead,
    .elementor-location-header {
        display: none !important;
    }

    body {
        background: #ffffff !important;
    }

    .job-analyzer-container,
    .ja-page {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
}