/* Public competition discovery page */
.home-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 68px 0 58px;
    border-bottom: 1px solid var(--pub-border);
    background:
        linear-gradient(180deg, rgba(255,255,255,.015), transparent 60%),
        var(--pub-bg);
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.home-hero-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(12px);
}

.home-hero-orb-one {
    width: 520px;
    height: 520px;
    top: -330px;
    left: 8%;
    background: rgba(230,57,70,.24);
}

.home-hero-orb-two {
    width: 440px;
    height: 440px;
    right: -220px;
    bottom: -340px;
    background: rgba(109,40,217,.13);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
    gap: clamp(42px, 7vw, 92px);
    align-items: center;
}

.home-hero-copy,
.home-search-card,
.home-quick-filters { min-width: 0; }

.home-eyebrow,
.home-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ff7b86;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.home-eyebrow > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(230,57,70,.12);
}

.home-hero h1 {
    max-width: 620px;
    margin: 18px 0 18px;
    color: var(--text-white);
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: .98;
}

.home-hero h1 em {
    color: transparent;
    font-style: normal;
    background: linear-gradient(100deg, #ff5a67, #ff8d7b);
    -webkit-background-clip: text;
    background-clip: text;
}

.home-hero-copy > p {
    max-width: 590px;
    margin: 0;
    color: #a8aabd;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.7;
}

.home-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 26px;
    color: #c3c4d1;
    font-size: 12px;
    font-weight: 650;
}

.home-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.home-trust-row i { color: #48d597; }

.home-search-card {
    padding: 18px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    background: rgba(19,19,30,.78);
    box-shadow: 0 24px 80px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.035);
    backdrop-filter: blur(18px);
}

.home-search-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 6px 7px 6px 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    background: #0d0d16;
}

.home-search-main > i {
    color: #77798d;
    font-size: 19px;
}

.home-search-main input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--text-white);
    background: transparent;
    font: inherit;
    font-size: 15px;
}

.home-search-main input::placeholder { color: #686a7c; }

.home-search-main button,
.home-filter-actions button {
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #ef4050, #d62839);
    box-shadow: 0 8px 24px rgba(230,57,70,.28);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.home-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.home-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    color: #9496a8;
    background: rgba(255,255,255,.025);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.home-filter-chip:hover,
.home-filter-chip.is-active {
    border-color: rgba(230,57,70,.48);
    color: #ffd5d8;
    background: rgba(230,57,70,.12);
}

.home-main {
    padding: 34px 0 76px;
    background:
        radial-gradient(circle at 50% 0, rgba(230,57,70,.035), transparent 32%),
        var(--pub-bg);
}

.home-view-tabs {
    display: flex;
    gap: 7px;
    width: max-content;
    max-width: 100%;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid var(--pub-border);
    border-radius: 13px;
    background: var(--pub-surface);
    scrollbar-width: none;
}

.home-view-tabs::-webkit-scrollbar { display: none; }

.home-view-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 15px;
    border-radius: 9px;
    color: #858799;
    text-decoration: none;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 750;
}

.home-view-tabs a:hover { color: var(--text-white); }
.home-view-tabs a.is-active { color: #fff; background: #282837; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }

.home-filter-panel { margin-top: 36px; }

.home-filter-panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.home-filter-panel-heading h2 {
    margin: 7px 0 0;
    color: var(--text-white);
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -.035em;
}

.home-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--pub-border);
    border-radius: 11px;
    color: var(--text-white);
    background: var(--pub-surface);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
}

.home-advanced-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(5, minmax(120px, 1fr)) auto;
    gap: 10px;
    align-items: end;
    padding: 15px;
    border: 1px solid var(--pub-border);
    border-radius: 16px;
    background: var(--pub-surface);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.home-field { min-width: 0; }
.home-field label {
    display: block;
    margin: 0 0 7px;
    color: #747688;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.home-field input,
.home-field select {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    outline: 0;
    color: #d9dae3;
    background: #0e0e17;
    font: inherit;
    font-size: 12px;
}

.home-field select { padding-right: 30px; }
.home-field input:hover,
.home-field select:hover { border-color: rgba(255,255,255,.18); }
.home-field input:focus,
.home-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230,57,70,.12); }

