// ==================================================
// Nuclear Fancy Pants Edition™ — NUCLEAR+++
// File: assets/css/overview.css
// Description: Overview page styles — hero, steps, stats, license modal
// Last Edited: 2026-03-27
// ==================================================

@import url('fonts.css');
@import url('tabs.css');

/* ── Scoped reset ─────────────────────────────────────────────── */
#amai-overview,
#amai-overview *,
#amai-license-modal,
#amai-license-modal * {
    box-sizing: border-box;
    font-family: 'DM Sans', -apple-system, sans-serif;
}

/* ── Tokens ───────────────────────────────────────────────────── */
#amai-overview {
    --clay:       #D97757;
    --clay-mid:   #C4623E;
    --clay-light: #F7EDE6;
    --clay-pale:  #FDF8F5;
    --ink:        #1C1917;
    --stone:      #78716C;
    --stone-lt:   #A8A29E;
    --white:      #FFFFFF;
    --border:     #E7DDD5;
    --green:      #166534;
    --green-bg:   #F0FDF4;
    --green-s:    #15803D;
    --green-bd:   #BBF7D0;
    --r-sm:       8px;
    --r:          14px;
    --r-lg:       18px;
    --sh-sm:      0 2px 8px rgba(28,25,23,0.07);
    --sh:         0 8px 28px rgba(28,25,23,0.11), 0 2px 8px rgba(28,25,23,0.05);
    max-width: 860px;
    margin: 0 auto;
    padding: 0 0 48px;
}

/* ── Page header ──────────────────────────────────────────────── */
#amai-ov-header {
    padding: 24px 0 0;
    margin-bottom: 16px;
    text-align: center;
    font-family: 'DM Sans', -apple-system, sans-serif;
}
#amai-ov-header h1,
#amai-ov-header .amai-ov-title {
    font-family: 'Nunito', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #D97757 !important;
    -webkit-text-fill-color: #D97757 !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    border: none !important;
    text-shadow: none !important;
    text-align: center !important;
}

#amai-ov-header p {
    font-size: 0.95rem !important;
    color: #78716C !important;
    margin: 0 0 20px !important;
    text-align: center !important;
    font-family: 'DM Sans', -apple-system, sans-serif !important;
}

/* ── Shared tab nav — rendered by templates/partials/tabs.php ─── */

/* ── Hero ─────────────────────────────────────────────────────── */
#amai-overview .am-ov-hero {
    background: #FFFFFF;
    border: 1.5px solid #E7DDD5;
    border-radius: var(--r-lg);
    padding: 32px 40px;
    text-align: left;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* Circle — bottom right only */
#amai-overview .am-ov-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    background: #F7EDE6;
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
}

#amai-overview .am-ov-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #D97757;
    margin-bottom: 12px;
    position: relative;
}
#amai-overview .am-ov-hero-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #1C1917;
    line-height: 1.25;
    margin-bottom: 28px;
    position: relative;
}
#amai-overview .am-ov-hero-desc {
    font-size: 14.5px;
    color: #78716C;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 0 28px;
    position: relative;
}
#amai-overview .am-ov-cta {
    display: inline-block;
    background: #D97757;
    color: white !important;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.18s, transform 0.1s;
    position: relative;
    max-width: 320px;
}
#amai-overview .am-ov-cta:hover  { background: #C4623E; }
#amai-overview .am-ov-cta:active { transform: scale(0.98); }

/* Green variant — used on active/paid hero states */
#amai-overview .am-ov-cta.am-ov-cta--green          { background: #15803D; }
#amai-overview .am-ov-cta.am-ov-cta--green:hover     { background: #166534; }

#amai-overview .am-ov-cta-sub {
    display: block;
    font-size: 12px;
    color: #A8A29E;
    margin-top: 10px;
    position: relative;
}
#amai-overview .am-ov-cta-sub a { color: #78716C; text-decoration: underline; text-decoration-style: dotted; }

