/* 
=======================================
            RESET & VARIABLES
=======================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00f7ff;
    --primary-glow: rgba(0, 247, 255, 0.5);
    --dark: #1b1b1b;
    --darker: #111;
    --light-dark: #2a2a2a;
    --border: #333;
    --text: #fff;
    --text-muted: #aaa;
    --gradient-dark: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 100%);
    --gradient-black: linear-gradient(90deg, #000, #1a1a1a);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 5px 20px rgba(0, 247, 255, 0.2);
}

/* 
=======================================
            GLOBAL STYLES
=======================================
*/
body {
    font-family: 'Orbitron', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('../img/Fifa-world-cup.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    z-index: 0;
}
/* Overlay hitam pada body */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Overlay hitam dengan opacity 75% */
    z-index: -1;
    pointer-events: none; /* Supaya tidak mengganggu interaksi */
}

/* Pastikan konten tetap di atas overlay */
body > * {
    position: relative;
    z-index: 1;
}
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}



/* 
=======================================
            JADWAL SECTION
=======================================
*/
.jadwal {
    padding: 30px 0;
    position: relative;
    background: transparent;
    overflow: hidden;
}




.jadwal .container {
    position: relative;
    z-index: 2;
}

.jadwal h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #00f7ff;
    text-shadow: 0 0 15px rgba(0,247,255,0.7);
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.jadwal h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00f7ff, transparent);
    margin: 15px auto 0;
}

.jadwal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.match-card {
    background: rgba(217, 217, 217, 0.3);
    backdrop-filter: blur(5px);
    color: #000;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.match-card:hover::before {
    left: 100%;
}

.match-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #00f7ff;
    box-shadow: 0 10px 30px rgba(0, 247, 255, 0.3);
    background: rgba(217, 217, 217, 0.4);
}

.match-header {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: yellow;
    position: relative;
    z-index: 1;
}

.match-header small {
    color: #fff;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.match-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.team-left, .team-right {
    flex: 0 0 auto;
    width: 80px;
    display: flex;
}