.home-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 43px;
}

.home-filter-actions a {
    color: #8f91a3;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.home-filter-actions button { min-height: 43px; padding-inline: 16px; white-space: nowrap; }

.home-results-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 25px 0 15px;
    color: #77798c;
    font-size: 12px;
}

.home-results-summary p { margin: 0; }
.home-results-summary strong { color: var(--text-white); }
.home-results-summary a { color: #ff7b86; font-weight: 700; text-decoration: none; }

.home-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-event-card {
    min-width: 0;
    border: 1px solid rgba(255,255,255,.085);
    border-radius: 18px;
    overflow: hidden;
    background: #12121c;
    box-shadow: 0 12px 36px rgba(0,0,0,.24);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.home-event-card:hover {
    border-color: rgba(230,57,70,.42);
    transform: translateY(-4px);
    box-shadow: 0 20px 52px rgba(0,0,0,.38);
}

.home-event-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.home-event-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1b1b26;
}

.home-event-media::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(to top, rgba(10,10,18,.78), transparent);
    pointer-events: none;
}

.home-event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.home-event-card:hover .home-event-media img { transform: scale(1.035); }

.home-event-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    color: #77798a;
    background:
        radial-gradient(circle at 30% 25%, rgba(230,57,70,.2), transparent 34%),
        linear-gradient(135deg, #21121a, #14141f);
    font-size: 12px;
    font-weight: 700;
}

