/* ============================================================
   Events & Camps listing page — ik- design system extension
   View: Views/Home/EventsAndCamps.cshtml
   Prefix: ik-ev-
   ============================================================ */

.ik-ev-catalog-in { max-width: 1180px; margin: 0 auto; }

/* ---------- type tabs ---------- */
.ik-ev-type-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ik-ev-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--ik-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--ik-ink);
    background: #fff;
    border: 1.5px solid var(--ik-border);
    cursor: pointer;
    padding: 9px 18px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.ik-ev-type-btn:hover { transform: translateY(-2px); border-color: var(--ik-green); }
/* --ik-green carries white at only 2.9:1; --ik-green-deep is the same hue at 5.33:1. */
.ik-ev-type-btn.is-active { color: #fff; background: var(--ik-green-deep); border-color: var(--ik-green-deep); }
.ik-ev-type-count { font-family: var(--ik-body); font-weight: 800; font-size: 12px; opacity: .7; }

/* ---------- status chips + category select ---------- */
.ik-ev-status-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.ik-ev-status-label {
    font-family: var(--ik-display);
    font-weight: 600;
    font-size: 13px;
    color: var(--ik-gray);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-right: 4px;
}
.ik-ev-status-btn {
    display: inline-block;
    font-family: var(--ik-body);
    font-weight: 700;
    font-size: 13px;
    color: var(--ik-muted);
    background: #fff;
    border: 1.5px solid var(--ik-border);
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.ik-ev-status-btn:hover { transform: translateY(-2px); border-color: var(--ik-green); }
.ik-ev-status-btn.is-active { color: var(--ik-green-deep); background: var(--ik-mint-bg); border-color: var(--ik-green); }

.ik-ev-category-form { display: inline-flex; }
.ik-ev-select {
    font-family: var(--ik-body);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--ik-ink);
    background: #fff;
    border: 1.5px solid var(--ik-border);
    border-radius: 999px;
    padding: 8px 15px;
    cursor: pointer;
    outline: none;
}
.ik-ev-select:hover { border-color: var(--ik-green); }

.ik-ev-clear {
    font-family: var(--ik-body);
    font-weight: 700;
    font-size: 13.5px;
    color: #c47f1e;
    text-decoration: none;
    margin-left: 4px;
}
.ik-ev-clear:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- results count ---------- */
.ik-ev-count { font-family: var(--ik-body); font-weight: 700; font-size: 14px; color: var(--ik-muted); margin: 0 0 18px; }

/* ---------- grid + card ---------- */
/* Horizontal cards (changed 2026-08-28). The media panel was a 148px band across
   the top of a narrow card, which pushed the title down and made a list of events
   read as a wall of gradients. It is now a fixed left column, so the cards are wide
   and short and a scan runs down one edge of titles and dates. */
.ik-ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 16px; }
.ik-ev-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid var(--ik-border-soft);
    border-radius: 22px;
    box-shadow: 0 16px 36px -28px rgba(80, 55, 20, .55);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}
/* Sideways, matching the card's new long axis — a lift reads as wrong on a row. */
.ik-ev-card:hover { transform: translateX(4px); box-shadow: 0 30px 54px -30px rgba(80, 55, 20, .7); }

.ik-ev-media { position: relative; width: 132px; flex: none; display: grid; place-items: center; overflow: hidden; }
/* The markup ships width/height 52 on each icon; the panel is narrower now. */
.ik-ev-media svg { width: 40px; height: 40px; }
.ik-ev-media svg { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }

.ik-ev-badge-type {
    position: absolute;
    bottom: 10px; left: 10px;
    font-size: 10px;
    padding: 4px 9px;
    font-family: var(--ik-display);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
}
.ik-ev-badge-type--camp { color: var(--ik-gold-text); background: var(--ik-tan-bg); }
.ik-ev-badge-type--event { color: var(--ik-purple); background: var(--ik-lavender-bg); }

.ik-ev-badge-date {
    position: absolute;
    top: 10px; right: 10px;
    width: 42px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 5px 0;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4);
}
.ik-ev-badge-date-m { display: block; font-family: var(--ik-display); font-weight: 700; font-size: 10px; letter-spacing: 1px; color: var(--ik-red); }
.ik-ev-badge-date-d { display: block; font-family: var(--ik-display); font-weight: 700; font-size: 19px; line-height: 1; color: var(--ik-ink); }

