/* Ireland Gigs Pricing Styles — dark theme, matching the 2026 homepage.

   Colours come from the tokens declared on :root in home.css (--ig-green,
   --ig-panel, --ig-ink, --ig-muted, --ig-line). home.css is loaded site-wide
   from App.razor's <head>, so they resolve here. Literal fallbacks are given on
   each var() so the page still reads correctly if that ever stops being true. */

.pricing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    min-height: 100vh;
    color: var(--ig-ink, #f8fafc);
    background:
        radial-gradient(circle at 78% 12%, rgba(124, 58, 237, .18), transparent 38%),
        radial-gradient(circle at 10% 70%, rgba(50, 213, 131, .10), transparent 34%),
        #070b12;
    /* The container is capped at 1400px but the page behind it is #111, which
       would show as a lighter band down each side on a wide monitor. These two
       lines bleed the dark background out to the viewport edges without needing
       an extra wrapper element in the markup. */
    box-shadow: 0 0 0 100vmax #070b12;
    clip-path: inset(0 -100vmax);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pricing-header h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--ig-muted, #aab5c4);
    font-size: 1.15rem;
    font-weight: 400;
}

.subtitle strong {
    color: var(--ig-green, #32d583);
    font-weight: 700;
}

/* ---------- Artists / Venues toggle ---------- */

.toggle-container {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-bottom: 3rem;
}

.toggle-btn {
    min-width: 150px;
    padding: .7rem 1.9rem !important;
    font-size: 1rem !important;
    font-weight: 650 !important;
    border-radius: 999px !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease !important;
}

/* #d7dee8 rather than the muted token: the inactive tab is a real control people
   need to read and click, and --ig-muted only reached 2.1:1 against the panel. */
.toggle-btn:not(.active) {
    background: rgba(255, 255, 255, .05) !important;
    border: 1px solid var(--ig-line, rgba(255,255,255,.1)) !important;
    color: #d7dee8 !important;
}

.toggle-btn:not(.active):hover {
    background: rgba(255, 255, 255, .09) !important;
    color: #fff !important;
}

/* Solid green with dark text — same treatment as the "Browse artists" button on
   the homepage, so the primary control looks the same across the site. */
.toggle-btn.active {
    background: var(--ig-green, #32d583) !important;
    border: 1px solid var(--ig-green, #32d583) !important;
    color: #05130c !important;
    box-shadow: 0 6px 22px rgba(50, 213, 131, .25) !important;
}

/* ---------- Cards ---------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.pricing-card {
    position: relative;
    /* Top padding leaves room for the badge, which is absolutely positioned and
       would otherwise sit on top of the plan name. */
    padding: 4.25rem 2rem 2.5rem !important;
    border-radius: 20px !important;
    background: var(--ig-panel, #101722) !important;
    color: var(--ig-ink, #f8fafc) !important;
    border: 1px solid var(--ig-line, rgba(255,255,255,.1)) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45) !important;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(50, 213, 131, .45) !important;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .6) !important;
}

/* On a dark card a coloured border reads as the highlight; the old white-card
   design used a heavy 3px purple rule, which is far too loud here. */
.pricing-card.featured {
    border: 1px solid rgba(50, 213, 131, .5) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(50, 213, 131, .12) !important;
}

/* Centred pill at the top of the card rather than a tab bleeding off the right
   edge. The old placement collided with the plan name — the badge text is wide
   enough to reach back across a 520px card. */
.popular-badge,
.savings-badge {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: .5rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    gap: .4rem;
    color: #05130c;
    background: linear-gradient(135deg, var(--ig-green, #32d583), #159a62);
    box-shadow: 0 6px 20px rgba(50, 213, 131, .3);
}

.popular-badge i,
.savings-badge i {
    color: #05130c;
}

.plan-header {
    margin-bottom: 1.75rem;
}

.plan-name {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ig-green, #32d583);
    margin-bottom: .5rem;
}

.plan-description {
    color: var(--ig-muted, #aab5c4);
    font-size: 1rem;
}

.price-section {
    text-align: center;
    margin-bottom: 1.75rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--ig-line, rgba(255,255,255,.1));
    border-bottom: 1px solid var(--ig-line, rgba(255,255,255,.1));
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: #fff;
    line-height: 1;
}

.price span {
    font-size: 1.2rem;
    color: var(--ig-muted, #aab5c4);
    font-weight: 400;
    letter-spacing: 0;
}

.plan-limit {
    color: var(--ig-green, #32d583);
    font-weight: 600;
    font-size: 1.05rem;
    margin-top: .6rem;
}

/* ---------- Feature list ---------- */

.features-list {
    margin: 1.75rem 0 0;
    min-height: 300px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 0;
    color: #d7dee8;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

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

.feature-item.highlight {
    background: linear-gradient(90deg, rgba(50, 213, 131, .12), transparent);
    padding: .75rem;
    border-radius: 10px;
    border-bottom: none;
    color: #fff;
    font-weight: 600;
}

.check-icon {
    color: var(--ig-green, #32d583);
    font-size: 1.3rem;
    flex: 0 0 auto;
}

.feature-item i.rzi-lock {
    color: var(--ig-orange, #ff934f);
    font-size: 1.3rem;
    flex: 0 0 auto;
}

/* ---------- CTA ---------- */

.cta-button {
    width: 100%;
    padding: 1rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    margin-top: 1.5rem;
    background: var(--ig-green, #32d583) !important;
    border: 0 !important;
    color: #05130c !important;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}

.cta-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 30px rgba(50, 213, 131, .3) !important;
}

/* These buttons are deliberately disabled — venue subscriptions are bought in
   the app, not on the web. Radzen's disabled state is opacity .2, which was
   still readable on the old white card but disappears completely on a dark one.
   Styled explicitly instead: full opacity, muted colours, so it reads as
   "not available here" rather than as a rendering fault. */
.cta-button:disabled,
.cta-button[disabled],
.pricing-card .rz-button:disabled {
    opacity: 1 !important;
    background: rgba(255, 255, 255, .06) !important;
    color: #c3ccd8 !important;
    border: 1px dashed var(--ig-line, rgba(255,255,255,.14)) !important;
    box-shadow: none !important;
    cursor: default !important;
}

.cta-button:disabled:hover,
.cta-button[disabled]:hover,
.pricing-card .rz-button:disabled:hover {
    transform: none;
    filter: none;
    box-shadow: none !important;
}

/* ---------- Footer strip ---------- */

.pricing-footer {
    margin-top: 3rem;
}

.pricing-footer .rz-card {
    background: var(--ig-panel, #101722) !important;
    border: 1px solid var(--ig-line, rgba(255,255,255,.1)) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    color: var(--ig-ink, #f8fafc) !important;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #d7dee8;
    font-weight: 500;
}

.footer-item i {
    font-size: 1.5rem;
    color: var(--ig-green, #32d583);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .pricing-container { padding: 2rem 1rem 3rem; }

    .pricing-header h1 { font-size: 2rem; }

    .subtitle { font-size: 1rem; }

    .pricing-grid { grid-template-columns: 1fr; }

    .toggle-container {
        flex-direction: column;
        align-items: stretch;
    }

    .toggle-btn { width: 100%; }

    .price { font-size: 2.5rem; }

    .features-list { min-height: 0; }

    .popular-badge,
    .savings-badge {
        top: 14px;
        font-size: .7rem;
        padding: .45rem 1.1rem;
    }
}

/* ---------- Radzen overrides ---------- */

.rz-card.pricing-card .rz-stack { width: 100%; }

.pricing-card .rz-button { text-transform: none !important; }

/* ---------- Entrance ---------- */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pricing-card {
    animation: fadeInUp .5s ease-out forwards;
}

.pricing-card:nth-child(1) { animation-delay: .05s; }
.pricing-card:nth-child(2) { animation-delay: .12s; }
.pricing-card:nth-child(3) { animation-delay: .19s; }

/* The cards animate in with a transform; anyone who asked for less motion gets
   them in place instead. */
@media (prefers-reduced-motion: reduce) {
    .pricing-card { animation: none; }
    .pricing-card:hover { transform: none; }
    .cta-button:hover { transform: none; }
}
