/* Modern Compact Index Styles - pubg-scoreboard */

:root {
    --header-h: 70px;
    --accent-blue: #00a2ff;
    --card-bg: rgba(15, 20, 30, 0.6);
    --border-soft: rgba(255, 255, 255, 0.08);
}

body {
    padding-top: var(--header-h);
    background-color: #04060a;
}

/* Header Refinement */
header {
    height: var(--header-h);
    background: rgba(4, 6, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
}

.header-left { display: flex; align-items: center; gap: 40px; }
.header-logo { height: 32px; width: auto; filter: drop-shadow(0 0 10px rgba(0, 162, 255, 0.3)); }

.main-nav { display: flex; gap: 24px; }
.nav-link { 
    color: #8e99a5; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.85rem; 
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 8px;
}
.nav-link:hover, .nav-link.active { 
    color: #fff; 
    background: rgba(255,255,255,0.05); 
    border-bottom: 2px solid var(--accent-blue);
    border-radius: 8px 8px 0 0;
}

.header-right { display: flex; align-items: center; gap: 15px; }

/* Compact Filter Strip */
.filter-strip {
    background: transparent;
    padding: 40px 5% 20px;
}
.filter-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-wrapper { flex: 1; position: relative; }
.search-wrapper i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); opacity: 0.4; }
.search-wrapper input { 
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-soft);
    padding: 12px 16px 12px 45px;
    font-size: 0.9rem;
    border-radius: 12px;
}
.search-wrapper input:focus { border-color: var(--accent-blue); background: rgba(255,255,255,0.06); }

.select-group { display: flex; align-items: center; background: rgba(255,255,255,0.03); border: 1px solid var(--border-soft); border-radius: 12px; padding: 2px 12px; }
.select-label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: #4a5568; margin-right: 8px; }
.custom-select { background: transparent; border: none; padding: 10px 0; font-size: 0.85rem; font-weight: 600; color: #cbd5e0; cursor: pointer; }

/* Main Content */
.container { max-width: 1400px; margin: 0 auto; padding: 20px 5% 100px; min-height: 60vh; }

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 40px 0 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4a5568;
}
.section-header .line { height: 1px; flex: 1; background: var(--border-soft); }

/* Custom Dropdown System */
.custom-dropdown {
    position: relative;
    min-width: 180px;
}

.dropdown-display {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e0;
    transition: all 0.2s ease;
}
.dropdown-display:hover { border-color: var(--accent-blue); background: rgba(255, 255, 255, 0.06); }
.dropdown-display i { font-size: 0.7rem; transition: transform 0.3s ease; opacity: 0.5; }
.custom-dropdown.active .dropdown-display i { transform: rotate(180deg); opacity: 1; color: var(--accent-blue); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #0d1117;
    border: 1px solid var(--accent-blue);
    border-radius: 12px;
    padding: 8px;
    display: none;
    z-index: 2000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px rgba(0, 162, 255, 0.1);
    max-height: 300px;
    overflow-y: auto;
    animation: dropdownSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-dropdown.active .dropdown-menu { display: block; }

@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    color: #8e99a5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dropdown-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.dropdown-item.selected { background: rgba(0, 162, 255, 0.1); color: var(--accent-blue); font-weight: 700; }

/* Horizontal Compact Cards... */
.tourney-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.tourney-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.tourney-card:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(0, 162, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card-logo-box {
    width: 80px;
    height: 80px;
    background: #ffffff; /* White background for logo visibility */
    border-radius: 12px;
    padding: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}
.card-logo-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.card-content { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-content h2 { font-size: 1.1rem; margin: 0; color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }

.card-meta-inline { display: flex; gap: 20px; align-items: center; }
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 0.65rem; color: #4a5568; text-transform: uppercase; font-weight: 800; letter-spacing: 0.5px; }
.meta-value { font-size: 0.85rem; color: #cbd5e0; font-weight: 600; }
.meta-value.blue { color: var(--accent-blue); }

.card-status-badge {
    position: absolute;
    top: 16px; right: 16px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.badge-ongoing { background: rgba(0, 162, 255, 0.1); color: var(--accent-blue); border: 1px solid rgba(0, 162, 255, 0.2); }
.badge-upcoming { background: rgba(255, 255, 255, 0.05); color: #8e99a5; border: 1px solid var(--border-soft); }
.badge-finished { background: rgba(0, 0, 0, 0.2); color: #4a5568; }

.tier-indicator {
    width: 4px; height: 30px;
    border-radius: 2px;
    position: absolute;
    left: 0; top: 50%; transform: translateY(-50%);
}
.tier-s { background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
.tier-a { background: #f59e0b; }
.tier-b { background: #3b82f6; }
.tier-c { background: #475569; }

/* Responsive */
@media (max-width: 1100px) {
    .tourney-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .filter-container { flex-direction: column; align-items: stretch; }
    .select-group { justify-content: space-between; }
    .header-left { gap: 15px; }
    .main-nav { display: none; }
}

/* Section Transitions */
#tournamentSection, #proTeamsSection {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer Simplification */
footer {
    padding: 60px 5% 40px;
    text-align: center;
    border-top: 1px solid var(--border-soft);
}
.footer-logo { height: 30px; opacity: 0.4; margin-bottom: 30px; }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; }
.footer-links a { color: #4a5568; text-decoration: none; font-size: 0.75rem; font-weight: 700; transition: all 0.2s ease; }
.footer-links a:hover { color: #fff; }
.copyright { font-size: 0.7rem; color: #2d3748; line-height: 1.8; text-transform: uppercase; letter-spacing: 1px; }
