/* --- NETFLIX-STYLE SCHEDULES SECTION --- */

.schedules-section {
    background-color: var(--primary); /* Navy Blue Background */
    color: white;
    padding: 80px 0;
    overflow: hidden;
    position: relative;
    background-image: url('../images/bg-CRONOGRAMA.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Background overlay effect */
.schedules-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 24, 47, 0.85), rgba(5, 24, 47, 0.95));
    pointer-events: none;
    z-index: 1;
}

.schedules-section .container {
    position: relative;
    z-index: 2;
}

.schedules-section .section-header h2 {
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.schedules-section .sub-title {
    color: var(--highlight);
}

/* Tabs Dark Mode */
.schedule-tabs {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tab-btn {
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: none;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.tab-btn:hover {
    color: white;
}

.tab-btn.active {
    color: var(--highlight);
    background: transparent;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--highlight);
    box-shadow: 0 0 10px var(--highlight);
}

/* --- LAYOUT: FEATURED + GRID --- */
.netflix-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Featured Card (Left) */
.featured-match {
    flex: 2; /* 40% width approx */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: 0.4s transform;
    cursor: pointer;
    height: 700px;
}

.featured-match:hover {
    transform: scale(1.02);
}

.featured-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.5s;
}

.featured-match:hover .featured-bg {
    transform: scale(1.1);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, #05182F 10%, transparent 100%);
    padding: 40px;
    z-index: 2;
}

.f-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.featured-content h3 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.featured-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 80%;
    margin-bottom: 25px;
}

.btn-watch {
    background: white;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-watch:hover {
    background: var(--highlight);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* Upcoming List (Right) */
.upcoming-scroll {
    flex: 3; /* 60% width approx */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* Poster Card */
.match-poster {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 2/3;
    cursor: pointer;
    transition: 0.3s;
    background: #0f2a4a;
}

.match-poster:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 5;
    border: 2px solid var(--highlight);
}

.poster-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    transition: 0.3s;
}

.match-poster:hover .poster-img {
    opacity: 1;
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 24, 47, 0.95) 0%, rgba(5, 24, 47, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
}

.poster-date {
    font-size: 0.8rem;
    color: var(--highlight);
    font-weight: bold;
    margin-bottom: 5px;
}

.poster-vs {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.1;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.poster-league {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.poster-action {
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.match-poster:hover .poster-action {
    opacity: 1;
    transform: translateY(0);
}

.btn-poster {
    font-size: 0.7rem;
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-poster:hover {
    background: var(--highlight);
    color: var(--primary);
    border-color: var(--highlight);
}

/* Dark Table for Trainings */
.dark-table-wrapper {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.schedule-table.dark-mode {
    color: rgba(255,255,255,0.9);
}

.schedule-table.dark-mode thead th {
    background: rgba(0,0,0,0.2);
    color: var(--highlight);
    border-bottom: 2px solid var(--accent);
}

.schedule-table.dark-mode td {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.schedule-table.dark-mode tr:hover {
    background: rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 992px) {
    .netflix-layout {
        flex-direction: column;
    }
    
    .featured-match {
        width: 100%;
        aspect-ratio: 16/9;
    }
    
    .upcoming-scroll {
        width: 100%;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 576px) {
    .featured-content h3 {
        font-size: 2.5rem;
    }
    
    .upcoming-scroll {
        grid-template-columns: repeat(2, 1fr);
    }
}
