/* ========================================
   BACKGROUND CONFIGURATION
   Easy customization - Change these values:
   ======================================== */
:root {
    /* Background Image URL - Change to any image URL */
    --bg-image: url('../images/pubg-bg.jpg');
    
    /* Background Opacity - 0.0 (invisible) to 1.0 (fully visible) */
    --bg-opacity: 0.35;
    
    /* Gradient Overlay Colors - Use darker, more neutral tones to reduce blue filter */
    --gradient-start: #0a0a0a;
    --gradient-middle: #1a1a1a;
    --gradient-end: #0f0f0f;
}
/* ======================================== */

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
    background-attachment: fixed;
    background-size: cover;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: var(--bg-opacity);
    z-index: -1;
}

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

/* Header */
header {
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.95) 0%, rgba(25, 25, 35, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(76, 175, 80, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 20px;
    flex-wrap: nowrap;
    gap: 1rem;
}

.nav-content {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo h1 img {
    filter: drop-shadow(0 2px 8px rgba(76, 175, 80, 0.4));
    transition: transform 0.3s ease;
}

.logo h1 a:hover img {
    transform: scale(1.05);
}

nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #c8c8c8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4CAF50, transparent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

/* Disable underline for dropdown parent items */
.nav-menu > li.has-dropdown > a::before {
    display: none;
}

.nav-menu a:hover {
    color: #fff;
    background: rgba(76, 175, 80, 0.08);
}

.nav-menu a:hover::before {
    width: 80%;
}

.nav-menu a.active {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.12);
    font-weight: 600;
}

.nav-menu a.active::before {
    width: 80%;
}

/* Mega Menu - Dropdown Navigation */
.nav-menu > li {
    position: relative;
}

.nav-menu > li.has-dropdown > a::after {
    content: '▼';
    font-size: 0.65rem;
    margin-left: auto;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-menu > li.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98) 0%, rgba(30, 30, 40, 0.98) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 8px;
    padding: 0.75rem 0;
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(76, 175, 80, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    pointer-events: none;
}

.nav-menu > li.has-dropdown:hover .dropdown-menu,
.nav-menu > li.has-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
    pointer-events: auto;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: #c8c8c8;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a .icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    display: inline-block;
}

/* Icon in top-level menu items */
.nav-menu > li > a .icon {
    font-size: 1rem;
    display: inline-block;
    flex-shrink: 0;
}

.dropdown-menu a:hover {
    background: rgba(76, 175, 80, 0.12);
    color: #fff;
    border-left-color: #4CAF50;
    padding-left: 1.5rem;
}

.dropdown-menu a.active {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border-left-color: #4CAF50;
    font-weight: 600;
}

.dropdown-menu a::before {
    display: none;
}

/* Dropdown divider */
.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 1rem;
}

/* Authentication Styles - Desktop */
.auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.auth-buttons .btn {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    line-height: 1;
}

.auth-buttons .btn-login {
    color: #4CAF50;
    border: none;
    background: transparent;
}

.auth-buttons .btn-login:hover {
    background: transparent;
    color: #4CAF50;
    opacity: 0.8;
}

.auth-buttons .btn-login:focus {
    outline: none;
    box-shadow: none;
}

.auth-buttons .btn-register {
    background: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}

.auth-buttons .btn-register:hover {
    background: #45a049;
}

.user-menu {
    display: none;
    position: relative;
}

.user-menu.active {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(42, 42, 42, 0.5);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 6px;
    color: #4CAF50;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.user-menu-toggle:hover {
    background: #333;
    border-color: #45a049;
}

.user-menu-toggle .user-icon {
    font-size: 1.2rem;
}

.user-menu-toggle .user-name {
    font-weight: 500;
}

.user-menu-toggle .dropdown-arrow {
    margin-left: 0.25rem;
    transition: transform 0.2s;
}

.user-menu.open .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: rgba(20, 20, 25, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    z-index: 10000;
}

.user-menu.open .user-dropdown {
    display: block;
}

.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    color: #e0e0e0;
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: #333;
    color: #4CAF50;
}

.user-dropdown .dropdown-divider {
    height: 1px;
    background: #444;
    margin: 0.5rem 0;
}

.user-dropdown .user-role {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    border-bottom: 1px solid #444;
}