.home-event-placeholder i { color: #ff6874; font-size: 32px; }

.home-event-status {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 27px;
    padding: 4px 9px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    color: #e8e8ee;
    background: rgba(10,10,18,.82);
    backdrop-filter: blur(10px);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.home-event-status > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.home-event-status.status-open { color: #62e7a6; }
.home-event-status.status-scheduled { color: #8bc7ff; }
.home-event-status.status-closed { color: #f8c76a; }
.home-event-status.status-live { color: #ff7782; }
.home-event-status.status-finished,
.home-event-status.status-published { color: #b4b6c5; }
.home-event-status.status-canceled { color: #ff7782; }

.home-event-date {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    display: grid;
    min-width: 49px;
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;
    color: #fff;
    background: rgba(10,10,18,.86);
    text-align: center;
    backdrop-filter: blur(10px);
}

.home-event-date strong { font-size: 18px; line-height: 1; }
.home-event-date span { margin-top: 3px; color: #a8aabd; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.home-event-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 19px;
}

.home-event-org {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #77798b;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.home-event-org i { color: #ff6571; }

.home-event-content h3 {
    margin: 0 0 14px;
    color: #f1f1f7;
    font-size: 17px;
    font-weight: 780;
    letter-spacing: -.025em;
    line-height: 1.32;
}

.home-event-facts { display: grid; gap: 7px; margin-bottom: 18px; }
.home-event-facts span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #9a9cad;
    font-size: 12px;
    line-height: 1.4;
}
.home-event-facts i { width: 14px; flex: 0 0 14px; color: #66687a; text-align: center; }

.home-event-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,.065);
}

.home-event-price { display: grid; gap: 2px; }
.home-event-price small { color: #6e7082; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.home-event-price strong { color: #e8e8ef; font-size: 14px; }
.home-event-cta { display: inline-flex; align-items: center; gap: 7px; color: #ff6874; font-size: 12px; font-weight: 800; }
.home-event-cta i { transition: transform .2s ease; }
.home-event-card:hover .home-event-cta i { transform: translateX(3px); }

.home-registration-deadline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 13px 0 0;
    color: #d5ad63;
    font-size: 10px;
    font-weight: 650;
}

.home-event-card:only-child {
    grid-column: 1 / span 2;
    max-width: 820px;
}

.home-event-card:only-child .home-event-link {
    display: grid;
    grid-template-columns: minmax(300px, 1.15fr) 1fr;
}

.home-event-card:only-child .home-event-media { height: 100%; min-height: 320px; aspect-ratio: auto; }

.home-empty {
    display: grid;
    justify-items: center;
    padding: 64px 20px;
    border: 1px dashed rgba(255,255,255,.11);
    border-radius: 20px;
    background: rgba(255,255,255,.018);
    text-align: center;
}

.home-empty-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 17px;
    border: 1px solid rgba(230,57,70,.22);
    border-radius: 18px;
    color: #ff6672;
    background: rgba(230,57,70,.09);
    font-size: 24px;
}
.home-empty h2 { margin: 0 0 8px; color: var(--text-white); font-size: 21px; }
.home-empty p { margin: 0 0 22px; color: #8e90a2; font-size: 13px; }

.home-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 30px;
    color: #77798b;
    font-size: 11px;
}
.home-pagination ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.home-pagination a,
.home-pagination .current,
.home-pagination .disabled {
    display: inline-flex;
    min-width: 38px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid var(--pub-border);
    border-radius: 9px;
    color: #a5a7b7;
    background: var(--pub-surface);
    text-decoration: none;
}
.home-pagination .active a,
.home-pagination .current { border-color: var(--accent); color: #fff; background: var(--accent); }
.home-pagination .disabled { opacity: .4; }

.home-organizer-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin-top: 76px;
    padding: clamp(28px, 5vw, 48px);
    overflow: hidden;
    border: 1px solid rgba(230,57,70,.2);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(230,57,70,.22), transparent 38%),
        linear-gradient(135deg, #18131d, #11111b);
}
.home-organizer-cta h2 { max-width: 670px; margin: 9px 0 9px; color: #f2f2f7; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.04em; }
.home-organizer-cta p { max-width: 690px; margin: 0; color: #9698aa; font-size: 14px; line-height: 1.65; }

.home-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 19px;
    border-radius: 11px;
    text-decoration: none;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
}
.home-button-primary { color: #fff; background: linear-gradient(135deg, #ef4050, #cf2435); box-shadow: 0 10px 30px rgba(230,57,70,.26); }
.home-button-secondary { border: 1px solid var(--pub-border); color: #dddde6; background: var(--pub-surface); }

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1120px) {
    .home-advanced-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-field-wide { grid-column: span 2; }
    .home-filter-actions { justify-content: flex-end; }
}

@media (max-width: 900px) {
    .home-hero { padding: 52px 0 46px; }
    .home-hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .home-hero-copy { text-align: center; }
    .home-hero h1,
    .home-hero-copy > p { margin-inline: auto; }
    .home-trust-row { justify-content: center; }
    .home-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-organizer-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
    .home-shell { width: min(100% - 32px, 1180px); }
    .home-main { padding-top: 24px; }
    .home-filter-toggle { display: inline-flex; }
    .home-advanced-filters { display: none; grid-template-columns: 1fr 1fr; }
    .home-advanced-filters.is-open { display: grid; }
    .home-field-wide { grid-column: span 2; }
    .home-filter-actions { grid-column: span 2; }
    .home-event-card:only-child { grid-column: auto; max-width: none; }
    .home-event-card:only-child .home-event-link { display: flex; }
    .home-event-card:only-child .home-event-media { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 580px) {
    .home-hero { padding: 40px 0 34px; }
    .home-hero h1 { font-size: clamp(34px, 11.5vw, 48px); }
    .home-hero-copy > p { font-size: 15px; }
    .home-trust-row { display: none; }
    .home-search-card { padding: 12px; border-radius: 17px; }
    .home-search-main { grid-template-columns: auto 1fr; padding: 7px 12px; }
    .home-search-main button { grid-column: 1 / -1; width: 100%; }
    .home-quick-filters { flex-wrap: nowrap; margin-inline: -12px; padding: 0 12px 2px; overflow-x: auto; scrollbar-width: none; }
    .home-filter-chip { min-height: 44px; white-space: nowrap; }
    .home-event-grid { grid-template-columns: 1fr; }
    .home-filter-panel-heading { align-items: center; }
    .home-advanced-filters { grid-template-columns: 1fr; }
    .home-field-wide,
    .home-filter-actions { grid-column: auto; }
    .home-filter-actions { justify-content: space-between; }
    .home-pagination { align-items: flex-start; flex-direction: column; }
    .home-pagination ul { max-width: 100%; overflow-x: auto; }
    .home-organizer-cta { margin-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-event-card,
    .home-event-media img,
    .home-event-cta i { transition: none; }
    .home-event-card:hover { transform: none; }
}
