/* ==========================================================================
   EVERFORGET ARMY - Professional E-Sports Theme CSS
   ========================================================================== */

/* 1. Theme Default & Reset CSS */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Teko:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: normal;
    color: #ffffffc7;
    line-height: 26px;
    background: #0d0a0d; /* Latar gelap khas E-Sport */
}

a, button, .btn {
    transition: all 0.3s ease-out 0s;
    outline: none;
    text-decoration: none;
}

a:hover, button:hover, .btn:hover {
    text-decoration: none;
    outline: none;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Teko', sans-serif;
    color: #fff;
    margin-top: 0px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

h2 { font-size: 35px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }

p { margin-bottom: 15px; }
ul { margin: 0px; padding: 0px; list-style: none; }

/* ScrollUp Button */
#scrollUp {
    background: #ffc010; /* Aksen biru */
    height: 45px;
    width: 45px;
    right: 50px;
    bottom: 77px;
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: .3s;
    z-index: 9999;
}
#scrollUp:hover { background: #000; } /* Aksen merah neon saat dihover */

/* ==========================================================================
   2. Header & Navigation Area
   ========================================================================== */
.logo { min-width: 153px; }
.logo img { width: 100%; max-height: 60px; object-fit: contain; }

.header-three .menu-area {
    position: absolute;
    width: 100%;
    z-index: 99;
    padding-top: 25px;
    background: transparent;
}

.main-menu ul li {
    display: inline-block;
    margin-left: 25px;
    position: relative;
}

