/* Leaderboard Styles */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

/* Leaderboard Category Navigation */
.leaderboard-category-nav {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.category-nav-container {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
}

.category-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #cccccc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.category-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-nav-item:hover::before {
    left: 100%;
}

.category-nav-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.category-nav-item.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(120, 119, 198, 0.2));
    border-color: rgba(0, 212, 255, 0.5);
    color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.category-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #7877c6);
}

.category-nav-text {
    position: relative;
    z-index: 1;
}

/* Server Filter Styles */
.server-filter-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.server-filter-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-label i {
    color: #00d4ff;
    font-size: 1rem;
}

.server-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 5px;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: 200px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.server-select:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.server-select option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 0.5rem;
}

.filter-button {
    background: linear-gradient(135deg, #00d4ff, #7877c6);
    border: none;
    border-radius: 5px;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    will-change: transform;
}

.filter-button:hover {
    background: linear-gradient(135deg, #00b8e6, #6a69b8);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.filter-button:active {
    transform: translateY(0);
}

.page-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    font-weight: 300;
}

.leaderboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.no-data {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-data i {
    font-size: 4rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.no-data h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.no-data p {
    color: #cccccc;
    font-size: 1rem;
}

.leaderboard-table-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.leaderboard-table thead {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(120, 119, 198, 0.2));
}

.leaderboard-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sortable column styles */
.leaderboard-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.leaderboard-table th.sortable:hover {
    background: rgba(0, 212, 255, 0.1);
}

.sort-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.sort-link:hover {
    color: inherit;
    text-decoration: none;
}

.sort-indicator {
    margin-left: 0.5rem;
    font-size: 0.7rem;
    transition: color 0.3s ease;
}

.sort-indicator.inactive {
    color: rgba(255, 255, 255, 0.4);
}

.sort-indicator.active {
    color: #00d4ff;
}

.sort-indicator:hover {
    color: #00d4ff;
}

.leaderboard-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.leaderboard-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.1);
    transition: background 0.3s ease;
}

/* Top 3 players styling */
.top-player {
    background: rgba(255, 255, 255, 0.08) !important;
}

.top-player:hover {
    background: rgba(0, 212, 255, 0.15) !important;
}

.rank-1 {
    border-left: 4px solid #ffd700;
}

.rank-2 {
    border-left: 4px solid #c0c0c0;
}

.rank-3 {
    border-left: 4px solid #cd7f32;
}

/* Column widths */
.rank-col { width: 80px; }
.player-col { width: 200px; }
.stats-col { width: 100px; text-align: center; }

/* Rank styling */
.rank-cell {
    text-align: center;
}

.rank-icon {
    font-size: 1.5rem;
}