.ik-ev-badge-overlay {
    position: absolute;
    bottom: 12px; right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--ik-display);
    font-weight: 600;
    font-size: 11px;
    padding: 5px 11px;
    border-radius: 999px;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4);
    color: #fff;
}
.ik-ev-badge-overlay--dark { background: rgba(30, 58, 95, .88); }
.ik-ev-badge-overlay--danger { background: var(--ik-red); }
.ik-ev-badge-overlay--warn { background: var(--ik-gold); color: var(--ik-ink); }

.ik-ev-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }

.ik-ev-status-pill {
    align-self: flex-start;
    font-family: var(--ik-body);
    font-weight: 700;
    font-size: 11.5px;
    padding: 4px 11px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.ik-ev-status-pill--live { color: var(--ik-green-deep); background: var(--ik-mint-bg); }
.ik-ev-status-pill--upcoming { color: var(--ik-sky-text); background: #e0f4fe; }
/* Was #74808f on #eef0f3 = 3.52 at 11.5px bold. --ik-muted is 4.60 on it. */
.ik-ev-status-pill--past { color: var(--ik-muted); background: #eef0f3; }
/* Was a hardcoded #c23b3f = 4.26 on --ik-pink-bg. --ik-red is the system's own
   red and is already solved against this exact tint at 4.57. */
.ik-ev-status-pill--warn { color: var(--ik-red); background: var(--ik-pink-bg); }

.ik-ev-category {
    align-self: flex-start;
    font-family: var(--ik-body);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--ik-purple);
    background: var(--ik-lavender-bg);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.ik-ev-title { font-family: var(--ik-display); font-weight: 600; font-size: 19px; line-height: 1.2; color: var(--ik-ink); margin: 0 0 8px; }
.ik-ev-date-line { display: flex; align-items: center; font-family: var(--ik-body); font-weight: 700; font-size: 13.5px; color: var(--ik-muted); margin: 0 0 12px; }

.ik-ev-meta-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.ik-ev-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--ik-body);
    font-weight: 700;
    font-size: 12px;
    color: var(--ik-muted);
    background: var(--ik-cream-2);
    padding: 5px 11px;
    border-radius: 999px;
}
.ik-ev-meta-chip--accent { color: var(--ik-green-deep); background: var(--ik-mint-bg); }

.ik-ev-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--ik-border-soft); padding-top: 14px; }
.ik-ev-price { font-family: var(--ik-display); font-weight: 700; font-size: 20px; color: var(--ik-green-deep); }
.ik-ev-price small { font-family: var(--ik-body); font-weight: 700; font-size: 12px; color: var(--ik-gray); }

/* Below the two-column threshold the side panel starves the body, so the card
   goes back to the stacked shape it had before. */
@media (max-width: 560px) {
    .ik-ev-grid { grid-template-columns: 1fr; }
    .ik-ev-card { flex-direction: column; }
    .ik-ev-card:hover { transform: translateY(-6px); }
    .ik-ev-media { width: auto; height: 132px; }
}

.ik-ev-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ik-display);
    font-weight: 600;
    font-size: 13.5px;
    color: #fff;
    background: var(--ik-blue-deep);
    padding: 9px 16px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}
.ik-ev-btn:hover { background: var(--ik-green-deep); transform: translateY(-1px); color: #fff; }
.ik-ev-btn--muted { background: #6b7c91; }
.ik-ev-btn--muted:hover { background: var(--ik-green-deep); }
.ik-ev-btn--disabled { background: #c9d0d8; cursor: not-allowed; }
.ik-ev-btn--disabled:hover { background: #c9d0d8; transform: none; }

/* ---------- empty state ---------- */
.ik-ev-empty {
    max-width: 560px;
    margin: 24px auto 0;
    text-align: center;
    background: #fff;
    border: 2px dashed var(--ik-border);
    border-radius: 24px;
    padding: clamp(30px, 5vw, 46px);
}
.ik-ev-empty-icon {
    display: inline-grid;
    place-items: center;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--ik-cream-2);
    margin-bottom: 18px;
}
.ik-ev-empty h3 { font-family: var(--ik-display); font-weight: 600; font-size: 22px; color: var(--ik-ink); margin: 0 0 10px; }
.ik-ev-empty p { font-family: var(--ik-body); font-weight: 500; font-size: 15.5px; line-height: 1.6; color: var(--ik-muted); margin: 0 0 22px; }

@media (max-width: 560px) {
    .ik-ev-status-row { gap: 7px; }
    .ik-ev-category-form { width: 100%; }
    .ik-ev-select { width: 100%; }
}