.main-menu ul li a {
    display: block;
    color: #fff;
    font-weight: 500;
    padding: 20px 0;
    font-size: 18px;
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.main-menu ul li a:hover, .main-menu ul li a.active {
    color: #ffc010;
}

/* Sticky Nav (Saat di Scroll ke Bawah) */
.sticky-menu {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    background: rgba(13, 10, 13, 0.95);
    z-index: 9999;
    padding-top: 5px;
    padding-bottom: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 300ms ease-in-out;
}

/* Dropdown Sub-Menu */
.main-menu .has-sub > ul {
    display: none;
    position: absolute;
    background-color: #1e191f;
    min-width: 200px;
    z-index: 100;
    margin-top: 0;
    border-top: 3px solid #ffc010;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
}
.main-menu .has-sub:hover > ul { display: block; }
.main-menu .has-sub li { display: block; width: 100%; border-bottom: 1px solid #333; margin: 0; }
.main-menu .has-sub li a { padding: 12px 20px; font-size: 16px; }

/* Social Icons in Header/Top Cart Area */
.cart-top ul li {
    display: inline-block;
    padding: 0 10px;
    border-right: 1px solid #333;
}
.cart-top ul li:last-child { border: none; }
.cart-top ul li a {
    color: #fff;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}
.cart-top ul li a:hover { color: #ffc010; }

/* ==========================================================================
   3. Buttons & CTAs
   ========================================================================== */
.btn.ss-btn {
    border-radius: 4px;
    color: #FFF;
    padding: 15px 30px;
    text-transform: uppercase;
    background: transparent;
    border: 2px solid #ffc010;
    font-family: 'Teko', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn.ss-btn:hover {
    background: #ffc010;
    color: #fff;
    box-shadow: 0 0 15px rgba(15, 114, 229, 0.4);
}
.btn.ss-btn.active {
    background: #ffc010;
    color: #fff;
}

/* ==========================================================================
   4. Hero Slider Area
   ========================================================================== */
.slider-area { position: relative; }
.slider-bg {
    min-height: 800px;
    position: relative;
    z-index: 1;
}
.slider-bg::before { /* Overlay Gelap */
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: -1;
}
.slider-content h2 {
    font-size: 50px;
    color: #fff;
    letter-spacing: 2.5px;
    margin-bottom: 10px;
}
.slider-content h3 {
    font-size: 70px;
    color: #ffc010;
    letter-spacing: 3px;
    margin-bottom: 20px;
}
.slider-content h5 {
    color: #ddd;
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   5. General Section Typography
   ========================================================================== */
.section-title h2 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #fff;
}
.section-title h2 span { color: #ffc010; }
.section-title p { color: #b3b3b3; }

/* ==========================================================================
   6. Video Highlight (TikTok Play Button)
   ========================================================================== */
.s-video-content a img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: transform 0.3s;
}
.s-video-content a:hover img {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 76, 0.6);
}

/* Animasi Denyut (Pulse) */
.pulse-animation {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(15, 114, 229, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(15, 114, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(15, 114, 229, 0); }
}

/* ==========================================================================
   7. Breadcrumb Area (Hero Image Internal Pages)
   ========================================================================== */
.breadcrumb-area {
    min-height: 450px;
    position: relative;
    z-index: 1;
}
.breadcrumb-area::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 10, 13, 0.7);
    z-index: -1;
}
.breadcrumb-title h2 {
    font-size: 60px;
    color: #fff;
    margin-top: 100px;
    margin-bottom: 5px;
}
.breadcrumb-title h3 {
    font-size: 30px;
    color: #ffc010;
}

/* ==========================================================================
   8. Footer Area
   ========================================================================== */
.footer-bg {
    border-top: 1px solid #1e191f;
}
.footer-widget .f-widget-title img {
    max-width: 180px;
}
.footer-social a {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #1e191f;
    color: #fff !important;
    transition: all 0.3s;
}
.footer-social a:hover {
    background: #ffc010;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(15, 114, 229, 0.4);
}

/* ==========================================================================
   9. Roster/Gallery Filter Menu
   ========================================================================== */
.my-masonry .button-group {
    text-align: center;
    margin-bottom: 30px;
}
.my-masonry .button-group button {
    background: transparent;
    color: #fff;
    border: 2px solid #333;
    padding: 8px 20px;
    margin: 5px;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    transform: skewX(-15deg) !important;
}
.my-masonry .button-group button:hover{
    color: #fff;
    border: 2px solid #ffc010;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.4)
}
.my-masonry .button-group button.active {
    background: #ffc010;
    border-color: #ffc010;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.4);
}

.section-hl h2 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #fff;
}
.section-hl h2 span { color: #000000; }
.section-hl p { color: #b3b3b3; }

/* ==========================================================================
   Modifikasi Hover Khusus Gallery Box (Achievement)
   ========================================================================== */

.gallery-box {
    transition: all 0.4s ease;
}

/* Mengubah warna border dan efek glow (neon) menjadi #ffc010 saat di-hover */
.gallery-box:hover {
    transform: translateY(-10px);
    border-color: #ffc010 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 192, 16, 0.4) !important;
}

/* Jika Anda menggunakan icon kaca pembesar (zoom-icon) di pojok atas */
.gallery-box .zoom-icon {
    background: rgba(255, 192, 16, 0.9) !important;
    color: #1e191f !important; /* Warna icon diubah gelap agar kontras dengan kuning */
}

/* Jika Anda menggunakan teks nama turnamen di bagian bawah gambar */
.gallery-box .gallery-overlay-text h4 {
    transition: color 0.3s ease;
}

.gallery-box:hover .gallery-overlay-text h4 {
    color: #ffc010 !important;
}

/* ==========================================================================
   Perbaikan Posisi Badge Region (Roster)
   ========================================================================== */

.player-img-wrapper {
    position: relative !important; /* Mengunci patokan posisi absolut ke elemen ini */
    display: block;
    width: 100%;
    overflow: hidden; /* Mencegah badge keluar dari batas gambar */
}

.region-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important; /* Menarik badge ke dalam sejauh 10px dari tepi kanan gambar */
    z-index: 10;
}


/* ==========================================================================
   Modifikasi Hover Khusus Sponsor Card
   ========================================================================== */

.sponsor-card {
    transition: all 0.4s ease;
}

/* Mengubah warna border dan efek glow menjadi #ffc010 saat di-hover */
.sponsor-card:hover {
    transform: translateY(-10px);
    border-color: #ffc010 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 192, 16, 0.4) !important;
}

/* Memastikan teks nama sponsor juga ikut berubah warna saat di-hover */
.sponsor-card .sponsor-text h4 {
    transition: color 0.3s ease;
}

.sponsor-card:hover .sponsor-text h4 {
    color: #ffc010 !important;
}

/* ==========================================================================
   Nama Pemain Klikable (Direct ke TikTok)
   ========================================================================== */

.player-name {
    font-size: 18px;
    font-weight: 700;
}

.player-name a {
    color: #ffffff; /* Warna teks nama bawaan putih */
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Efek saat cursor diarahkan ke nama pemain */
.player-name a:hover {
    color: #ffc010 !important; /* Berubah menjadi kuning emas */
    text-shadow: 0 0 15px rgba(255, 192, 16, 0.6); /* Efek cahaya (glow) */
    transform: scale(1.05); /* Sedikit membesar */
    
}

/* Memastikan saat kartu di-hover, nama pemain juga ikut berubah warna */
.player-card:hover {
    color: #ffc010;
    transform: translateY(-10px);
    border-color: #ffc010 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 192, 16, 0.4) !important;
}

/* ==========================================================================
   TikTok Badge (Bentuk Kapsul di Kiri Bawah dengan Teks)
   ========================================================================== */

.tiktok-badge {
    position: absolute !important;
    bottom: 0px !important;  /* Pindah ke bawah */
    left: 0px !important; 
    background: rgba(13, 10, 13, 0.9) !important; 
    color: #ffffff !important;
    width: auto !important;   /* Membiarkan lebar memanjang sesuai isi teks */
    height: auto !important;  /* Menyesuaikan tinggi otomatis */
    padding: 1px 4px !important; /* Memberikan ruang di dalam tombol */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important; 
    font-family: monospace !important; /* Memberikan kesan font UI in-game */
    z-index: 10 !important;
    border: 1px solid #333 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

/* Memberi jarak antara logo dan teks username */
.tiktok-badge i {
    margin-right: 6px !important;
    font-size: 14px !important;
}

/* Efek menyala saat badge disorot (hover) */
.tiktok-badge:hover {
    background: #ffc010 !important; 
    color: #151115 !important; 
    border-color: #ffc010 !important;
    box-shadow: 0 0 15px rgba(255, 192, 16, 0.6) !important; 
}

/* Badge ikut menyala terang saat seluruh kartu pemain disorot */
.player-card:hover .tiktok-badge {
    border-color: #555 !important;
}

/* ==========================================================================
   Vector Flag Badge (Bentuk Kotak)
   ========================================================================== */

.region-badge-vector {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 32px !important;   /* Lebar kotak */
    height: 32px !important;  /* Tinggi kotak (sama dengan lebar) */
    z-index: 10 !important;
    border-radius: 6px !important; /* Membuat sudut kotak sedikit tumpul */
    overflow: hidden !important;
    transition: transform 0.3s ease !important;
}

/* Memastikan elemen SVG memenuhi wadah kotaknya */
.region-badge-vector svg {
    display: block;
    width: 100%;
    height: 100%;
}

