/**
 * Amilia Signup Cards – Styles
 *
 * Matches the editorial card design:
 *   Top gradient bar → Title (accent) → Date range → Schedule
 *   → Member/Nonmember pricing with teal lines → Rounded pill CTA button
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Manrope:wght@400;500;600&display=swap');

/* ================================================================== */
/*  Grid                                                               */
/* ================================================================== */

.asc-grid {
    --asc-accent: #f00078;
    --asc-line: #00A7B5;

    display: grid;
    gap: 2.5rem;
    width: 100%;
    box-sizing: border-box;
}

.asc-cols-1 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
.asc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.asc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.asc-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .asc-cols-3,
    .asc-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .asc-cols-2,
    .asc-cols-3,
    .asc-cols-4 { grid-template-columns: 1fr; }
}

/* ================================================================== */
/*  Card                                                               */
/* ================================================================== */

.asc-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(40, 23, 27, 0.12);
    /* Tight, contained shadow so each card reads individually instead of the
       blurs merging into one panel-wide halo. */
    box-shadow: 0 2px 6px rgba(40, 23, 27, 0.10);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.asc-card:hover {
    box-shadow: 0 8px 22px rgba(40, 23, 27, 0.16);
    transform: translateY(-3px);
}

.asc-card-inner {
    padding: 2.5rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ================================================================== */
/*  Title                                                              */
/* ================================================================== */

.asc-card-title {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.55rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--asc-accent);
    margin: 0 0 1.5rem;
    max-width: 22ch;
}

/* ================================================================== */
/*  Schedule / Dates                                                   */
/* ================================================================== */

.asc-card-schedule {
    margin-bottom: 2.25rem;
}

.asc-card-dates {
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #28171b;
    margin-bottom: 0.3rem;
}

.asc-card-time {
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(40, 23, 27, 0.7);
}

/* ================================================================== */
/*  Description (optional)                                             */
/* ================================================================== */

.asc-card-desc {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin: 0 0 1.5rem;
    max-width: 36ch;
}

/* ================================================================== */
/*  Note (optional, from Amilia activity Note field)                   */
/* ================================================================== */

.asc-card-note {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--asc-line);
    margin: 0 0 1.5rem;
    max-width: 36ch;
}

/* Editable notes section, rendered below the pricing rows. */
.asc-card-notes {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin: 0 0 2rem;
    max-width: 36ch;
}

.asc-card-notes p {
    margin: 0 0 0.5rem;
}

.asc-card-notes p:last-child {
    margin-bottom: 0;
}

/* ================================================================== */
/*  Pricing rows                                                       */
/* ================================================================== */

.asc-card-pricing {
    width: 100%;
    margin-bottom: 2.25rem;
    padding: 0 0.25rem;
}

.asc-price-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.asc-price-row + .asc-price-row {
    margin-top: 1.25rem;
}

.asc-price-label {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--asc-accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.asc-price-line {
    flex: 1;
    margin: 0 1rem;
    border-bottom: 1px solid var(--asc-line);
    position: relative;
    top: 3px;
    min-width: 2rem;
}

.asc-price-amount {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--asc-accent);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ================================================================== */
/*  CTA button — rounded pill, auto-width                             */
/* ================================================================== */

.asc-card-btn {
    display: inline-block;
    min-width: 160px;
    padding: 0.9rem 2.5rem;
    background: var(--asc-accent);
    color: #fff !important;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    text-decoration: none !important;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(240, 0, 120, 0.25);
    box-sizing: border-box;
}

.asc-card-btn:hover {
    background: #fff;
    color: var(--asc-accent) !important;
    box-shadow: inset 0 0 0 2px var(--asc-accent), 0 6px 20px rgba(240, 0, 120, 0.25);
    text-decoration: none !important;
}

.asc-card-btn:active {
    transform: scale(0.97);
}

.asc-card-btn-extra {
    margin-top: 8px;
}

/* Sold out */
.asc-btn-disabled {
    background: #999;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.asc-sold-out {
    opacity: 0.65;
}

/* ================================================================== */
/*  Empty message                                                      */
/* ================================================================== */

.asc-empty {
    text-align: center;
    color: #777;
    font-size: 1rem;
    padding: 2rem 1rem;
    font-family: 'Manrope', system-ui, sans-serif;
}

/* ================================================================== */
/*  Debug                                                              */
/* ================================================================== */

.asc-debug {
    background: #f5f5dc;
    border: 1px solid #ccc;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.5;
    border-radius: 4px;
    font-family: 'Manrope', system-ui, sans-serif;
}

.asc-debug pre {
    max-height: 400px;
    overflow: auto;
    font-size: 0.75rem;
    background: #fff;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

/* ================================================================== */
/*  Responsive                                                         */
/* ================================================================== */

@media (max-width: 640px) {
    .asc-card-inner {
        padding: 2rem 1.75rem 2rem;
    }

    .asc-card-title {
        font-size: 1.3rem;
    }

    .asc-price-label,
    .asc-price-amount {
        font-size: 1rem;
    }
}