.rank-icon .gold { color: #ffd700; }
.rank-icon .silver { color: #c0c0c0; }
.rank-icon .bronze { color: #cd7f32; }

.rank-number {
    font-weight: 600;
    color: #cccccc;
}

/* Player info styling */
.player-info {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.steam-id {
    font-size: 0.75rem;
    color: #888888;
    font-family: 'Courier New', monospace;
}

/* Stats styling */
.stats-cell {
    font-weight: 500;
}

.kills { color: #ff6b6b; }
.deaths { color: #4ecdc4; }
.suicides { color: #ffe66d; }
.kd-ratio { color: #a8e6cf; }
.playtime { color: #ffd93d; }
.last-updated { color: #b8b8b8; font-size: 0.8rem; }

/* Leaderboard info */
.leaderboard-info {
    margin-top: 2rem;
    text-align: center;
    color: #888888;
    font-size: 0.9rem;
}

.leaderboard-info p {
    margin: 0.5rem 0;
}

.leaderboard-info i {
    margin-right: 0.5rem;
    color: #00d4ff;
}

/* Responsive design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .leaderboard-category-nav {
        padding: 0 0.5rem;
    }
    
    .category-nav-container {
        gap: 0.25rem;
        padding: 0.25rem;
    }
    
    .category-nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .server-filter-form {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .filter-label {
        justify-content: center;
    }
    
    .server-select {
        min-width: 100%;
        width: 100%;
    }
    
    .filter-button {
        width: 100%;
        justify-content: center;
    }
    
    .leaderboard-table {
        font-size: 0.8rem;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .steam-id {
        display: none;
    }
    
    .player-col { width: 150px; }
    .stats-col { width: 80px; }
}

@media (max-width: 480px) {
    .category-nav-item {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .leaderboard-table {
        font-size: 0.7rem;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .last-updated {
        display: none;
    }
}


/* =========================================================
   Ember (Store / Users / Vote) – PBG theme compatibility
   ---------------------------------------------------------
   The landing page is custom markup, but Ember's store/users
   pages render Vue components with Bootstrap-ish markup.
   These overrides restyle common Bootstrap elements so the
   pages match the .com theme.
   ========================================================= */

.pbg-page-title{
    margin: 10px 0 24px;
    text-align: center;
}
.pbg-page-title h1{
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    text-shadow: 0 0 20px rgba(255, 184, 0, 0.25);
}
.pbg-page-title__line{
    width: 140px;
    height: 3px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, rgba(255,184,0,0.9), transparent);
    border-radius: 999px;
}

.pbg-section{
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 184, 0, 0.18);
    box-shadow: 0 0 30px rgba(0,0,0,0.55);
    border-radius: 16px;
    padding: 22px;
}

/* Keep Bootstrap layout sane inside our wrapper */
.pbg-ember-page .container{ max-width: 100%; padding-left: 15px; padding-right: 15px; }

/* Prevent media from overflowing cards/sections */
.pbg-ember-page img,
.pbg-ember-page svg,
.pbg-ember-page video,
.pbg-ember-page canvas{ max-width: 100%; height: auto; }

/* Cards */
.pbg-ember-page .card{
    /* IMPORTANT: pbg-gaming.com ships a global `.card` used by the 3D carousel
       (position:absolute, fixed width/height, transforms). Ember uses `.card` everywhere.
       Inside Ember pages we must *reset* the carousel card styles back to normal flow. */
    position: relative !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    transform: none !important;
    opacity: 1 !important;
    cursor: default !important;
    transition: none !important;
    display: block !important;

    background: rgba(10,10,10,0.65);
    border: 1px solid rgba(255, 184, 0, 0.18) !important;
    border-radius: 16px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35) !important;
}

/* Also reset common carousel-only elements if Ember happens to use the same class names */
.pbg-ember-page .card-overlay,
.pbg-ember-page .card-overlay-right,
.pbg-ember-page .nav-arrow{
    position: static !important;
    transform: none !important;
}
.pbg-ember-page .card-header{
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255, 184, 0, 0.12) !important;
    color: #fff;
}
.pbg-ember-page .card-title{ color: #fff; }

/* Tables */
.pbg-ember-page table,
.pbg-ember-page .table{
    color: #fff;
}
.pbg-ember-page .table,
.pbg-ember-page table{
    background: rgba(10,10,10,0.45);
    border-radius: 14px;
    overflow: hidden;
}
.pbg-ember-page .table thead th{
    background: rgba(255,255,255,0.03);
    color: #fff;
    border-bottom: 1px solid rgba(255,184,0,0.18);
}
.pbg-ember-page .table td,
.pbg-ember-page .table th{
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Forms */
.pbg-ember-page .form-control,
.pbg-ember-page .custom-select,
.pbg-ember-page select,
.pbg-ember-page input,
.pbg-ember-page textarea{
    background: rgba(10,10,10,0.55) !important;
    border: 1px solid rgba(255,184,0,0.18) !important;
    color: #fff !important;
    border-radius: 12px !important;
}
.pbg-ember-page .form-control:focus,
.pbg-ember-page .custom-select:focus,
.pbg-ember-page select:focus,
.pbg-ember-page input:focus,
.pbg-ember-page textarea:focus{
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,184,0,0.12) !important;
}

/* Buttons */
.pbg-ember-page .btn{
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.pbg-ember-page .btn-primary,
.pbg-ember-page .btn-success{
    background: linear-gradient(90deg, #ffb800, #ff7a00) !important;
    border: none !important;
    color: #000 !important;
}
.pbg-ember-page .btn-outline-primary,
.pbg-ember-page .btn-outline-custom,
.pbg-ember-page .btn-outline-secondary{
    background: transparent !important;
    border: 1px solid rgba(255,184,0,0.55) !important;
    color: #fff !important;
}
.pbg-ember-page .btn-outline-primary:hover,
.pbg-ember-page .btn-outline-custom:hover,
.pbg-ember-page .btn-outline-secondary:hover{
    background: rgba(255,184,0,0.12) !important;
}

/* Navbars / tabs used by Ember's BaseNavbar + store filters */
.pbg-ember-page .navbar,
.pbg-ember-page .nav,
.pbg-ember-page .nav-tabs{
    background: rgba(10,10,10,0.55);
    border: 1px solid rgba(255,184,0,0.18);
    border-radius: 16px;
}
.pbg-ember-page .nav-link{
    color: #fff !important;
    border-radius: 999px;
}
.pbg-ember-page .nav-link.active,
.pbg-ember-page .nav-item.show .nav-link{
    background: rgba(255,184,0,0.18) !important;
    color: #fff !important;
}

/* Store / Users components often put content on white panels */
.pbg-ember-page .bg-white,
.pbg-ember-page .text-dark{ color: #fff !important; }





/* =====================================================================
   Landing page tweaks (UK)
   - Make the server carousel slightly smaller so it fits the viewport
   - Add styling for Discord / Team sections restored from Ember landing
   ===================================================================== */

/* Smaller carousel cards than .com (but keep the same look) */
.carousel-section .carousel-container{
    max-width: 1050px;
    height: 390px;
    margin-top: 85px;
}
.carousel-section .card{
    width: 470px;
    min-height: 320px;
    max-height: 400px;
}
.carousel-section .carousel-placeholder{
    height: 320px !important;
    max-height: 320px;
}

@media (max-width: 900px){
    .carousel-section .carousel-container{ height: 330px; margin-top: 60px; }
    .carousel-section .card{ width: 380px; min-height: 270px; }
    .carousel-section .carousel-placeholder{ height: 270px !important; }
}
@media (max-width: 520px){
    .carousel-section .carousel-container{ height: 300px; margin-top: 55px; }
    .carousel-section .card{ width: 320px; min-height: 240px; }
    .carousel-section .carousel-placeholder{ height: 240px !important; }
}

/* Section title used for Community / Discord / Staff */
.pbg-section-title{
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(22px, 3vw, 36px);
    text-align: center;
    margin: 10px 0 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fff, #cfcfcf 45%, #8b8b8b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 18px rgba(255,255,255,0.25);
}

.pbg-landing-block{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Discord embed container */
.pbg-discord-wrap{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.pbg-discord-widget{
    width: min(520px, 92vw);
    height: min(360px, 55vh);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,184,0,0.18);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    background: rgba(0,0,0,0.35);
}

/* Team grid */
.pbg-team-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    padding-bottom: 20px;
}
.pbg-team-card{
    display: grid;
    grid-template-rows: 170px auto;
    text-decoration: none;
    color: inherit;
    background: rgba(10,10,10,0.55);
    border: 1px solid rgba(255,184,0,0.18);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    transition: transform .2s ease, box-shadow .2s ease;
}
.pbg-team-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(0,0,0,0.45);
}
.pbg-team-img{ position: relative; }
.pbg-team-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pbg-team-meta{
    padding: 14px 16px 16px;
    text-align: center;
}
.pbg-team-name{
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.pbg-team-role{
    margin-top: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
}
.pbg-team-role i{ margin-right: 6px; }
.pbg-team-sep{ margin: 0 8px; color: rgba(255,255,255,0.35); }
.pbg-team-server{ color: rgba(255,255,255,0.65); }
