/* ==========================================================================
   Games Calendar — Agenda Styles
   ========================================================================== */

/* Wrapper */
.gc-agenda {
    width: 100%;
    font-family: inherit;
}

.gc-agenda-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* ==========================================================================
   Table — Desktop
   ========================================================================== */

.gc-agenda-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 2rem;
}

/* Thead */
.gc-agenda-thead tr {
    background-color: #0d1b3e;
    color: #7a9fd4;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.gc-agenda-thead th {
    padding: 10px 12px;
    font-weight: 600;
    white-space: nowrap;
    text-align: left;
    font-size: 1.2rem;
    border-bottom: 5px solid transparent !important;
}

.gc-agenda-thead .gc-col-time--home { text-align: right; }
.gc-agenda-thead .gc-col-x,
.gc-agenda-thead .gc-col-logo { text-align: center; }

/* Fase header */
.gc-fase-header td {
    background-color: #0d1b3e;
    color: #ffffff;
    text-align: center;
    font-size: 2.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 12px;
    border-bottom: 5px solid transparent !important;
}

/* Rodada header */
.gc-rodada-header td {
    background-color: #1c3060;
    color: #ffffff;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 7px 12px;
    border-bottom: 5px solid transparent !important;
}

/* Confronto row — Desktop */
.gc-confronto--desktop td {
    padding: 10px 12px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle !important;
    color: #1a1a1a;
}

.gc-confronto--desktop:last-child td { border-bottom: none; }

.gc-confronto--desktop:nth-child(even) td { background-color: #f7f9fc; }

/* Cols */
.gc-col-data { white-space: nowrap; }
.gc-col-hora { white-space: nowrap; font-weight: 600; }

.gc-col-time--home {
    text-align: right;
}

.gc-col-time--home,
.gc-col-time--away {
    min-width: 160px;
}

.gc-col-time--home .gc-time-name { margin-right: 8px; }
.gc-col-time--away .gc-time-name { margin-left: 8px; }

.gc-col-time {
    display: table-cell;
}

.gc-col-time--home {
    text-align: right;
}

.gc-col-time--away {
    text-align: left;
}

.gc-col-x { text-align: center; padding: 10px 4px !important; }
.gc-col-logo { text-align: center; width: 60px; }
tbody .gc-col-local { font-size: 1.6rem;; }

/* Elements */
.gc-data { display: block; font-weight: 600; }
.gc-dia-semana { display: block; color: #888; font-size: 1.5rem; text-transform: capitalize; }

.gc-brasao {
    width: 36px;
    height: 36px;
    object-fit: contain;
    vertical-align: middle;
}

.gc-time-name { font-weight: 600; vertical-align: middle; }

.gc-x {
    display: inline-block;
    font-weight: 700;
    font-size: 1rem;
    color: #0d1b3e;
    padding: 0 6px;
}

.gc-campeonato-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* ==========================================================================
   Mobile rows — hidden on desktop, shown on mobile
   ========================================================================== */
.gc-confronto--mobile { display: none; }

/* ==========================================================================
   Card — Mobile
   ========================================================================== */

.gc-card {
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}

.gc-card__meta {
    display: flex;
    gap: 5px;
    font-size: 1rem;
    color: #555;
    flex-direction: column;
    justify-content: center;
}

.gc-card__data { font-weight: 600; color: #1a1a1a; }
.gc-card__hora { font-weight: 600; color: #1a1a1a; }

.gc-card__times {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.gc-card__time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.gc-card__time--home { align-items: flex-end; }
.gc-card__time--away { align-items: flex-start; }

.gc-card__brasao {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.gc-card__sigla {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0d1b3e;
    text-transform: uppercase;
    margin: auto;
}

.gc-card__x {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0d1b3e;
    padding: 0 8px;
    flex-shrink: 0;
}

.gc-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    color: #666;
    max-width: 35%;
    text-align: center;
}

.gc-card__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ==========================================================================
   Responsive breakpoint
   ========================================================================== */

@media (max-width: 768px) {
    .gc-confronto--desktop { display: none; }
    .gc-confronto--mobile  { display: table-row; }

    .gc-agenda-thead { display: none; }

    .gc-fase-header td,
    .gc-rodada-header td {
        font-size: 1.5rem;
        padding: 8px 10px;
    }
}