/* Active hero — toned-down green, not screaming */
#amai-overview .am-ov-hero.is-active {
    background: #F6FEF9;
    border-color: #BBF7D0;
}
#amai-overview .am-ov-hero.is-active .am-ov-hero-title { color: #1C1917; }
#amai-overview .am-ov-hero.is-active .am-ov-eyebrow    { color: #15803D; }
#amai-overview .am-ov-hero.is-active .am-ov-hero-desc  { color: #78716C; }
#amai-overview .am-ov-hero.is-active::after            { background: #DCFCE7; opacity: 0.4; }

/* ── Steps ────────────────────────────────────────────────────── */
#amai-overview .am-ov-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
#amai-overview .am-ov-step {
    background: #FFFFFF;
    border: 1.5px solid #E7DDD5;
    border-radius: var(--r);
    padding: 20px 22px;
    transition: transform 0.18s, box-shadow 0.18s;
    display: flex;
    flex-direction: column;
}
#amai-overview .am-ov-step:not(.is-locked):hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-sm);
}

/* Done state — subtle, not competing with hero */
#amai-overview .am-ov-step.is-done {
    border-color: #BBF7D0;
    background: #F6FEF9;
}
#amai-overview .am-ov-step-num {
    width: 30px;
    height: 30px;
    background: #F7EDE6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #D97757;
    margin-bottom: 12px;
    flex-shrink: 0;
}
#amai-overview .am-ov-step.is-done .am-ov-step-num {
    background: #DCFCE7;
    color: #15803D;
}
#amai-overview .am-ov-step.is-locked .am-ov-step-num {
    background: #F1F0EE;
    color: #A8A29E;
}
#amai-overview .am-ov-step-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #1C1917;
    margin-bottom: 6px;
}
#amai-overview .am-ov-step.is-locked .am-ov-step-title,
#amai-overview .am-ov-step.is-locked .am-ov-step-desc {
    color: #A8A29E;
}
#amai-overview .am-ov-step-desc {
    font-size: 12.5px;
    color: #78716C;
    line-height: 1.6;
    margin-bottom: 0;
    flex: 1;
}
#amai-overview .am-ov-step-link {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    color: #D97757;
    text-decoration: none;
    transition: color 0.15s;
    margin-top: auto;
    padding-top: 14px;
}
#amai-overview .am-ov-step-link:hover { color: #C4623E; }
#amai-overview .am-ov-step.is-done .am-ov-step-link { color: #15803D; }

/* Lock badge — pinned to bottom like links */
#amai-overview .am-ov-step-lock-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #A8A29E;
    background: #F1F0EE;
    border: 1px solid #E7DDD5;
    border-radius: 100px;
    padding: 3px 10px;
    letter-spacing: 0.02em;
    margin-top: auto;
    align-self: flex-start;
}

/* ── Stats ────────────────────────────────────────────────────── */
#amai-overview .am-ov-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
#amai-overview .am-ov-stat {
    background: #FFFFFF;
    border: 1.5px solid #E7DDD5;
    border-radius: var(--r-sm);
    padding: 18px 16px;
    text-align: center;
}
#amai-overview .am-ov-stat-num {
    font-family: 'Nunito', sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    color: #D97757;
    line-height: 1;
    margin-bottom: 5px;
}
#amai-overview .am-ov-stat-label {
    font-size: 12px;
    color: #78716C;
    line-height: 1.4;
}

/* ── Deactivate ───────────────────────────────────────────────── */
#amai-overview .am-ov-deactivate-wrap {
    text-align: center;
    padding-top: 8px;
}
#amai-overview .am-ov-deactivate-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: #A8A29E;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: color 0.15s;
}
#amai-overview .am-ov-deactivate-btn:hover { color: #dc2626; }

/* ══════════════════════════════════════════════════════════════
   LICENSE ACTIVATION MODAL
══════════════════════════════════════════════════════════════ */
#amai-license-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28,25,23,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999990;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#amai-license-modal.show { display: flex !important; }

.am-lic-wrap {
    background: #FFFFFF;
    border-radius: 18px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 24px 80px rgba(28,25,23,0.18), 0 4px 20px rgba(28,25,23,0.1);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1);
    overflow: hidden;
}
#amai-license-modal.show .am-lic-wrap { transform: translateY(0) scale(1); }

