/* Color Palette & Variables */
:root {
    --bg-main: #0B0C10; /* Hitam Pekat */
    --bg-card: #1F2833; /* Biru Donker Tua */
    --accent: #0059FF; /* Biru Neon / Elektrik */
    --accent-glow: rgba(0, 89, 255, 0.5);
    --accent-alt: #45A29E;
    --text-main: #FFFFFF; /* Putih */
    --text-muted: #C5C6C7;
    --border-color: #0059FF;
    --card-border: 1px solid var(--border-color); /* Sesuai instruksi: border tipis biru neon */
    
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .headline, .text-neon {
    font-family: 'Orbitron', sans-serif;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-neon {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 15px auto 0;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-main);
}

.btn-primary:hover {
    background-color: #0046cc;
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: rgba(0, 89, 255, 0.1);
    box-shadow: 0 0 10px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 32px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-full {
    width: 100%;
    display: block;
}

.btn-disabled {
    border-color: #555;
    color: #555;
    cursor: not-allowed;
}

.btn-disabled:hover {
    background-color: transparent;
    box-shadow: none;
    transform: none;
}

.cta-glow {
    box-shadow: 0 0 15px var(--accent-glow);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px var(--accent-glow); }
    50% { box-shadow: 0 0 25px var(--accent); }
    100% { box-shadow: 0 0 10px var(--accent-glow); }
}

/* 1. Header / Navigation Bar */
.header {
    background-color: rgba(11, 12, 16, 0.85);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 89, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--text-main);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    gap: 15px;
}

/* 2. Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    /* Efek abstrak biru neon samar di background */
    background: radial-gradient(circle at 50% 50%, #1F2833 0%, #0B0C10 70%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 89, 255, 0.1) 0%, transparent 50%);
    animation: rotateBg 30s linear infinite;
    z-index: 0;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCI+CjxyZWN0IHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgZmlsbD0ibm9uZSI+PC9yZWN0Pgo8cGF0aCBkPSJNMCAwaDQwdjQwSDB6IiBmaWxsPSJub25lIi8+CjxjaXJjbGUgY3g9IjIwIiBjeT0iMjAiIHI9IjEiIGZpbGw9InJnYmEoMCwgODksIDI1NSwgMC4xNSkiLz4KPC9zdmc+') repeat;
    opacity: 0.6;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 80px; /* Offset header */
}

.headline {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.sub-headline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections General */
.section {
    padding: 100px 0;
}

.section-dark {
    background-color: rgba(31, 40, 51, 0.3);
    border-top: 1px solid rgba(0, 89, 255, 0.1);
    border-bottom: 1px solid rgba(0, 89, 255, 0.1);
}

/* 3. Section: Tournaments (Cards) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-card);
    border: var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 20px rgba(0, 89, 255, 0.05);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 89, 255, 0.2);
    border-color: #45A29E;
}

.card-image {
    position: relative;
    height: 180px;
    border-bottom: 1px solid rgba(0, 89, 255, 0.3);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.card:hover .card-image img {
    opacity: 1;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.badge-open {
    background-color: #2ecc71;
    color: #000;
}

.badge-ongoing {
    background-color: #f1c40f;
    color: #000;
}

.card-content {
    padding: 25px;
}

.game-name {
    font-size: 0.85rem;
    color: var(--accent-alt);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tournament-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.tournament-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    align-items: center;
}

.info-label {
    color: var(--text-muted);
}

.info-value {
    font-weight: 600;
}

/* 4. Section: Matches */
.match-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.match-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(0, 89, 255, 0.2);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.match-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background-color: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.match-card:hover {
    background-color: rgba(31, 40, 51, 0.9);
    border-color: var(--accent);
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0, 89, 255, 0.1);
}

.match-card:hover::after {
    opacity: 1;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 35%;
}

.team-right {
    justify-content: flex-end;
}

