/* Locked analytics dashboard preview on pharmacy profile pages, shown to
   anonymous visitors still within their free-view allowance and to
   logged-in non-paying accounts. Scoped to .pd-teaser so it never affects
   any other page. See templates/partials/anonymous-profile-teaser.php. */

.pd-teaser {
    margin-bottom: 24px;
}

.pd-teaser-intro {
    margin-bottom: 14px;
}

.pd-teaser-heading {
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.3;
}

.pd-teaser-subtext {
    color: #64748b;
    font-size: 0.92rem;
    max-width: 760px;
    margin-bottom: 0;
}

/* --- "What's included" strip - icons + short labels, not cards --- */

.pd-teaser-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 16px;
}

.pd-teaser-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #475569;
}

.pd-teaser-chip .material-symbols-outlined {
    font-size: 17px;
    color: #0f79f3;
}

.pd-teaser-chip-pro {
    font-size: 0.68rem;
    font-weight: 600;
    color: #796df6;
    margin-left: 1px;
}

/* --- The dashboard card itself - styled as a literal continuation of the
   real "Dispensing Activity, Benchmarks & Insights" card below it --- */

.pd-teaser-dashboard {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.pd-teaser-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.pd-teaser-example-badge {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 3px 10px;
    flex-shrink: 0;
}

.pd-teaser-chart-panel {
    background: #f8fafc;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    padding: 14px 16px 6px;
}

.pd-teaser-chart-panel h5 {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 2px;
}

.pd-teaser-benchmark-panel {
    background: #f8fafc;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    padding: 14px 16px;
}

.pd-teaser-benchmark-panel h5 {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

.pd-teaser-benchmark-row {
    margin-bottom: 12px;
}

.pd-teaser-benchmark-row:last-child {
    margin-bottom: 0;
}

.pd-teaser-benchmark-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 4px;
}

.pd-teaser-benchmark-label strong {
    color: #334155;
    font-weight: 600;
}

.pd-teaser-benchmark-row .progress {
    height: 6px;
    background-color: #e7eef8;
}

/* --- Progressive blur + navy-tint overlay over the lower portion -
   a single element: mask-image fades the backdrop-filter + background-tint
   in together, so both the blur strength and the navy tint ramp up at the
   same rate towards the bottom. --- */

.pd-teaser-blur-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: linear-gradient(to bottom, rgba(27, 35, 45, 0) 0%, rgba(27, 35, 45, 0.5) 72%, rgba(20, 27, 36, 0.86) 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 38%, black 62%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 38%, black 62%, black 100%);
}

.pd-teaser-cta-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    padding: 20px 20px 24px;
    pointer-events: none;
}