.am-lic-header {
    padding: 22px 24px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.am-lic-eyebrow {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #D97757;
    margin-bottom: 4px;
}
.am-lic-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #1C1917;
    line-height: 1.3;
    margin: 0;
}
.am-lic-close {
    background: #F7EDE6;
    border: 1.5px solid #E7DDD5;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #78716C;
    flex-shrink: 0;
    margin-left: 14px;
    font-size: 15px;
    line-height: 1;
    transition: background 0.18s, color 0.18s;
}
.am-lic-close:hover { color: #D97757; }

.am-lic-body { padding: 16px 24px 4px; }

/* Error message */
.am-lic-error {
    display: none;
    background: #FEF2F2;
    border-left: 3px solid #DC2626;
    color: #991B1B;
    font-size: 13px;
    padding: 10px 13px;
    border-radius: 6px;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Privacy notice — with clay left border */
.am-lic-privacy {
    background: #FDF8F5;
    border-left: 3px solid #D97757;
    border-radius: 0 6px 6px 0;
    padding: 11px 13px;
    font-size: 12.5px;
    color: #78716C;
    line-height: 1.6;
    margin-bottom: 16px;
}

.am-lic-field { margin-bottom: 13px; }
.am-lic-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #1C1917;
    margin-bottom: 5px;
}
.am-lic-input {
    width: 100%;
    background: #F9FAFB;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 9px 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    color: #1C1917;
    outline: none;
    transition: border-color 0.18s;
    height: 38px;
}
.am-lic-input:focus { border-color: #D97757; box-shadow: none; }
.am-lic-input--error { border-color: #DC2626; background: #FEF2F2; }

/* Consent — single line, no wrap issues */
.am-lic-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12.5px;
    color: #78716C;
    line-height: 1.5;
    margin-bottom: 4px;
    padding-bottom: 2px;
}
.am-lic-consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #D97757;
    width: 14px;
    height: 14px;
}
.am-lic-consent label { cursor: pointer; }

.am-lic-footer {
    padding: 14px 24px 20px;
    border-top: 1px solid #E7DDD5;
    background: #F9FAFB;
    display: flex;
    gap: 10px;
    align-items: center;
}
.am-lic-btn-cancel {
    background: transparent;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: #78716C;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s;
    white-space: nowrap;
}
.am-lic-btn-cancel:hover { border-color: #D97757; color: #D97757; }
.am-lic-btn-submit {
    flex: 1;
    background: #D97757;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 13.5px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background 0.18s;
}
.am-lic-btn-submit:hover { background: #C4623E; }
.am-lic-btn-submit--loading,
.am-lic-btn-submit--loading:hover {
    background: #C4623E;
    opacity: 0.85;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.am-lic-spinner {
    animation: amLicSpin 0.9s linear infinite;
    flex-shrink: 0;
}

@keyframes amLicSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---- Utility classes ---- */
.am-btn-reset {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.am-ov-deactivate-form {
    display: inline;
}

.am-required {
    color: #dc2626;
}

/* ---- Hide WP footer on AMAI pages ---- */
#wpfooter,
#footer-thankyou {
    display: none !important;
}

/* ---- Dashboard wrap ---- */
#automarketer-ai-dashboard {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ---- Email provider nudge ---- */
.am-ov-nudge {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1.5px solid #E7DDD5;
    border-left: 4px solid #D97757;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(217, 119, 87, 0.07);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.am-ov-nudge-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #FDF3EE;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-ov-nudge-icon svg {
    width: 20px;
    height: 20px;
    color: #D97757;
}

.am-ov-nudge-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.am-ov-nudge-body strong {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1C1917;
    line-height: 1.3;
}

.am-ov-nudge-body span {
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    color: #78716C;
    line-height: 1.5;
}

.am-ov-nudge-cta {
    flex-shrink: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    background: #D97757;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s;
    white-space: nowrap;
}

.am-ov-nudge-cta:hover {
    background: #C4633E;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 600px) {
    .am-ov-nudge {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .am-ov-nudge-cta {
        align-self: stretch;
        text-align: center;
    }
}