.team-logo {
    width: 80px;
    justify-content: top;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

.team-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.match-info-center {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.match-time {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.75rem;
    background: orange;
    padding: 5px 10px;
    border-radius: 7px;
    display: inline-block;
}

.match-stadium {
    margin-bottom: 5px;
    font-size: 0.75rem;
    color: #C7C7C7;
    font-style: italic;
}

.match-score h3 {
    margin-top: 8px;
    font-size: 1.5rem;
    color: #00f7ff;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* 
=======================================
            KLASEMEN SECTION
=======================================
*/
.klasemen-section {
    padding: 50px 0;
    background: #000;
}

.klasemen-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    letter-spacing: 1px;
}

.klasemen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.group-card {
    background: var(--light-dark);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.group-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.group-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.group-table {
    width: 100%;
    border-collapse: collapse;
}

.group-table th,
.group-table td {
    padding: 6px 3px;
    text-align: center;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.group-table th {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: normal;
    text-transform: uppercase;
}

.group-table td {
    color: var(--text);
}

.group-table tr:hover td {
    background: rgba(0, 247, 255, 0.1);
}

/* 
=======================================
            FOOTER
=======================================
*/
footer {
    text-align: center;
    padding: 20px;
    background: var(--darker);
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 
=======================================
            RESPONSIVE DESIGN
=======================================
*/

/* Desktop Large */
@media (max-width: 1200px) {
    .hero-left {
        max-width: 300px;
    }
    
    .hero-right {
        max-width: 350px;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .hero-main-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-left,
    .hero-center,
    .hero-right {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-center {
        order: -1;
    }
    
    .player-card,
    .hero-center,
    .news-box {
        height: auto;
        min-height: 300px;
    }
    
    .jadwal-grid,
    .klasemen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider-item {
        width: 250px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .hero {
        padding: 30px 0;
    }
    
    .hero-center h1 {
        font-size: 1.5rem;
    }
    
    .player-info-desktop p {
        font-size: 0.9rem;
    }
    
    .slider-item {
        width: 230px;
    }
    
    .team-mini img {
        width: 40px;
        height: 40px;
    }
    

    
    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .menu a {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
}

/* 
=======================================
            MOBILE VERSION (max-width: 480px)
            DENGAN PRIORITAS TINGGI !important
=======================================
*/
@media (max-width: 760px) {

    /* =========================
       HERO SECTION
    ========================= */

    .hero-main-content {
        flex-direction: column;
        gap: 25px;
    }

    /* FOTO DI ATAS */
    .hero-left {
        order: 1;
        width: 100%;
        max-width: 100%;
    }

    .player-card {
        padding: 15px;
        text-align: center;
    }

    .player-image {
        width: 100%;
        max-width: 220px;
        margin: 0 auto 15px;
    }

    /* BIODATA DI BAWAH FOTO */
    .hero-center {
        order: 2;
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 20px;
        text-align: center;
    }

    .hero-center h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .player-info-desktop p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .player-info-desktop strong {
        display: inline;
        min-width: auto;
    }

    /* BERITA PALING BAWAH */
    .hero-right {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .news-box {
        height: auto;
        max-height: none;
    }

    /* =========================
       JADWAL SECTION
       1 CARD = 1 BARIS
    ========================= */

    .jadwal-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .match-card {
        width: 100%;
        padding: 10px;
    }

    .match-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .team-logo {
        width: 80px;
        justify-content: top;
    }

    .match-time {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .match-stadium {
        font-size: 0.75rem;
    }

    .match-score h3 {
        font-size: 1.2rem;
    }

    /* =========================
       KLASEMEN SECTION
       1 GROUP = 1 BARIS
    ========================= */

    .klasemen-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .group-card {
        width: 100%;
        padding: 15px;
        overflow-x: auto;
    }

    .group-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .group-table {
        min-width: 100%;
    }

    .group-table th,
    .group-table td {
        font-size: 0.75rem;
        padding: 6px 4px;
        white-space: nowrap;
    }

    /* Section Title */
    .jadwal h2,
    .klasemen-section h2 {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
}
/* 
=======================================
            HERO SECTION - UPDATED
=======================================
*/
.hero {
    position: relative;
    width: 100%;
    min-height: auto;
    background: transparent;
    padding: 40px 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-main-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

/* Left Section - Latest News (25%) */
.hero-left {
    flex: 1;
    max-width: 25%;
}

/* Center Section (50%) */
.hero-center {
    flex: 2;
    max-width: 50%;
    padding: 25px;
    background-image: url('../img/stadiumbg.jpg');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Right Section - Team Profiles (25%) */
.hero-right {
    flex: 1;
    max-width: 25%;
}

/* News Box Styling */
.news-box {
    background: rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 600px;
}

.news-box h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-box h3 i {
    color: var(--primary);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
}

.news-list::-webkit-scrollbar {
    width: 4px;
}

.news-list::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 10px;
}

.news-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.news-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.news-item:hover {
    background: rgba(0, 247, 255, 0.1);
    transform: translateX(3px);
}

.thumb {
    width: 70px;
    height: 50px;
    background: linear-gradient(45deg, #444, #333);
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.thumb::after {
    content: "📰";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    opacity: 0.5;
}

.news-content {
    flex: 1;
}

.news-content h4 {
    color: var(--text);
    font-size: 0.85rem;
    margin-bottom: 3px;
    transition: color 0.2s ease;
}

.news-item:hover .news-content h4 {
    color: var(--primary);
}

.news-content p {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Center Content Styling */
.featured-content h1 {
    font-size: 2rem;
    line-height: 1.3;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    margin-bottom: 15px;
    text-align: center;
}

.featured-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 15px 0;
}

.tournament-info {
    margin: 20px 0;
}

.info-item {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #ddd;
}

.info-item i {
    color: var(--primary);
    width: 25px;
    font-size: 1.2rem;
}

.info-item strong {
    color: var(--primary);
    margin-right: 5px;
}

.countdown-timer {
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    background: rgba(0, 247, 255, 0.1);
    border-radius: 15px;
    border: 1px solid var(--primary);
}

.countdown-timer h3 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 10px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.countdown-item span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.countdown-item:first-child {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Team Profiles Box */
.team-profiles-box {
    background: rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    
    height: 600px;
    display: flex;
    flex-direction: column;
}

.team-profiles-box h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-profiles-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
}

.team-profiles-list::-webkit-scrollbar {
    width: 4px;
}

.team-profiles-list::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 10px;
}

.team-profiles-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.team-profile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.team-profile-item:hover {
    background: rgba(0, 247, 255, 0.1);
    transform: translateX(3px);
}

.team-logo-small {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 5px;
}

.team-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-info h4 {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 3px;
    transition: color 0.2s ease;
}

.team-profile-item:hover .team-info h4 {
    color: var(--primary);
}

.team-info p {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-main-content {
        flex-wrap: wrap;
    }
    
    .hero-left,
    .hero-center,
    .hero-right {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-center {
        order: -1;
    }
    
    .news-box,
    .team-profiles-box {
        height: auto;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 30px 0;
    }
    
    .featured-content h1 {
        font-size: 1.5rem;
    }
    
    .countdown {
        flex-wrap: wrap;
    }
    
    .countdown-item {
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .hero-main-content {
        flex-direction: column;
    }
    
    .hero-left {
        order: 2;
    }
    
    .hero-center {
        order: 1;
    }
    
    .hero-right {
        order: 3;
    }
    
    .info-item {
        font-size: 0.9rem;
    }
    
    .countdown-item:first-child {
        font-size: 1.2rem;
    }
}

/* Style untuk kartu pertandingan yang sudah selesai */
.match-card.match-finished {
    background-color: #2d2d2d; /* lebih gelap */
    opacity: 0.9;
}

/* Sembunyikan waktu dan stadion untuk pertandingan selesai */
.match-card.match-finished .match-time,
.match-card.match-finished .match-stadium {
    display: none;
}

/* Efek grayscale untuk tim yang kalah */
.team-logo.team-loser {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Hover effect untuk tim yang kalah (opsional) */
.team-logo.team-loser:hover {
    filter: grayscale(50%);
    opacity: 0.9;
}