﻿/* ===========================
   NASP Ad Card – Themeable
   (keeps your sizes exactly)
   =========================== */

:root {
    /* Your original tokens (kept) */
    --nasp-blue: #004b8d;
    --nasp-blue-2: #0a6acb;
    --nasp-sky: #7ec3ff;
    --paper: #ffffff;
    --radius-lg: 18px;
    /* Theme tokens (new) with sensible defaults = blue theme */
    --bg-start: var(--nasp-blue);
    --bg-end: var(--nasp-blue-2);
    --overlay: rgba(0,0,0,0.15);
    --text-main: #ffffff; /* headings */
    --text-secondary: #f9fbff; /* body/disclaimer */

    --cta-bg: #ffffff;
    --cta-text: var(--nasp-blue); /* CTA text color changes per theme */

    --focus-ring: #ffbf47;
}

/* ===========================
   Base Card (unchanged sizes)
   =========================== */

/* Vertical Card Container */
.nasp-ad-vertical {
    max-width: 100%;
    margin: 0 auto 30px auto;
    padding: 20px 15px;
    color: var(--text-main);
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
    font-family: Arial, Helvetica, sans-serif;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    /* contrast overlay + theme gradient */
    position: relative;
    background: linear-gradient(0deg, var(--overlay), var(--overlay)), linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 70%);
}

    .nasp-ad-vertical:hover {
        transform: translateY(-4px);
        box-shadow: 0 26px 55px rgba(0, 0, 0, 0.35);
    }

/* Icon on top (optional) */
.nasp-ad__icon-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #c6e6ff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

    .nasp-ad__icon-top .material-symbols-outlined {
        font-size: 40px;
        line-height: 1;
    }
/* Hide icon if not needed */
.nasp-ad--no-icon .nasp-ad__icon-top {
    display: none;
    margin: 0;
}

/* Title Styling (font-size unchanged) */
.nasp-ad__title {
    font-size: 2rem;
    margin: 10px 0 14px;
    color: var(--text-main);
    line-height: 1.3;
}

/* Copy Text (font-size unchanged; using theme secondary color) */
.nasp-ad__copy {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Disclaimer (font-size unchanged; keep italic) */
.nasp-ad__disclaimer {
    display: block;
    margin-top: 12px;
    font-size: 1.25rem;
    color: var(--text-secondary);
    opacity: 1; /* keep readable */
    line-height: 1.3;
    font-style: italic; /* as requested */
}

/* CTA Button (font-size unchanged) */
.nasp-ad__cta {
    display: inline-block;
    padding: 15px;
    background: var(--cta-bg);
    color: var(--cta-text) !important;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: background-color 0.2s ease, transform 0.2s ease;
    /* Comfortable touch target
    text-transform: uppercase; */
    min-width: 44px;
}

    .nasp-ad__cta:hover {
        background-color: #f3f8ff;
        transform: translateY(-2px);
    }

    /* Keyboard focus visibility */
    .nasp-ad__cta:focus-visible,
    .nasp-ad-vertical a:focus-visible {
        outline: 3px solid var(--focus-ring);
        outline-offset: 3px;
        border-radius: 8px;
    }

/* Optional: emphasize the card when any child is focused */
.nasp-ad-vertical:focus-within {
    box-shadow: 0 0 0 3px var(--focus-ring), 0 26px 55px rgba(0,0,0,0.35);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .nasp-ad-vertical,
    .nasp-ad__cta {
        transition: none !important;
        transform: none !important;
    }
}

/* Responsive (font-sizes unchanged from your original) */
@media (max-width: 520px) {
    .nasp-ad-vertical {
        padding: 28px 20px;
    }

    .nasp-ad__title {
        font-size: 1.55rem;
    }

    .nasp-ad__copy {
        font-size: 1rem;
    }
}

/* ===========================
   Theme Variants (pick one)
   =========================== */

/* 1) NASP Blue (default brand) */
.nasp-theme-blue {
    --bg-start: #004b8d;
    --bg-end: #0a6acb;
    --overlay: rgba(0,0,0,0.15);
    --text-main: #ffffff;
    --text-secondary: #f9fbff;
    --cta-bg: #ffffff;
    --cta-text: #004b8d;
}

/* 2) Calm Green */
.nasp-theme-green {
    --bg-start: #0b5e30;
    --bg-end: #169c53;
    --overlay: rgba(0,0,0,0.15);
    --text-main: #ffffff;
    --text-secondary: #f1fff6;
    --cta-bg: #ffffff;
    --cta-text: #0b5e30;
}

/* 3) Bold Purple */
.nasp-theme-purple {
    --bg-start: #4b0082;
    --bg-end: #6a0dad;
    --overlay: rgba(0,0,0,0.15);
    --text-main: #ffffff;
    --text-secondary: #f8f3ff;
    --cta-bg: #ffffff;
    --cta-text: #4b0082;
}

/* 4) Warm Amber (overlay stronger for contrast) */
.nasp-theme-amber {
    --bg-start: #b45309;
    --bg-end: #f97316;
    --overlay: rgba(0,0,0,0.25); /* ensures white text passes */
    --text-main: #ffffff;
    --text-secondary: #fff9f3;
    --cta-bg: #ffffff;
    --cta-text: #b45309;
}

/* 5) Modern Dark */
.nasp-theme-dark {
    --bg-start: #111827;
    --bg-end: #374151;
    --overlay: rgba(0,0,0,0.20);
    --text-main: #ffffff;
    --text-secondary: #e5e7eb;
    --cta-bg: #f9fafb;
    --cta-text: #111827;
}