.team-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px; /* Slightly square for modern esports feel */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.team-name {
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.team-name:hover {
    color: var(--accent);
    text-shadow: 0 0 5px var(--accent-glow);
}

.match-center {
    width: 30%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.match-round {
    font-size: 0.75rem;
    color: var(--accent-alt);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.match-score {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.match-time {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
}

.match-status {
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.status-done {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
}

.status-upcoming {
    background-color: rgba(0, 89, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 89, 255, 0.3);
}

/* 5. Section: Top Teams Leaderboard */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card);
    border: 1px solid rgba(0, 89, 255, 0.2);
}

.leaderboard-table th, .leaderboard-table td {
    padding: 20px 25px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.leaderboard-table th {
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.leaderboard-table tr {
    transition: background-color 0.2s;
}

.leaderboard-table tr:hover {
    background-color: rgba(0, 89, 255, 0.05);
}

.rank {
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
}

.rank-1 { color: #f1c40f; text-shadow: 0 0 10px rgba(241, 196, 15, 0.3); }
.rank-2 { color: #bdc3c7; }
.rank-3 { color: #cd7f32; }

.team-logo-small {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.team-name-cell {
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.team-name-cell:hover {
    color: var(--accent);
}

.badge-1st { background-color: rgba(241, 196, 15, 0.15); color: #f1c40f; padding: 6px 12px; border-radius: 4px; font-size: 0.8rem; border: 1px solid rgba(241, 196, 15, 0.3); font-weight: bold;}
.badge-2nd { background-color: rgba(189, 195, 199, 0.15); color: #bdc3c7; padding: 6px 12px; border-radius: 4px; font-size: 0.8rem; border: 1px solid rgba(189, 195, 199, 0.3); font-weight: bold;}
.badge-3rd { background-color: rgba(205, 127, 50, 0.15); color: #cd7f32; padding: 6px 12px; border-radius: 4px; font-size: 0.8rem; border: 1px solid rgba(205, 127, 50, 0.3); font-weight: bold;}

/* Footer */
.footer {
    background-color: #050608;
    padding: 50px 0 30px;
    text-align: center;
    border-top: 1px solid rgba(31, 40, 51, 1);
}

.footer .logo {
    margin-bottom: 20px;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 89, 255, 0.15);
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close {
    color: var(--text-muted);
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.close:hover,
.close:focus {
    color: var(--accent);
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--text-main);
}

/* Forms inside Modal */
.custom-form .form-group {
    margin-bottom: 25px;
}

.custom-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.custom-form input,
.custom-form select {
    width: 100%;
    padding: 14px 18px;
    background-color: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.custom-form input:focus,
.custom-form select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(0,0,0,0.6);
    box-shadow: 0 0 0 3px rgba(0, 89, 255, 0.2);
}

.custom-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5C6C7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.custom-form select option {
    background-color: var(--bg-card);
    color: var(--text-main);
}

/* Specific Modal contents */
.team-profile-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.team-logo-large {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
}

.team-roster h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--accent-alt);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-list {
    list-style: none;
}

.player-list li {
    padding: 15px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.02);
}

.player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-info strong {
    font-size: 1.05rem;
}

.player-info span {
    color: var(--accent);
    font-size: 0.85rem;
    background-color: rgba(0, 89, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.tournament-summary {
    background-color: rgba(0, 89, 255, 0.05);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent);
}

.tournament-summary h3 {
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .headline { font-size: 3.5rem; }
    .card-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .headline { font-size: 2.5rem; }
    .sub-headline { font-size: 1rem; }
    .header-container { flex-direction: column; height: auto; padding: 15px 0; gap: 15px; }
    .nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .match-card { flex-direction: column; gap: 20px; padding: 25px; }
    .match-team { width: 100%; justify-content: center; }
    .team-right { flex-direction: row-reverse; }
    .match-center { width: 100%; }
    .team-name { font-size: 1.1rem; }
    .match-score { font-size: 2rem; }
    .leaderboard-table th, .leaderboard-table td { padding: 15px; }
    .section { padding: 60px 0; }
    .modal-content { margin: 10% auto; width: 95%; padding: 25px; }
}
