/*
 * festival-card.css
 * Self-contained festival promotion card component.
 * All styles namespaced under .am-festival-card / .am-fc-*
 * Loaded on explore and search pages when a festival is live.
 */

.am-festival-card,
.am-festival-card * {
    box-sizing: border-box;
    font-family: 'DM Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Card shell ── */
.am-festival-card {
    background: #fff;
    border: .5px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

/* ── Header: navy + teal top border ── */
.am-fc-header {
    background: #0D1B2A;
    border-top: 2.5px solid #00C49A;
    padding: .8rem 1rem .75rem;
    position: relative;
}

.am-fc-live {
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #00C49A;
    margin-bottom: .38rem;
    line-height: 1;
}

.am-fc-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00C49A;
    flex: 0 0 6px;
    animation: am-pulse 2.2s ease-in-out infinite;
}

@keyframes am-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(0,196,154,.2); }
    50%       { box-shadow: 0 0 0 5px rgba(0,196,154,.06); }
}

.am-fc-city {
    position: absolute;
    top: .8rem;
    right: 1rem;
    background: rgba(0,196,154,.1);
    border: .5px solid rgba(0,196,154,.25);
    border-radius: 4px;
    padding: .2rem .55rem;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #00C49A;
    line-height: 1.4;
}

.am-fc-name {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 15px;
    color: #fff;
    line-height: 1.2;
}

/* ── Dates band (replaces stats row) ── */
.am-fc-dates-band {
    padding: .55rem 1rem;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #0D1B2A;
    border-bottom: .5px solid #E2E8F0;
    letter-spacing: .01em;
}

/* ── Today's highlights ── */
.am-fc-preview {
    padding: .65rem 1rem .55rem;
}

.am-fc-preview-lbl {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #94A3B8;
    margin-bottom: .5rem;
}

.am-fc-event {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .38rem 0;
    border-bottom: .5px solid #F1F5F9;
}

.am-fc-event:last-child { border-bottom: none; }

.am-fc-ev-date {
    flex: 0 0 30px;
    background: #F1F5F9;
    border-radius: 6px;
    text-align: center;
    padding: .22rem .1rem .18rem;
}

.am-fc-ev-date .am-ev-m {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00A880;
    letter-spacing: .04em;
    line-height: 1;
    display: block;
}

.am-fc-ev-date .am-ev-d {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 15px;
    color: #0D1B2A;
    line-height: 1.1;
    display: block;
}

.am-fc-ev-body {
    flex: 1;
    min-width: 0;
}

.am-fc-ev-title {
    font-size: 11px;
    font-weight: 600;
    color: #0D1B2A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.am-fc-ev-meta {
    font-size: 10px;
    color: #94A3B8;
    margin-top: .06rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-fc-ev-pill {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: .1rem .38rem;
    border-radius: 3px;
    margin-top: .14rem;
    letter-spacing: .02em;
}

.am-fc-pill-free     { background: #E0FAF4; color: #00A880; }
.am-fc-pill-ticketed { background: #FEF3DC; color: #B45309; }
.am-fc-pill-invite   { background: #F1F5F9; color: #64748B; }

/* ── CTA footer ── */
.am-fc-cta {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 1rem .75rem;
    border-top: .5px solid #E2E8F0;
}

.am-fc-cta-btn {
    flex: 1;
    background: var(--am-teal-deep);
    color: #fff !important;
    border: none;
    border-radius: 7px;
    padding: .45rem .65rem;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    letter-spacing: .01em;
    text-decoration: none !important;
    transition: background .15s ease, transform .1s ease;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.am-fc-cta-btn:hover { background: var(--am-teal-forest); transform: translateY(-1px); }
.am-fc-cta-btn:active { transform: translateY(0); }

.am-fc-cta-link {
    font-size: 10px;
    font-weight: 600;
    color: #94A3B8 !important;
    text-decoration: none !important;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: color .12s ease;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.am-fc-cta-link:hover { color: #0D1B2A !important; }
