﻿.calendario-page {
    padding: 0.5rem 0;
}

/* =============================
   TIRA SEMANAL
   ============================= */
.week-strip {
    margin-bottom: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.week-strip::-webkit-scrollbar { display: none; }

.week-strip-inner {
    display: flex;
    gap: 6px;
    min-width: max-content;
    padding: 2px;
}

.week-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    min-width: 52px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}
.week-day:hover {
    background: var(--card-bg-hover);
}
.week-day.active {
    background: var(--primary);
    border-color: var(--primary);
}

.week-day-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.55;
    letter-spacing: 0.5px;
    line-height: 1;
}
.week-day.active .week-day-label {
    color: #1a1200;
    opacity: 1;
}

.week-day-num {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}
.week-day.active .week-day-num {
    color: #1a1200;
}

.week-day-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    visibility: hidden;
}
.week-day-dot.has-matches {
    visibility: visible;
    background: var(--primary);
}
.week-day.active .week-day-dot.has-matches {
    background: #1a1200;
}

/* =============================
   MATCH LIST & GROUPS
   ============================= */
.match-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.match-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.match-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0.5;
    white-space: nowrap;
}
.match-group-line {
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

.match-group-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* =============================
   MATCH ROW (CSS Grid)
   ============================= */
.match-row {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
    min-height: 50px;
    background: var(--card-bg);
}
.match-row:hover {
    border-color: var(--primary);
}
.match-row.is-live {
    border-left: 3px solid var(--live);
}

/* --- Coluna 1: horário --- */
.match-time {
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text);
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.match-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--live);
    animation: pulse-dot 1.2s ease-in-out infinite;
}

/* --- Coluna 2: times --- */
.match-teams {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.match-team {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    flex: 1;
}
.match-team:last-child {
    justify-content: flex-end;
}
.match-shield {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: contain;
    background: var(--card-bg);
    flex-shrink: 0;
}
.match-shield-initials {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
}
.match-team-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}
.match-team:last-child .match-team-name {
    text-align: right;
}
.match-vs {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    min-width: 28px;
    text-align: center;
}

/* --- Coluna 3: meta --- */
.match-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.match-meta .channel {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    background: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.match-meta .channel i {
    color: var(--primary);
    font-size: 0.55rem;
}
.match-btn {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    background: var(--primary);
    color: #1a1200;
    white-space: nowrap;
    transition: filter 0.15s ease;
}
.match-row:hover .match-btn {
    filter: brightness(1.08);
}

/* =============================
   RESPONSIVO
   ============================= */
@media (max-width: 599px) {
    .match-meta .channel {
        display: none;
    }
    .match-row {
        grid-template-columns: 44px 1fr auto;
        gap: 0.5rem;
        padding: 0.55rem 0.65rem;
    }
    .match-time {
        font-size: 0.82rem;
    }
    .match-shield,
    .match-shield-initials {
        width: 22px;
        height: 22px;
        font-size: 0.5rem;
    }
    .match-team-name {
        font-size: 0.78rem;
        max-width: 80px;
    }
    .match-vs {
        font-size: 0.75rem;
        min-width: 22px;
    }
    .match-btn {
        font-size: 0.65rem;
        padding: 0.25rem 0.55rem;
    }
    .week-day {
        padding: 6px 10px;
        min-width: 44px;
    }
    .week-day-num {
        font-size: 1rem;
    }
}

@media (min-width: 600px) {
    .match-row {
        grid-template-columns: 60px 1fr auto;
        padding: 0.75rem 1rem;
    }
    .match-shield,
    .match-shield-initials {
        width: 30px;
        height: 30px;
    }
    .match-team-name {
        font-size: 0.9rem;
        max-width: 160px;
    }
}