.user-dropdown .admin-badge {
    color: #ff9800;
    font-weight: 600;
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: #fff;
    margin: 0 auto;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-box {
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content Section */
.content-section {
    margin: 3rem 0;
}

.content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.content-section p {
    color: #c0c0c0;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Navigation Cards */
.navigation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.nav-card {
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-card h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.nav-card p {
    color: #c0c0c0;
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Standings Section */
.standings-section {
    margin: 2rem 0;
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border-collapse: collapse;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.standings-table thead {
    background-color: #0a0a0a;
}

.standings-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: #d0d0d0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #1a1a1a;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.standings-table td {
    padding: 1rem;
    border-bottom: 1px solid #1a1a1a;
    color: #f0f0f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

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

.standings-table tbody tr:hover {
    background-color: #1a1a1a;
}

.rank-col {
    width: 50px;
    text-align: center !important;
    font-weight: 600;
}

.team-col {
    font-weight: 500;
}

.team-col strong {
    color: #fff;
}

.positive {
    color: #4caf50;
}

.negative {
    color: #f44336;
}

/* Filter Section */
.filter-section {
    margin: 2rem 0;
    padding: 1rem;
    background-color: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.filter-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-group label {
    color: #d0d0d0;
    font-size: 0.9rem;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    font-weight: 600;
}

.filter-group select,
input[type="text"],
textarea {
    padding: 0.5rem 1rem;
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(5px);
    color: #f0f0f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 180px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

input[type="text"],
textarea {
    width: 100%;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

textarea {
    resize: vertical;
    cursor: text;
    min-width: auto;
}

.filter-group select:focus,
input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: rgba(79, 195, 247, 0.5);
    background-color: rgba(20, 20, 20, 0.8);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.filter-group select:hover,
input[type="text"]:hover,
textarea:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(20, 20, 20, 0.8);
}

.filter-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 0.5rem;
}

.filter-group input[type="checkbox"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.filter-group label:has(input[type="checkbox"]:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

.apply-button {
    padding: 0.5rem 2rem;
    background-color: rgba(30, 100, 200, 0.8);
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-button:hover {
    background-color: rgba(40, 120, 220, 0.9);
    border-color: rgba(100, 150, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 100, 200, 0.4);
}

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

/* Member of the Week Styles */
.member-of-week-section {
    margin-bottom: 2rem;
}

.member-of-week-header {
    text-align: center;
    margin-bottom: 2rem;
}

.member-of-week-header h2 {
    font-size: 2rem;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin-bottom: 0.5rem;
}

.week-info {
    color: #a0a0a0;
    font-size: 1rem;
}

.date-range {
    font-size: 0.9rem;
    color: #808080;
}

.member-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.member-card {
    background: rgba(30, 30, 30, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.category-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

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

.badge-text {
    font-weight: bold;
    color: #FFD700;
    font-size: 1.1rem;
}

.winner-info {
    text-align: center;
}

.player-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.player-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.player-name a:hover {
    color: #66BB6A;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #FFD700;
}

.no-winner {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-style: italic;
}

.weekly-leaderboards {
    margin-top: 2rem;
}

.weekly-leaderboards h3 {
    text-align: center;
    font-size: 1.5rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
}

.leaderboard-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.leaderboard-column h4 {
    text-align: center;
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.leaderboard-table {
    width: 100%;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 8px;
    overflow: hidden;
}

.leaderboard-table thead {
    background: rgba(76, 175, 80, 0.2);
}

.leaderboard-table th {
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #4CAF50;
    text-align: left;
}

.leaderboard-table td {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table tr:hover {
    background: rgba(76, 175, 80, 0.1);
}

.leaderboard-table .first-place {
    background: rgba(255, 215, 0, 0.1);
    font-weight: bold;
}

.leaderboard-table .first-place td {
    color: #FFD700;
}

.leaderboard-table a {
    color: inherit;
    text-decoration: none;
}

.leaderboard-table a:hover {
    color: #4CAF50;
}

.loading, .error {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-style: italic;
}

.error {
    color: #ff6b6b;
}

/* Footer */
footer {
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.5);
}

footer p {
    color: #999;
    font-size: 0.85rem;
}

/* Player Stats Page */
.last-update {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.info-section {
    margin: 3rem 0;
    position: relative;
}

/* Tooltip icon for info sections */
.info-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    cursor: help;
    font-size: 0.6em;
    vertical-align: middle;
    transition: transform 0.2s ease, opacity 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    opacity: 0.65;
}

.info-tooltip:hover {
    transform: scale(1.2);
    opacity: 1;
}

/* Adjust size when inside headings */
h2 .info-tooltip {
    font-size: 0.5em;
    margin-left: 12px;
}

h3 .info-tooltip {
    font-size: 0.55em;
    margin-left: 10px;
}

.info-tooltip-content {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 420px;
    max-width: 560px;
    background: rgba(20, 20, 30, 0.99);
    border: 2px solid rgba(76, 175, 80, 0.6);
    border-radius: 12px;
    padding: 26px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.95), 0 0 2px rgba(76, 175, 80, 0.4), 0 0 20px rgba(76, 175, 80, 0.15);
    z-index: 99999;
    pointer-events: none;
    white-space: normal;
    text-align: left;
    backdrop-filter: blur(12px);
}

.info-tooltip:hover .info-tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-6px);
}

.info-tooltip-content h4 {
    color: #5bc95b;
    margin: 0 0 14px 0;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
    padding-bottom: 8px;
}

.info-tooltip-content p {
    margin: 12px 0;
    color: #d5d5d5;
    font-size: 0.92rem;
    line-height: 1.65;
}

.info-tooltip-content p:first-of-type {
    margin-top: 0;
}

.info-tooltip-content p:last-of-type {
    margin-bottom: 0;
}

.info-tooltip-content strong {
    color: #ffffff;
    font-weight: 600;
}

/* Arrow indicator for tooltip */
.info-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(76, 175, 80, 0.5);
}

/* Inner arrow for better visual effect */
.info-tooltip-content::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(20, 20, 30, 0.98);
    z-index: 1;
    margin-top: -1px;
}

/* Feedback Section Styles */
.feedback-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem 0;
    margin-top: 4rem;
}

.feedback-section h3 {
    color: #4CAF50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.feedback-section p {
    text-align: center;
}

.feedback-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-input {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.feedback-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.feedback-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.feedback-button {
    padding: 12px 24px;
    font-size: 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    align-self: center;
}

.feedback-button:hover {
    background: #45a049;
}

.feedback-button:disabled {
    background: #666;
    cursor: not-allowed;
}

.feedback-status {
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    min-height: 20px;
}

.feedback-status.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.feedback-status.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

.info-card {
    background-color: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.info-card h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.info-card p {
    color: #c0c0c0;
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.info-card ol,
.info-card li {
    color: #d0d0d0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.info-card a {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid rgba(76, 175, 80, 0.5);
    border-radius: 6px;
    color: #4CAF50;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    z-index: 1001;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(76, 175, 80, 0.25);
    border-color: #4CAF50;
    transform: scale(1.05);
}

.mobile-menu-toggle:focus {
    outline: none;
    background: rgba(76, 175, 80, 0.25);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
    background: rgba(76, 175, 80, 0.35);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* ==========================================
       MOBILE OPTIMIZATIONS
       Professional mobile-first responsive design
       ========================================== */
    
    /* Base Container */
    .container {
        padding: 0 15px !important;
    }
    
    /* ==========================================
       HEADER & NAVIGATION
       ========================================== */
    header {
        background-color: rgba(15, 15, 15, 0.98) !important;
        padding: 0.75rem 0 !important;
        border-bottom: 2px solid rgba(76, 175, 80, 0.5) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    header .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 0.5rem 15px !important;
    }
    
    /* Navigation Content Container */
    .nav-content {
        display: flex !important;
        align-items: center !important;
        flex: 1 !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    /* ==========================================
       LOGO OPTIMIZATION
       ========================================== */
    .logo {
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .logo h1,
    h1 {
        font-size: 0.9rem !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    .logo h1 a,
    h1 a {
        gap: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-decoration: none !important;
        color: inherit !important;
    }
    
    .logo h1 img,
    h1 img {
        height: 32px !important;
        width: auto !important;
        flex-shrink: 0 !important;
        display: block !important;
    }
    
    /* Hide "Analytics Hub" text on very small screens */
    @media (max-width: 380px) {
        .logo h1,
        h1 {
            font-size: 0 !important;
        }
        
        .logo h1 img,
        h1 img {
            height: 28px !important;
        }
    }

    /* ==========================================
       MOBILE MENU TOGGLE BUTTON
       ========================================== */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.6rem !important;
        color: #fff !important;
        background: rgba(76, 175, 80, 0.2) !important;
        border: 2px solid #4CAF50 !important;
        border-radius: 8px !important;
        padding: 0.5rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
        flex-shrink: 0 !important;
        z-index: 1001 !important;
    }
    
    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:active {
        background: rgba(76, 175, 80, 0.35) !important;
        transform: scale(1.05) !important;
    }
    
    .mobile-menu-toggle.active {
        background: rgba(76, 175, 80, 0.4) !important;
        border-color: #66BB6A !important;
    }

    /* ==========================================
       NAVIGATION DRAWER (SLIDE-IN MENU)
       ========================================== */
    nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: linear-gradient(135deg, rgba(20, 20, 25, 0.98) 0%, rgba(30, 30, 40, 0.98) 100%) !important;
        backdrop-filter: blur(15px) !important;
        transition: right 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
        z-index: 1000 !important;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.8) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        border-left: 2px solid rgba(76, 175, 80, 0.3) !important;
        -webkit-overflow-scrolling: touch !important;
    }

    nav.active {
        right: 0 !important;
    }

    /* ==========================================
       MOBILE MENU ITEMS
       ========================================== */
    .nav-menu {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 4rem 0 2rem 0 !important;
        width: 100% !important;
        list-style: none !important;
        margin: 0 !important;
    }

    .nav-menu li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        position: relative !important;
    }

    .nav-menu a {
        display: flex !important;
        align-items: center !important;
        padding: 1.1rem 1.5rem !important;
        font-size: 1.05rem !important;
        color: #f5f5f5 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
        min-height: 48px !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }
    
    .nav-menu a::before {
        display: none !important;
    }
    
    .nav-menu a:hover,
    .nav-menu a:active {
        background-color: rgba(76, 175, 80, 0.25) !important;
        color: #fff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
        border-left: 4px solid #4CAF50 !important;
        padding-left: calc(1.5rem - 4px) !important;
    }
    
    .nav-menu a.active {
        background-color: rgba(76, 175, 80, 0.3) !important;
        color: #fff !important;
        font-weight: 600 !important;
        border-left: 4px solid #4CAF50 !important;
        padding-left: calc(1.5rem - 4px) !important;
    }
    
    .nav-menu a .icon {
        margin-right: 0.75rem !important;
        font-size: 1.2em !important;
    }

    /* ==========================================
       MOBILE DROPDOWN MENUS
       ========================================== */
    .nav-menu > li.has-dropdown {
        width: 100% !important;
    }
    
    .nav-menu > li.has-dropdown > a {
        position: relative !important;
        padding-right: 3rem !important;
    }
    
    .nav-menu > li.has-dropdown > a::after {
        content: '▼' !important;
        position: absolute !important;
        right: 1.5rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 0.75rem !important;
        transition: transform 0.3s ease !important;
        display: inline-block !important;
    }
    
    .nav-menu > li.has-dropdown.active > a::after {
        transform: translateY(-50%) rotate(180deg) !important;
    }
    
    .dropdown-menu {
        position: static !important;
        display: none !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    .nav-menu > li.has-dropdown.active .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu li {
        border-bottom: none !important;
    }

    .dropdown-menu a {
        padding: 0.9rem 1.5rem 0.9rem 2.75rem !important;
        font-size: 0.95rem !important;
        border-left: 3px solid transparent !important;
        background: rgba(0, 0, 0, 0.2) !important;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a:active {
        padding-left: calc(2.75rem - 4px) !important;
        background: rgba(76, 175, 80, 0.2) !important;
    }
    
    .dropdown-menu .icon {
        margin-right: 0.5rem !important;
    }
    
    .dropdown-divider {
        margin: 0.5rem 2rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        height: 0 !important;
    }

    /* ==========================================
       MOBILE OVERLAY (BACKDROP)
       ========================================== */
    .mobile-overlay {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-menu a {
        display: block;
        padding: 1.1rem 1.5rem;
        font-size: 1.05rem;
        color: #f5f5f5 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: rgba(76, 175, 80, 0.25);
        color: #fff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        border-left: 4px solid #4CAF50;
        padding-left: calc(1.5rem - 4px);
    }

    /* Mobile mega menu dropdowns */
    .nav-menu > li.has-dropdown {
        width: 100%;
    }
    
    .nav-menu > li.has-dropdown > a::after {
        content: '▼';
        float: right;
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }
    
    .nav-menu > li.has-dropdown.active > a::after {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.3);
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        transform: none;
    }

    .nav-menu > li.has-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.75rem 2.5rem;
        font-size: 0.9rem;
        border-left: 3px solid transparent;
    }
    
    .dropdown-menu a:hover {
        padding-left: 2.75rem;
    }
    
    .dropdown-divider {
        margin: 0.5rem 2rem;
    }

    /* ==========================================
       MOBILE OVERLAY (BACKDROP)
       ========================================== */
    .mobile-overlay {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.7) !important;
        z-index: 999 !important;
        backdrop-filter: blur(4px) !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
    }

    .mobile-overlay.active {
        display: block !important;
        opacity: 1 !important;
    }

    /* ==========================================
       AUTHENTICATION BUTTONS (MOBILE)
       ========================================== */
    .auth-buttons {
        display: none !important;
    }
    
    .user-menu {
        position: relative !important;
        margin-right: 0.5rem !important;
    }
    
    .user-menu-toggle {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem !important;
        min-height: 40px !important;
    }
    
    .user-menu-toggle .user-name {
        max-width: 80px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    .user-dropdown {
        position: fixed !important;
        right: 15px !important;
        top: 60px !important;
        width: calc(100% - 30px) !important;
        max-width: 280px !important;
    }

    /* ==========================================
       CONTENT SECTIONS (MOBILE)
       ========================================== */
    .hero {
        padding: 1.5rem 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero h2 {
        font-size: 1.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .hero p {
        font-size: 0.95rem !important;
        padding: 0 0.5rem !important;
    }
    
    .content-section {
        padding: 1.5rem 0 !important;
    }
    
    .content-section h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* ==========================================
       GRID LAYOUTS (MOBILE)
       ========================================== */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .stat-card,
    .card,
    .info-card {
        padding: 1.25rem !important;
        margin-bottom: 1rem !important;
    }

    /* ==========================================
       TABLES (MOBILE OPTIMIZATION)
       ========================================== */
    table {
        font-size: 0.85rem !important;
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    table thead {
        display: none !important;
    }
    
    table tbody {
        display: block !important;
    }
    
    table tr {
        display: block !important;
        margin-bottom: 1rem !important;
        border: 1px solid rgba(76, 175, 80, 0.2) !important;
        border-radius: 8px !important;
        padding: 0.75rem !important;
        background: rgba(0, 0, 0, 0.3) !important;
    }
    
    table td {
        display: flex !important;
        justify-content: space-between !important;
        padding: 0.5rem 0 !important;
        border: none !important;
        text-align: right !important;
    }
    
    table td::before {
        content: attr(data-label) !important;
        font-weight: bold !important;
        color: #4CAF50 !important;
        flex: 1 !important;
        text-align: left !important;
        margin-right: 1rem !important;
    }

    /* ==========================================
       BUTTONS (MOBILE)
       ========================================== */
    .btn,
    button:not(.mobile-menu-toggle):not(.user-menu-toggle) {
        min-height: 44px !important;
        font-size: 1rem !important;
        padding: 0.75rem 1.25rem !important;
        width: 100% !important;
        margin: 0.5rem 0 !important;
    }
    
    .btn-group {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .btn-group .btn {
        width: 100% !important;
    }

    /* ==========================================
       FORMS (MOBILE)
       ========================================== */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
        min-height: 44px !important;
        padding: 0.75rem !important;
    }
    
    .form-group {
        margin-bottom: 1.25rem !important;
    }
    
    label {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
        display: block !important;
    }

    /* ==========================================
       SEARCH (MOBILE)
       ========================================== */
    .player-search-wrapper {
        width: 100% !important;
        margin: 1rem 0 !important;
    }
    
    .player-search-input {
        font-size: 16px !important;
        padding: 0.75rem 1rem !important;
        width: 100% !important;
    }
    
    .search-suggestions {
        max-height: 60vh !important;
        overflow-y: auto !important;
    }

    /* ==========================================
       MODALS & POPUPS (MOBILE)
       ========================================== */
    .modal,
    .popup {
        width: 95% !important;
        max-width: none !important;
        margin: 1rem auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .modal-content {
        padding: 1.25rem !important;
    }

    /* ==========================================
       PAGINATION (MOBILE)
       ========================================== */
    .pagination {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        justify-content: center !important;
    }
    
    .pagination button,
    .pagination a {
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 0.5rem !important;
        font-size: 0.9rem !important;
    }

    /* ==========================================
       FOOTER (MOBILE)
       ========================================== */
    footer {
        padding: 1.5rem 0 !important;
        font-size: 0.85rem !important;
        text-align: center !important;
    }
    
    footer .container {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    /* ==========================================
       UTILITY CLASSES (MOBILE)
       ========================================== */
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .mobile-center {
        text-align: center !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }

    /* ==========================================
       TOUCH OPTIMIZATIONS
       ========================================== */
    * {
        -webkit-tap-highlight-color: rgba(76, 175, 80, 0.2) !important;
    }
    
    a, button, [role="button"] {
        cursor: pointer !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }
    
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth !important;
    }
    
    /* Fix for iOS Safari bottom bar */
    body {
        min-height: -webkit-fill-available !important;
    }

    /* ==========================================
       LOADING STATES (MOBILE)
       ========================================== */
    .loading,
    .skeleton {
        min-height: 100px !important;
    }

    /* ==========================================
       ERROR MESSAGES (MOBILE)
       ========================================== */
    .error-message,
    .success-message,
    .info-message {
        font-size: 0.9rem !important;
        padding: 0.75rem 1rem !important;
        margin: 1rem 0 !important;
    }
}

/* ==========================================
   TABLET OPTIMIZATION (768px - 1024px)
   ========================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 100% !important;
        padding: 0 2rem !important;
    }
    
    header .container {
        padding: 0.75rem 2rem !important;
    }
    
    .logo h1 {
        font-size: 1.25rem !important;
    }
    
    .nav-menu {
        gap: 0.25rem !important;
    }
    
    .nav-menu a {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    [style*="grid-template-columns"] {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    }
}

/* ==========================================
   SMALL MOBILE (< 375px)
   ========================================== */
@media (max-width: 374px) {
    .logo h1,
    h1 {
        font-size: 0.75rem !important;
    }
    
    .logo h1 img,
    h1 img {
        height: 26px !important;
    }
    
    .mobile-menu-toggle {
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 1.4rem !important;
        padding: 0.4rem !important;
    }
    
    .hero h2 {
        font-size: 1.5rem !important;
    }
}

/* ==========================================
   OLD MEDIA QUERIES (KEEP FOR BACKWARD COMPATIBILITY)
   ========================================== */
@media (max-width: 768px) {
    /* Hero Section */
    .hero h2 {
        font-size: 1.75rem;
        color: #fff !important;
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9);
        margin-bottom: 1rem;
    }

    .hero {
        padding: 2rem 0;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }
    
    .divider {
        width: 80px !important;
        height: 4px !important;
        background: linear-gradient(90deg, #4CAF50, #5FD068) !important;
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.5);
    }

    /* Container */
    .container {
        padding: 0 15px;
    }

    main {
        padding: 1.25rem 0 2rem 0;
        min-height: calc(100vh - 200px);
    }

    /* Quick Stats */
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-box {
        padding: 1.5rem;
        background: rgba(20, 20, 20, 0.9) !important;
        border: 1px solid rgba(76, 175, 80, 0.4) !important;
    }

    .stat-number {
        font-size: 2rem;
        color: #5FD068 !important;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    }
    
    .stat-label {
        color: #f0f0f0 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    }

    /* Navigation Cards */
    .navigation-cards {
        grid-template-columns: 1fr;
        gap: 1rem !important;
    }
    
    .nav-card {
        padding: 1.5rem !important;
        background: rgba(25, 25, 25, 0.9) !important;
        border: 2px solid rgba(76, 175, 80, 0.3) !important;
        border-radius: 10px !important;
        transition: all 0.3s ease !important;
    }
    
    .nav-card:active {
        transform: scale(0.98);
        border-color: rgba(76, 175, 80, 0.6) !important;
        background: rgba(76, 175, 80, 0.1) !important;
    }
    
    .nav-card h4 {
        font-size: 1.2rem !important;
        color: #5FD068 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .nav-card p {
        font-size: 0.95rem !important;
        color: #e0e0e0 !important;
    }

    /* Filter Section */
    .filter-section {
        padding: 1rem 0.75rem;
    }

    .filter-container {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .filter-group select,
    .filter-group input[type="text"],
    select,
    input[type="text"],
    textarea {
        width: 100%;
        min-width: auto;
        min-height: 48px !important;
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
        border: 2px solid rgba(76, 175, 80, 0.4) !important;
        background: rgba(20, 20, 30, 0.9) !important;
        color: #f5f5f5 !important;
    }
    
    .filter-group select:focus,
    .filter-group input[type="text"]:focus,
    select:focus,
    input[type="text"]:focus,
    textarea:focus {
        border-color: #4CAF50 !important;
        background: rgba(25, 25, 35, 0.95) !important;
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2) !important;
    }

    .apply-button {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    /* Tables - Scrollable with better UX */
    .standings-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: rgba(15, 15, 15, 0.9);
        border-radius: 8px;
        padding: 1rem 0;
        position: relative;
    }
    
    .standings-section::after {
        content: '← Scroll →';
        position: absolute;
        bottom: 0.5rem;
        right: 1rem;
        background: rgba(76, 175, 80, 0.2);
        color: #4CAF50;
        padding: 0.25rem 0.75rem;
        border-radius: 12px;
        font-size: 0.75rem;
        pointer-events: none;
        animation: fadeInOut 3s ease-in-out infinite;
    }
    
    @keyframes fadeInOut {
        0%, 100% { opacity: 0.4; }
        50% { opacity: 1; }
    }

    .standings-table {
        font-size: 0.85rem;
        min-width: 600px;
    }

    .standings-table th,
    .standings-table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    .standings-table th {
        background-color: rgba(76, 175, 80, 0.3) !important;
        color: #fff !important;
        font-weight: 700 !important;
        text-shadow: none;
        border-bottom: 2px solid rgba(76, 175, 80, 0.5) !important;
    }
    
    .standings-table td {
        color: #f5f5f5 !important;
        text-shadow: none;
        font-size: 0.9rem;
    }

    .standings-table th:first-child,
    .standings-table td:first-child {
        position: sticky;
        left: 0;
        background-color: rgba(20, 20, 20, 0.98);
        z-index: 10;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    }

    .standings-table thead th:first-child {
        background-color: rgba(76, 175, 80, 0.25) !important;
        z-index: 11;
    }
    
    .standings-table tr:nth-child(even) {
        background-color: rgba(255, 255, 255, 0.03);
    }
    
    .standings-table tr:hover {
        background-color: rgba(76, 175, 80, 0.1) !important;
    }

    /* Content sections */
    .content-section {
        margin: 1.5rem 0;
        background: rgba(20, 20, 20, 0.85);
        padding: 1.25rem;
        border-radius: 10px;
        border: 1px solid rgba(76, 175, 80, 0.2);
    }

    .content-section h3 {
        font-size: 1.4rem;
        color: #5FD068 !important;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
        margin-bottom: 1rem;
    }

    .content-section h4 {
        font-size: 1.15rem;
        color: #fff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .content-section p {
        font-size: 1rem;
        color: #f5f5f5 !important;
        line-height: 1.7;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
        margin-bottom: 1rem;
    }
    
    .content-section ul {
        padding-left: 1.5rem !important;
        margin: 1rem 0 !important;
    }
    
    .content-section li {
        font-size: 1rem !important;
        color: #f5f5f5 !important;
        line-height: 1.8 !important;
        margin-bottom: 0.5rem !important;
        text-shadow: none;
    }
    
    /* Mobile overlay improvements */
    .mobile-overlay.active {
        display: block;
        backdrop-filter: blur(3px);
    }
    
    /* Improve dropdown menu on mobile */
    .dropdown-menu a {
        padding: 0.875rem 2rem !important;
        font-size: 0.95rem !important;
        border-left: 3px solid transparent;
        min-height: 44px;
        display: flex;
        align-items: center;
        color: #e0e0e0 !important;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        padding-left: calc(2rem - 4px) !important;
        background: rgba(76, 175, 80, 0.2) !important;
        border-left-color: #4CAF50 !important;
        color: #fff !important;
    }
    
    /* Better mobile stat boxes */
    .stat-box {
        padding: 1.25rem !important;
        background: rgba(25, 25, 30, 0.95) !important;
        border: 2px solid rgba(76, 175, 80, 0.4) !important;
    }
    
    .stat-number {
        font-size: 2.25rem;
        color: #4CAF50 !important;
        text-shadow: none;
        font-weight: 700;
    }
    
    .stat-label {
        color: #e0e0e0 !important;
        text-shadow: none;
        font-weight: 500;
    }
    
    /* Improve loading and error messages on mobile */
    .loading-message,
    .error-message {
        font-size: 1rem !important;
        padding: 2rem 1rem !important;
        color: #e0e0e0 !important;
    }
    
    /* Better info boxes on mobile */
    .info-box,
    .warning-box,
    .info-card {
        padding: 1rem !important;
        font-size: 0.95rem !important;
        border-width: 2px !important;
        background: rgba(20, 25, 30, 0.95) !important;
    }
    
    .info-box h4,
    .warning-box h4,
    .info-card h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .info-box p,
    .warning-box p,
    .info-card p {
        color: #e0e0e0 !important;
        line-height: 1.7 !important;
    }
    
    /* Improve footer visibility on mobile */
    footer {
        padding: 1.75rem 0;
        background: rgba(15, 15, 20, 0.98);
        border-top: 2px solid rgba(76, 175, 80, 0.4);
    }
    
    footer p {
        font-size: 0.95rem !important;
        color: #b0b0b0 !important;
        text-shadow: none;
    }
    
    /* General text improvements for mobile */
    body {
        color: #f5f5f5 !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        text-shadow: none;
        color: #fff !important;
    }
    
    p, li, span, div {
        text-shadow: none;
        line-height: 1.7;
    }
    
    /* Buttons */
    button,
    .apply-button,
    .load-button {
        background: linear-gradient(135deg, #4CAF50, #45a049) !important;
        color: #fff !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        border: none !important;
        box-shadow: 0 3px 12px rgba(76, 175, 80, 0.4);
        min-height: 48px !important;
        padding: 0.875rem 1.5rem !important;
    }
    
    button:hover,
    .apply-button:hover,
    .load-button:hover {
        background: linear-gradient(135deg, #45a049, #3d8b40) !important;
        box-shadow: 0 4px 16px rgba(76, 175, 80, 0.5);
        transform: translateY(-1px);
    }
    
    button:active,
    .apply-button:active,
    .load-button:active {
        transform: translateY(0) !important;
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
    }

    /* Info cards */
    .info-card {
        padding: 1rem;
    }

    .info-card h4 {
        font-size: 1.1rem;
    }

    .info-card p {
        font-size: 0.85rem;
    }

    /* Footer */
    footer {
        padding: 1.5rem 0;
        background: rgba(10, 10, 10, 0.95);
        border-top: 1px solid rgba(76, 175, 80, 0.3);
    }
    
    footer p {
        font-size: 0.9rem !important;
        color: #c0c0c0 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    }

    /* Clan Stats Mobile Optimizations */
    .members-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .member-card {
        padding: 0.75rem !important;
    }

    .member-stats {
        grid-template-columns: 1fr !important;
        gap: 0.25rem !important;
        font-size: 0.85rem !important;
    }

    .stats-summary {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .summary-card {
        padding: 1rem !important;
    }

    .summary-value {
        font-size: 1.8rem !important;
    }

    .summary-label {
        font-size: 0.75rem !important;
    }

    .controls {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .season-select,
    .load-button {
        width: 100% !important;
        min-width: auto !important;
    }

    /* Month buttons for Lubi Stats */
    .month-btn {
        padding: 6px 12px !important;
        margin: 2px !important;
        font-size: 0.85rem !important;
    }
    
    /* Custom Search Page Mobile Fixes */
    .search-container {
        padding: 1rem !important;
        margin: 1rem auto !important;
    }
    
    .search-form {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .search-input,
    .mode-select,
    .search-button {
        width: 100% !important;
        flex: none !important;
    }
    
    .mode-select {
        flex: none !important;
        min-width: 100% !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .stat-card {
        padding: 0.75rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
    }
    
    .stat-value {
        font-size: 1.25rem !important;
    }
    
    .info-box,
    .warning-box {
        padding: 0.75rem !important;
        font-size: 0.85rem !important;
    }
    
    .info-box h4,
    .warning-box h4 {
        font-size: 1rem !important;
    }
    
    .info-box ol,
    .warning-box ol {
        padding-left: 1.25rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .info-box code,
    .warning-box code,
    .error-message code {
        font-size: 0.75rem !important;
        word-break: break-all !important;
    }
}

/* ==========================================
   END OF MEDIA QUERIES
   ========================================== */

/* Player Search Autocomplete Styles */
.player-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.player-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    background: rgba(10, 10, 10, 0.8);
    color: #f0f0f0;
    transition: all 0.3s ease;
}

.player-search-input:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.player-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(20, 20, 30, 0.98);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: rgba(76, 175, 80, 0.5);
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(76, 175, 80, 0.7);
}

.suggestion-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: rgba(76, 175, 80, 0.1);
}

.suggestion-name {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.suggestion-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
}

.suggestion-platform {
    color: #888;
}

.suggestion-badge {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.suggestion-badge.lubi-badge {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 152, 0, 0.25));
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.suggestion-alias {
    background: rgba(33, 150, 243, 0.2);
    color: #64B5F6;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: help;
}

.suggestion-loading,
.suggestion-no-results,
.suggestion-error {
    padding: 1rem 1.5rem;
    text-align: center;
    color: #888;
}

.suggestion-no-results div:last-child {
    margin-top: 0.5rem;
    font-weight: 500;
}

.suggestion-no-results div:last-child:hover {
    color: #45a049;
}

/* Responsive */
@media (max-width: 768px) {
    .player-search-wrapper {
        max-width: 100%;
    }
    
    .player-search-input {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }
    
    .suggestion-item {
        padding: 0.875rem 1.25rem;
    }
    
    .suggestion-name {
        font-size: 1rem;
    }
}

/* ========================================
   DASHBOARD STYLES (Homepage)
   ======================================== */

.dashboard-section {
    margin: 2rem 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    border-color: rgba(76, 175, 80, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

.card-header h3 {
    color: #4CAF50;
    font-size: 1.1rem;
    margin: 0;
}

.card-link {
    color: #4CAF50;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.card-link:hover {
    color: #66BB6A;
}

.live-indicator {
    font-size: 0.85rem;
    color: #4CAF50;
}

/* Quick Stats Card */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
}

/* Top Players List */
.top-players-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.player-rank-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.3s;
}

.player-rank-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.rank-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    font-size: 0.85rem;
    color: #ccc;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
    color: #000;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: #fff;
}

.player-name {
    flex: 1;
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.player-name:hover {
    color: #4CAF50;
}

.player-kd {
    color: #4CAF50;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Heatmap Preview */
.heatmap-preview {
    text-align: center;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.map-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.map-item:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: scale(1.05);
}

.map-icon {
    font-size: 2rem;
}

.map-name {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.heatmap-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #888;
    font-size: 0.9rem;
}

/* Activity Feed */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

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

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.activity-player {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
}

.activity-player:hover {
    color: #4CAF50;
}

.activity-time {
    color: #888;
    font-size: 0.85rem;
}

.activity-stat {
    color: #4CAF50;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Clan Widget */
.clan-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.clan-stat-row:last-child {
    border-bottom: none;
}

.clan-label {
    color: #888;
}

.clan-value {
    color: #4CAF50;
    font-weight: bold;
}

/* Quick Actions */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.action-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.action-icon {
    font-size: 2rem;
}

.action-text {
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* Status Section */
.status-section {
    margin: 2rem 0;
}

.status-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4CAF50;
}

.status-banner.info {
    background: rgba(33, 150, 243, 0.1);
    border-left-color: #2196F3;
}

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

.status-text {
    color: #e0e0e0;
    font-size: 0.95rem;
}

/* Loading State */
.loading {
    text-align: center;
    color: #888;
    padding: 2rem;
}

.widget-content {
    min-height: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}
