/**
 * Dashboard Dark Theme Stylesheet
 * Inspired by modern gaming dashboard design
 */

/* HeadlinerNo45 Font */
@font-face {
    font-family: 'HeadlinerNo45';
    src: url('../fonts/HeadlinerNo45.woff2') format('woff2'),
         url('../fonts/HeadlinerNo45.woff') format('woff'),
         url('../fonts/HeadlinerNo45.ttf') format('truetype'),
         url('../fonts/HeadlinerNo45.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Apply HeadlinerNo45 to all header tags */
h1, h2, h3, h4, h5, h6 {
    font-family: 'HeadlinerNo45', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --bg-tertiary: #2d2d2d;
    --bg-sidebar: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --accent-orange: #ff6b35;
    --accent-orange-hover: #ff8555;
    --accent-purple: #5865f2;
    --border-color: #333333;
    --hover-bg: #2a2a2a;
    --active-bg: #333333;
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: transparent;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.dashboard-page {
    background-color: var(--bg-primary);
}

/* Login Page Styles */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-background video,
.login-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.login-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-header {
    text-align: center;
    margin-bottom: 60px;
}

.login-title-subheader {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px 0;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-title-main {
    font-size: 72px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    letter-spacing: 8px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-family: 'HeadlinerNo45', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.1;
}

.login-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 400px;
}

.discord-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.discord-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.discord-login-btn:hover::before {
    left: 100%;
}

.discord-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 1);
}

.discord-login-btn:active {
    transform: translateY(0);
}

.discord-login-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Dashboard Layout */
.dashboard-page {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-orange);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.user-handle {
    color: var(--text-secondary);
    font-size: 12px;
}

.sidebar-search {
    position: relative;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.5);
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.search-shortcut {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 11px;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    padding: 2px 6px;
    border-radius: 4px;
}

.sidebar-nav {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.nav-item:hover {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(40, 40, 40, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    color: var(--text-primary);
    border-left: 3px solid var(--accent-orange);
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(15px) saturate(180%);
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
}

.nav-item.active .nav-icon {
    background: var(--accent-orange);
}

.sidebar-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-toggle {
    cursor: pointer;
    color: var(--text-secondary);
}

.club-list {
    display: flex;
    flex-direction: column;
}

.club-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.club-item:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.club-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 12px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.footer-link:hover {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    color: var(--text-primary);
}

.footer-icon {
    width: 20px;
    text-align: center;
}

.discord-invite {
    background: var(--accent-purple);
    color: white;
    margin: 8px 12px;
    border-radius: 8px;
    padding: 12px 16px;
}

.discord-invite:hover {
    background: #4752c4;
    color: white;
}

.discord-logo {
    width: 20px;
    height: 20px;
    margin-left: auto;
}

.logout-link {
    color: #ff4444;
}

.logout-link:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #ff6666;
}

/* Main Content Area */
.main-content {
    margin-left: 280px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header Styles */
.main-header {
    background: transparent;
    border-bottom: none;
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.leaderboard-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

.timer-value {
    color: var(--accent-orange);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Dashboard Wrapper */
.dashboard-wrapper {
    display: flex;
    gap: 24px;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 24px;
    padding-right: 344px; /* Account for news feed width (320px) + gap (24px) */
}

/* Dashboard Container */
.dashboard-container {
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below content size */
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Main Body Title */
.main-body-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    text-align: left;
}

/* PUBG Background Image Section */
.title-section {
    position: fixed;
    top: 0;
    left: 280px; /* Start after sidebar */
    width: calc(100% - 280px - 320px); /* Full width minus sidebar and news feed */
    height: 100vh;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.title-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.title-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.25);
}

.title-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.title-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 26, 26, 0.2) 40%, rgba(26, 26, 26, 0.5) 60%, rgba(26, 26, 26, 0.8) 80%, var(--bg-primary) 100%);
    z-index: 2;
    pointer-events: none;
}

.pubg-title {
    position: relative;
    z-index: 3;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    margin: 0;
    padding-top: 20px;
    pointer-events: auto;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(88, 101, 242, 0.08) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><path d="M0,200 Q300,100 600,200 T1200,200" stroke="rgba(255,107,53,0.1)" fill="none" stroke-width="2"/></svg>') no-repeat center;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bookmark-btn {
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(10px) saturate(180%);
    color: var(--text-primary);
    width: 44px;
    padding: 10px;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upgrade-btn,
.edit-btn {
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(10px) saturate(180%);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.invite-btn {
    background: var(--accent-orange);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.invite-btn:hover {
    background: var(--accent-orange-hover);
}

/* Filters Section */
.filters-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    padding: 16px;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.filters-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.stat-tabs {
    display: flex;
    gap: 8px;
}

.stat-tab {
    padding: 8px 16px;
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.stat-tab:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.stat-tab.active {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

.time-filters {
    display: flex;
    gap: 8px;
}

.time-filter {
    padding: 8px 16px;
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-filter:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.time-filter.active {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

.dropdown-arrow {
    font-size: 10px;
    opacity: 0.7;
}

.show-place-btn {
    padding: 8px 20px;
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.show-place-btn:hover {
    background: var(--hover-bg);
    border-color: var(--accent-orange);
}

.date-range-display {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.date-range-display i {
    color: var(--text-muted);
}

/* Top Players Section */
.top-players-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.player-card {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: all 0.2s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.player-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 107, 53, 0.5);
    background: rgba(25, 25, 25, 0.5);
}

.player-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-orange);
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.player-name {
    font-size: 18px;
    font-weight: 600;
}

.player-rank {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

.rank-icon {
    font-size: 16px;
}

.player-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-stats[style*="display: flex"] {
    flex-direction: row;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    color: var(--text-primary);
    font-weight: 600;
}

.player-rank-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.player-rank-number.gold {
    color: #FFD700;
}

.player-rank-number.silver {
    color: #C0C0C0;
}

.player-rank-number.bronze {
    color: #CD7F32;
}

/* Leaderboard Table */
.leaderboard-section {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table thead {
    background: rgba(25, 25, 25, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
}

.leaderboard-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.leaderboard-table tbody tr {
    transition: background 0.2s;
}

.leaderboard-table tbody tr:hover {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(10px) saturate(180%);
}

.leaderboard-table tbody tr:last-child td {
    border-bottom: none;
}

.table-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-player img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.table-player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.table-player-info .player-name {
    font-weight: 600;
    color: var(--text-primary);
}

.table-player-info .player-gamertag {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.rank-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.rank-badge.challenger {
    background: rgba(255, 215, 0, 0.15);
    backdrop-filter: blur(10px) saturate(180%);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.rank-badge.grandmaster {
    background: rgba(255, 107, 53, 0.15);
    backdrop-filter: blur(10px) saturate(180%);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.rank-badge.master {
    background: rgba(138, 43, 226, 0.15);
    backdrop-filter: blur(10px) saturate(180%);
    color: #8a2be2;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.rank-badge.gold {
    background: rgba(255, 215, 0, 0.15);
    backdrop-filter: blur(10px) saturate(180%);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* News Feed */
.news-feed {
    width: 320px;
    min-width: 320px;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.4);
}

.news-feed-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-feed-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.news-feed-content {
    flex: 1;
}

.news-item {
    padding: 16px;
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 12px;
}

.news-placeholder {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    text-align: center;
    padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .news-feed {
        width: 280px;
        min-width: 280px;
    }
    
    .dashboard-wrapper {
        padding-right: 304px; /* Account for news feed width (280px) + gap (24px) */
    }
    
    .title-section {
        width: calc(100% - 280px - 280px); /* Full width minus sidebar and news feed */
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
    
    .title-section {
        left: 240px;
        width: calc(100% - 240px);
    }
    
    .dashboard-wrapper {
        flex-direction: column;
        padding: 20px;
        padding-right: 20px; /* Reset padding on mobile */
    }
    
    .news-feed {
        width: 100%;
        min-width: 100%;
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        border-left: none;
        border-top: 1px solid rgba(51, 51, 51, 0.5);
        border-radius: 0;
        box-shadow: none;
        order: -1; /* Show news feed above on mobile */
    }
    
    .top-players-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .dashboard-wrapper {
        padding: 16px;
        gap: 16px;
    }
    
    .main-body-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .title-section {
        left: 0;
        width: 100%;
        height: 100vh;
    }
    
    .dashboard-wrapper {
        padding-right: 16px; /* Reset padding on mobile */
    }
    
    .news-feed {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
    }
    
    .pubg-title {
        font-size: 32px;
    }
    
    .filters-section-row {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }
    
    .filters-right {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .time-filters {
        flex-wrap: wrap;
    }
    
    .stat-tabs {
        flex-wrap: wrap;
    }
    
    .top-players-section {
        gap: 16px;
    }
    
    .player-card {
        padding: 16px;
    }
    
    .player-stats {
        flex-wrap: wrap;
        gap: 12px !important;
    }
    
    .stat-item {
        min-width: 60px;
    }
    
    .leaderboard-section {
        overflow-x: auto;
    }
    
    .leaderboard-table {
        font-size: 12px;
        min-width: 600px;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px 8px;
    }
    
    .news-feed {
        padding: 16px;
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
    }
    
    .news-feed-header h2 {
        font-size: 1.1rem;
    }
    
    /* Login Page Mobile Styles */
    .login-container {
        max-width: 100%;
        padding: 16px;
    }
    
    .login-title-main {
        font-size: 48px;
        letter-spacing: 4px;
    }
    
    .login-title-subheader {
        font-size: 18px;
    }
    
    .discord-login-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .dashboard-wrapper {
        padding: 12px;
        padding-right: 12px; /* Reset padding on small mobile */
    }
    
    .main-body-title {
        font-size: 1.25rem;
    }
    
    .filters-section-row {
        padding: 10px;
    }
    
    .stat-tab,
    .time-filter,
    .show-place-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .player-card {
        padding: 12px;
    }
    
    .player-avatar {
        width: 48px;
        height: 48px;
    }
    
    .player-name {
        font-size: 16px;
    }
    
    .player-rank-number {
        font-size: 36px;
        top: 12px;
        right: 12px;
    }
    
    .news-feed {
        padding: 12px;
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
    }
}

/* Fetch Results */
.fetch-results {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 20, 20, 0.2);
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb {
    background: rgba(60, 60, 60, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(80, 80, 80, 0.6);
}