.pd-teaser-cta {
    pointer-events: auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 18px 38px -14px rgba(15, 23, 42, 0.35);
    padding: 20px 28px;
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.pd-teaser-cta-lock {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0f79f3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.pd-teaser-cta-lock .material-symbols-outlined {
    font-size: 19px;
    color: #ffffff;
}

.pd-teaser-cta-heading {
    font-size: 1.02rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 3px;
}

.pd-teaser-cta-copy {
    font-size: 0.84rem;
    color: #64748b;
    margin-bottom: 14px;
}

.pd-teaser-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pd-teaser-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pd-teaser-cta-secondary {
    font-size: 0.82rem;
    color: #64748b;
    text-decoration: none;
}

.pd-teaser-cta-secondary:hover {
    color: #0f79f3;
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .pd-teaser-blur-overlay {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 30%, black 55%, black 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, transparent 30%, black 55%, black 100%);
    }
}

@media (max-width: 575.98px) {
    .pd-teaser-chips {
        gap: 12px 16px;
    }

    .pd-teaser-cta {
        padding: 16px 18px;
    }

    .pd-teaser-cta-wrap {
        padding: 14px 12px 18px;
    }
}

/* --- Dark mode --- */

[data-theme="dark"] .pd-teaser-heading {
    color: #f1f5f9;
}

[data-theme="dark"] .pd-teaser-subtext,
[data-theme="dark"] .pd-teaser-chip {
    color: #94a3b8;
}

[data-theme="dark"] .pd-teaser-example-badge {
    color: #94a3b8;
    background: #1b232d;
    border-color: #ffffff17;
}

[data-theme="dark"] .pd-teaser-chart-panel,
[data-theme="dark"] .pd-teaser-benchmark-panel {
    background: #141b24;
    border-color: #ffffff17;
}

[data-theme="dark"] .pd-teaser-chart-panel h5,
[data-theme="dark"] .pd-teaser-benchmark-panel h5,
[data-theme="dark"] .pd-teaser-benchmark-label strong {
    color: #e2e8f0;
}

[data-theme="dark"] .pd-teaser-benchmark-row .progress {
    background-color: #1f2937;
}

[data-theme="dark"] .pd-teaser-cta {
    background: #1b232d;
    box-shadow: 0 18px 38px -14px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .pd-teaser-cta-heading {
    color: #f1f5f9;
}

[data-theme="dark"] .pd-teaser-cta-secondary {
    color: #94a3b8;
}

/* ========================================================================
   Expanded premium showcase - sits above the locked-dashboard preview
   above and reuses home.css's .home-ai / .home-explorer section classes
   wholesale for visual consistency with the homepage; only the
   section-specific tweaks below (tint, image framing, grid order, intro
   and final CTA) live here. See templates/partials/anonymous-profile-teaser.php.
   ========================================================================= */

.pd-showcase {
    margin-bottom: 24px;
}

.pd-showcase-heading {
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.pd-showcase-subtext {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.98rem;
    max-width: 760px;
    margin-bottom: 18px;
}

.pd-showcase-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 0;
}

.pd-showcase-values li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.pd-showcase-values .material-symbols-outlined {
    font-size: 18px;
    color: #8fb8ff;
}

.pd-showcase-intro-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
}

.pd-showcase-intro-signin {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.pd-showcase-intro-signin:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* --- Performance showcase: reuses .home-ai's grid/text/frame classes under
   its own pale blue/mint tint (declared after home.css so it wins on equal
   specificity) instead of the AI section's lavender background. --- */

.pd-showcase-performance {
    background: linear-gradient(135deg, #eefaf4 0%, #eef6fb 100%);
}

.pd-showcase-badge-blue {
    background: rgba(15, 121, 243, 0.12);
    color: #0f79f3;
}

.pd-showcase-performance .home-ai-showcase {
    max-width: 520px;
}

.pd-showcase-frame-body-wide {
    aspect-ratio: 16 / 10;
}

/* --- AI Reports showcase: screenshot on the left, copy on the right -
   mirrors the performance showcase above it for alternating visual rhythm. --- */

.pd-showcase-grid-reverse {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

@media (max-width: 991.98px) {
    .pd-showcase-grid-reverse {
        grid-template-columns: 1fr;
    }
}

.pd-showcase-chip-pro {
    font-size: 0.68rem;
    font-weight: 700;
    margin-left: 2px;
}

/* --- "Ready to explore..." lead-in to the retained locked preview --- */

.pd-showcase-ready {
    text-align: center;
    margin-bottom: 18px;
}

.pd-showcase-ready-heading {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.pd-showcase-ready-subtext {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* --- Final conversion CTA --- */

.pd-showcase-cta {
    position: relative;
    overflow: hidden;
    padding: 40px 36px;
    text-align: center;
    background: linear-gradient(135deg, #0f79f3 0%, #796df6 100%);
}

.pd-showcase-cta-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.pd-showcase-cta-shapes::before,
.pd-showcase-cta-shapes::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.pd-showcase-cta-shapes::before {
    width: 280px;
    height: 280px;
    top: -140px;
    right: -60px;
}

.pd-showcase-cta-shapes::after {
    width: 200px;
    height: 200px;
    bottom: -110px;
    left: -40px;
    background: rgba(255, 255, 255, 0.06);
}

.pd-showcase-cta-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
}

.pd-showcase-cta-heading {
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.pd-showcase-cta-subtext {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.pd-showcase-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pd-showcase-cta-primary {
    padding: 10px 28px;
}

.pd-showcase-cta-secondary {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.pd-showcase-cta-secondary:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .pd-showcase-cta {
        padding: 32px 22px;
    }
}

/* --- Dark mode --- */

[data-theme="dark"] .pd-showcase-ready-heading {
    color: #f1f5f9;
}

[data-theme="dark"] .pd-showcase-ready-subtext {
    color: #94a3b8;
}
