* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #0f172a;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.18), transparent 34%),
        radial-gradient(circle at top right, rgba(249,115,22,.16), transparent 34%),
        #f1f5f9;
}

/* ======================================================
   HERO PADRÃO — USADO NO INDEX E NA PÁGINA DO EVENTO
====================================================== */

.hero {
    background:
        linear-gradient(120deg, rgba(6,22,61,.98), rgba(18,60,140,.94));
    color: #fff;
    padding: 36px 18px 72px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -20deg,
            rgba(255,255,255,.055) 0px,
            rgba(255,255,255,.055) 2px,
            transparent 2px,
            transparent 18px
        );
    opacity: .55;
}

.hero::after {
    content: "RUN";
    position: absolute;
    right: -18px;
    bottom: -42px;
    color: rgba(255,255,255,.06);
    font-size: 138px;
    font-weight: 900;
    letter-spacing: -8px;
}

.hero > div,
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-com-capa {
    min-height: 310px;
    display: flex;
    align-items: flex-end;
}

.hero strong {
    display: block;
    font-size: 22px;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    margin: 16px 0 8px;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    text-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.hero p {
    color: #dbeafe;
    margin: 0 0 20px;
}

/* ======================================================
   CONTAINER
====================================================== */

.container {
    max-width: 1200px;
    margin: -44px auto 44px;
    padding: 0 16px;
    position: relative;
    z-index: 4;
}

/* ======================================================
   BUSCA DO INDEX
====================================================== */

.busca-cidade {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    max-width: 620px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    padding: 10px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.busca-cidade input,
.busca-cidade button {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 15px;
}

.busca-cidade input {
    background: white;
    color: #0f172a;
}

.busca-cidade button {
    background: linear-gradient(135deg, #facc15, #f97316);
    color: #431407;
    font-weight: 900;
    cursor: pointer;
}

/* ======================================================
   CARDS DO INDEX — LISTA DE EVENTOS
====================================================== */

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 22px;
}

.event-card {
    background: white;
    color: #0f172a;
    text-decoration: none;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    display: block;
    position: relative;
}

.event-card:hover {
    transform: translateY(-9px) scale(1.018);
    box-shadow: 0 24px 48px rgba(15, 23, 42, .24);
    border-color: rgba(249, 115, 22, .55);
}

.event-card:hover .event-cover {
    transform: scale(1.045);
}

.event-cover {
    height: 292px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform .35s ease;
}

.event-cover.sem-capa {
    background:
        linear-gradient(135deg, #06163d, #123c8c),
        radial-gradient(circle at 20% 20%, rgba(250,204,21,.35), transparent 30%);
}

.event-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.04), rgba(0,0,0,.22)),
        linear-gradient(135deg, transparent 0%, rgba(249,115,22,.10) 100%);
}

.date-badge {
    position: absolute;
    left: 0;
    bottom: -18px;
    z-index: 3;
    width: 68px;
    background: white;
    border-radius: 0 14px 14px 0;
    text-align: center;
    padding: 7px 4px 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .20);
    overflow: hidden;
}

.date-badge strong {
    display: block;
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.date-badge span {
    display: block;
    color: #334155;
    font-size: 12px;
    line-height: 1;
    margin-top: 2px;
    font-weight: 800;
}

.date-badge em {
    display: block;
    margin: 6px -4px 0;
    background: linear-gradient(90deg, #a855f7, #7c3aed);
    color: white;
    font-style: normal;
    font-size: 12px;
    padding: 2px 0;
}

.event-status {
    position: absolute;
    right: 5px;
    bottom: -18px;
    z-index: 3;
    background: #e11d48;
    color: white;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 5px;
    letter-spacing: .2px;
    box-shadow: 0 8px 18px rgba(225, 29, 72, .24);
}

.event-content {
    padding: 34px 16px 20px;
}

.event-content h2 {
    margin: 0 0 18px;
    font-size: 15px;
    color: #020617;
    text-transform: uppercase;
    line-height: 1.25;
}

.event-line {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    align-items: center;
    margin: 11px 0;
    color: #020617;
    font-size: 14px;
}

.event-line svg {
    width: 18px;
    height: 18px;
    fill: #a855f7;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.event-meta span {
    background: #eff6ff;
    color: #1e3a8a;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 800;
}

/* ======================================================
   CARD ANTIGO / COMPATIBILIDADE
====================================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.card {
    display: block;
    background: white;
    color: #0f172a;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15,23,42,.10);
    overflow: hidden;
}

.card-content {
    padding: 20px;
}

.card-capa {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.card h2 {
    color: #06163d;
    margin: 0 0 8px;
}

.stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.stats span {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 8px 10px;
    color: #1e3a8a;
}

/* ======================================================
   PÁGINA EVENTO — FILTROS E TABELA
====================================================== */

.filters {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15,23,42,.10);
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr auto;
    gap: 10px;
    margin-bottom: 18px;
}

.filters input[type="hidden"] {
    display: none;
}

select,
button {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    padding: 0 12px;
    font-size: 15px;
}

button {
    border: 0;
    background: linear-gradient(135deg, #facc15, #f97316);
    font-weight: 900;
    color: #431407;
    cursor: pointer;
}

.table-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15,23,42,.10);
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

th {
    background: #eef4ff;
    color: #1e3a8a;
    text-align: left;
    text-transform: uppercase;
    font-size: 12px;
    padding: 13px;
}

td {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px;
}

tbody tr:nth-child(even) {
    background: #f8fbff;
}

small {
    color: #64748b;
}

/* ======================================================
   VAZIO
====================================================== */

.empty-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(15,23,42,.10);
}

/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 760px) {
    .hero {
        padding: 28px 14px 64px;
    }

    .hero-com-capa {
        min-height: 250px;
    }

    .container {
        padding: 0 10px;
    }

    .busca-cidade,
    .filters {
        grid-template-columns: 1fr;
    }

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

    .event-cover {
        height: 280px;
    }
}
