/**
 * Theme Name: Team-eXciting Gaming Theme
 * Theme URI: https://team-exciting.de
 * Author: Team-eXciting
 * Author URI: https://team-exciting.de
 * Description: Das offizielle Team-eXciting Gaming Theme mit vollstaendiger Discord- und Steam-Integration. Unterstuetzt alle Team-Exciting Plugins: Gather, Tournaments, Ladders, Forum, Teams, Players und mehr.
 * Version: 1.0.0
 * Requires at least: 6.0
 * Tested up to: 6.4
 * Requires PHP: 8.0
 * License: GNU GPL v3
 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
 * Text Domain: team-exciting
 * Tags: gaming, esports, discord, steam, dark-mode, custom-logo, custom-menu, featured-images
 */

/* ==========================================================================
   CSS Variables - Team-eXciting Brand Colors
   ========================================================================== */
:root {
    /* Primary Colors */
    --te-primary: #e94560;
    --te-primary-hover: #d63850;
    --te-primary-dark: #b82e44;

    /* Secondary Colors */
    --te-secondary: #00d9ff;
    --te-secondary-hover: #00c4e6;

    /* Background Colors */
    --te-bg-dark: #0a0a0f;
    --te-bg-darker: #050508;
    --te-bg-card: #12121a;
    --te-bg-card-hover: #1a1a25;
    --te-bg-input: #1e1e2a;

    /* Text Colors */
    --te-text-primary: #ffffff;
    --te-text-secondary: #a0a0b0;
    --te-text-muted: #666680;

    /* Status Colors */
    --te-success: #22c55e;
    --te-warning: #f59e0b;
    --te-error: #ef4444;
    --te-info: #3b82f6;

    /* Discord Colors */
    --discord-blurple: #5865F2;
    --discord-green: #57F287;
    --discord-yellow: #FEE75C;
    --discord-fuchsia: #EB459E;
    --discord-red: #ED4245;
    --discord-white: #FFFFFF;
    --discord-black: #23272A;

    /* Steam Colors */
    --steam-blue: #1b2838;
    --steam-dark: #171a21;
    --steam-accent: #66c0f4;
    --steam-green: #4c6b22;

    /* Gradients */
    --te-gradient-primary: linear-gradient(135deg, var(--te-primary) 0%, var(--te-secondary) 100%);
    --te-gradient-dark: linear-gradient(180deg, var(--te-bg-dark) 0%, var(--te-bg-darker) 100%);
    --te-gradient-card: linear-gradient(145deg, var(--te-bg-card) 0%, var(--te-bg-darker) 100%);

    /* Spacing */
    --te-spacing-xs: 0.25rem;
    --te-spacing-sm: 0.5rem;
    --te-spacing-md: 1rem;
    --te-spacing-lg: 1.5rem;
    --te-spacing-xl: 2rem;
    --te-spacing-2xl: 3rem;

    /* Border Radius */
    --te-radius-sm: 4px;
    --te-radius-md: 8px;
    --te-radius-lg: 12px;
    --te-radius-xl: 16px;
    --te-radius-full: 9999px;

    /* Shadows */
    --te-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --te-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --te-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --te-shadow-glow: 0 0 20px rgba(233, 69, 96, 0.3);

    /* Transitions */
    --te-transition-fast: 150ms ease;
    --te-transition-normal: 250ms ease;
    --te-transition-slow: 350ms ease;

    /* Typography */
    --te-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --te-font-heading: 'Rajdhani', 'Inter', sans-serif;
    --te-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--te-font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--te-text-primary);
    background: var(--te-gradient-dark);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--te-font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--te-spacing-md);
    color: var(--te-text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 var(--te-spacing-md);
    color: var(--te-text-secondary);
}

a {
    color: var(--te-primary);
    text-decoration: none;
    transition: color var(--te-transition-fast);
}

a:hover {
    color: var(--te-secondary);
}

/* ==========================================================================
   Layout Components
   ========================================================================== */
.te-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--te-spacing-lg);
}

.te-grid {
    display: grid;
    gap: var(--te-spacing-lg);
}

.te-grid-2 { grid-template-columns: repeat(2, 1fr); }
.te-grid-3 { grid-template-columns: repeat(3, 1fr); }
.te-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .te-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .te-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .te-grid-4, .te-grid-3, .te-grid-2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Card Components
   ========================================================================== */
.te-card {
    background: var(--te-gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--te-radius-lg);
    padding: var(--te-spacing-lg);
    transition: all var(--te-transition-normal);
}

.te-card:hover {
    transform: translateY(-2px);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: var(--te-shadow-glow);
}

.te-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--te-spacing-md);
    padding-bottom: var(--te-spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.te-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* ==========================================================================
   Button Components
   ========================================================================== */
.te-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--te-spacing-sm);
    padding: var(--te-spacing-sm) var(--te-spacing-lg);
    font-family: var(--te-font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--te-radius-md);
    cursor: pointer;
    transition: all var(--te-transition-fast);
}

.te-btn-primary {
    background: var(--te-gradient-primary);
    color: var(--te-text-primary);
}

.te-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--te-shadow-glow);
}

.te-btn-discord {
    background: var(--discord-blurple);
    color: var(--te-text-primary);
}

.te-btn-discord:hover {
    background: #4752c4;
}

.te-btn-steam {
    background: linear-gradient(135deg, var(--steam-blue) 0%, var(--steam-dark) 100%);
    color: var(--te-text-primary);
    border: 1px solid var(--steam-accent);
}

.te-btn-steam:hover {
    background: var(--steam-accent);
    color: var(--steam-dark);
}

/* ==========================================================================
   Discord Integration Styles
   ========================================================================== */
.te-discord-status {
    display: inline-flex;
    align-items: center;
    gap: var(--te-spacing-sm);
    padding: var(--te-spacing-xs) var(--te-spacing-sm);
    border-radius: var(--te-radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.te-discord-status.online {
    background: rgba(87, 242, 135, 0.2);
    color: var(--discord-green);
}

.te-discord-status.idle {
    background: rgba(254, 231, 92, 0.2);
    color: var(--discord-yellow);
}

.te-discord-status.dnd {
    background: rgba(237, 66, 69, 0.2);
    color: var(--discord-red);
}

.te-discord-status.offline {
    background: rgba(128, 128, 128, 0.2);
    color: var(--te-text-muted);
}

.te-discord-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--discord-blurple);
}

.te-discord-role {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: var(--te-radius-full);
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid currentColor;
}

/* ==========================================================================
   Steam Integration Styles
   ========================================================================== */
.te-steam-profile {
    display: flex;
    align-items: center;
    gap: var(--te-spacing-md);
    padding: var(--te-spacing-md);
    background: linear-gradient(135deg, var(--steam-blue) 0%, var(--steam-dark) 100%);
    border-radius: var(--te-radius-lg);
    border: 1px solid var(--steam-accent);
}

.te-steam-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--te-radius-md);
    border: 2px solid var(--steam-accent);
}

.te-steam-status {
    display: inline-flex;
    align-items: center;
    gap: var(--te-spacing-xs);
    font-size: 0.75rem;
}

.te-steam-status.in-game {
    color: var(--steam-green);
}

.te-steam-status.online {
    color: var(--steam-accent);
}

.te-steam-game-banner {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--te-radius-md);
}

/* ==========================================================================
   User Profile Components
   ========================================================================== */
.te-user-card {
    display: flex;
    align-items: center;
    gap: var(--te-spacing-md);
    padding: var(--te-spacing-md);
    background: var(--te-bg-card);
    border-radius: var(--te-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.te-user-avatar {
    position: relative;
    width: 64px;
    height: 64px;
}

.te-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.te-user-avatar .status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--te-bg-card);
}

.te-user-avatar .status-dot.online { background: var(--discord-green); }
.te-user-avatar .status-dot.idle { background: var(--discord-yellow); }
.te-user-avatar .status-dot.dnd { background: var(--discord-red); }
.te-user-avatar .status-dot.offline { background: var(--te-text-muted); }

.te-user-info {
    flex: 1;
}

.te-user-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.te-user-meta {
    display: flex;
    gap: var(--te-spacing-md);
    margin-top: var(--te-spacing-xs);
    font-size: 0.875rem;
    color: var(--te-text-muted);
}

/* ==========================================================================
   Gaming Components
   ========================================================================== */
.te-game-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--te-radius-lg);
    background: var(--te-bg-card);
}

.te-game-card-banner {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.te-game-card-content {
    padding: var(--te-spacing-md);
}

.te-game-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--te-spacing-xs);
}

.te-game-card-players {
    font-size: 0.875rem;
    color: var(--te-text-muted);
}

/* ==========================================================================
   Stats & Leaderboard
   ========================================================================== */
.te-stat-box {
    text-align: center;
    padding: var(--te-spacing-lg);
    background: var(--te-bg-card);
    border-radius: var(--te-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.te-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--te-font-heading);
    background: var(--te-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.te-stat-label {
    font-size: 0.875rem;
    color: var(--te-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.te-leaderboard {
    background: var(--te-bg-card);
    border-radius: var(--te-radius-lg);
    overflow: hidden;
}

.te-leaderboard-row {
    display: flex;
    align-items: center;
    gap: var(--te-spacing-md);
    padding: var(--te-spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--te-transition-fast);
}

.te-leaderboard-row:hover {
    background: var(--te-bg-card-hover);
}

.te-leaderboard-rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: var(--te-radius-md);
    background: var(--te-bg-input);
}

.te-leaderboard-rank.gold { background: linear-gradient(135deg, #ffd700, #b8860b); color: #000; }
.te-leaderboard-rank.silver { background: linear-gradient(135deg, #c0c0c0, #808080); color: #000; }
.te-leaderboard-rank.bronze { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.te-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.te-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 var(--te-spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.te-logo {
    display: flex;
    align-items: center;
    gap: var(--te-spacing-sm);
    font-family: var(--te-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--te-text-primary);
}

.te-logo img {
    height: 40px;
    width: auto;
}

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

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

.te-nav-item {
    position: relative;
}

.te-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--te-text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: var(--te-radius-md);
    transition: all var(--te-transition-fast);
}

.te-nav-link:hover {
    color: var(--te-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.te-nav-item.te-nav-active .te-nav-link {
    color: var(--te-primary);
    background: rgba(233, 69, 96, 0.1);
}

.te-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.te-nav-item:hover .te-nav-icon,
.te-nav-item.te-nav-active .te-nav-icon {
    opacity: 1;
}

.te-nav-label {
    white-space: nowrap;
}

/* Mobile Menu */
.te-mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--te-bg-darker);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform var(--te-transition-normal);
    overflow-y: auto;
}

.te-mobile-menu.te-active {
    transform: translateX(0);
}

.te-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 1rem;
}

.te-mobile-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.te-mobile-nav a {
    display: block;
    padding: 1rem;
    color: var(--te-text-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--te-transition-fast);
}

.te-mobile-nav a:hover {
    color: var(--te-primary);
    background: rgba(233, 69, 96, 0.1);
}

.te-mobile-login a {
    color: var(--te-primary);
    background: rgba(233, 69, 96, 0.1);
    border-radius: var(--te-radius-md);
    text-align: center;
    margin-top: 1rem;
}

/* Mobile Toggle */
.te-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.te-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--te-text-primary);
    transition: all var(--te-transition-fast);
}

/* Responsive */
@media (max-width: 1024px) {
    .te-nav-label {
        display: none;
    }
    .te-nav-link {
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    .te-hide-mobile {
        display: none !important;
    }
    .te-mobile-toggle {
        display: flex;
    }
}

@media (min-width: 769px) {
    .te-hide-desktop {
        display: none !important;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.te-footer {
    background: var(--te-bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--te-spacing-2xl) 0;
    margin-top: var(--te-spacing-2xl);
}

.te-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--te-spacing-xl);
}

.te-footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--te-spacing-md);
    color: var(--te-text-primary);
}

.te-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.te-footer-links li {
    margin-bottom: var(--te-spacing-sm);
}

.te-footer-links a {
    color: var(--te-text-muted);
    font-size: 0.875rem;
}

.te-footer-links a:hover {
    color: var(--te-primary);
}

.te-footer-bottom {
    margin-top: var(--te-spacing-xl);
    padding-top: var(--te-spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--te-text-muted);
    font-size: 0.875rem;
}

.te-footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.te-footer-legal a {
    color: var(--te-text-secondary, #a0a0a0);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.te-footer-legal a:hover {
    color: var(--te-primary);
    text-decoration: underline;
}

.te-footer-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--te-primary); }
    50% { box-shadow: 0 0 20px var(--te-primary); }
}

.te-animate-pulse {
    animation: pulse 2s infinite;
}

.te-animate-glow {
    animation: glow 2s infinite;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.te-text-center { text-align: center; }
.te-text-left { text-align: left; }
.te-text-right { text-align: right; }

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

.te-gap-sm { gap: var(--te-spacing-sm); }
.te-gap-md { gap: var(--te-spacing-md); }
.te-gap-lg { gap: var(--te-spacing-lg); }

.te-mt-0 { margin-top: 0; }
.te-mt-1 { margin-top: var(--te-spacing-sm); }
.te-mt-2 { margin-top: var(--te-spacing-md); }
.te-mt-3 { margin-top: var(--te-spacing-lg); }
.te-mt-4 { margin-top: var(--te-spacing-xl); }

.te-mb-0 { margin-bottom: 0; }
.te-mb-1 { margin-bottom: var(--te-spacing-sm); }
.te-mb-2 { margin-bottom: var(--te-spacing-md); }
.te-mb-3 { margin-bottom: var(--te-spacing-lg); }
.te-mb-4 { margin-bottom: var(--te-spacing-xl); }

.te-p-1 { padding: var(--te-spacing-sm); }
.te-p-2 { padding: var(--te-spacing-md); }
.te-p-3 { padding: var(--te-spacing-lg); }
.te-p-4 { padding: var(--te-spacing-xl); }

.te-hidden { display: none; }
.te-visible { display: block; }

@media (max-width: 768px) {
    .te-hide-mobile { display: none; }
}

@media (min-width: 769px) {
    .te-hide-desktop { display: none; }
}

/* ==========================================================================
   Hero Section (Front Page)
   ========================================================================== */
.te-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.te-hero-bg {
    position: absolute;
    inset: 0;
    background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
}

.te-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,15,0.7) 0%, rgba(5,5,8,0.95) 100%);
}

.te-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--te-spacing-2xl);
}

.te-hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--te-spacing-md);
    background: var(--te-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.te-hero-subtitle {
    font-size: 1.5rem;
    color: var(--te-text-secondary);
    margin-bottom: var(--te-spacing-md);
}

.te-hero-actions {
    display: flex;
    gap: var(--te-spacing-md);
    justify-content: center;
    margin-top: var(--te-spacing-xl);
}

.te-hero-stats {
    display: flex;
    gap: var(--te-spacing-xl);
    justify-content: center;
    margin-top: var(--te-spacing-2xl);
}

.te-hero-stat {
    text-align: center;
}

.te-hero-stat .te-stat-value {
    display: block;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .te-hero-title { font-size: 2.5rem; }
    .te-hero-actions { flex-direction: column; }
    .te-hero-stats { flex-wrap: wrap; gap: var(--te-spacing-md); }
}

/* ==========================================================================
   Section Components
   ========================================================================== */
.te-section {
    padding: var(--te-spacing-2xl) 0;
}

.te-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--te-spacing-xl);
}

.te-section-title {
    font-size: 1.75rem;
    margin: 0;
}

.te-section-link {
    color: var(--te-primary);
    font-weight: 500;
}

/* ==========================================================================
   Page Header
   ========================================================================== */
.te-page-header {
    padding: var(--te-spacing-2xl) 0;
    margin-bottom: var(--te-spacing-xl);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.te-page-title {
    font-size: 2.5rem;
    margin-bottom: var(--te-spacing-sm);
}

.te-page-description {
    color: var(--te-text-muted);
    font-size: 1.125rem;
}

.te-content-area {
    padding-top: 90px;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: var(--te-spacing-lg);
    padding-right: var(--te-spacing-lg);
}

/* ==========================================================================
   Filters
   ========================================================================== */
.te-filters {
    display: flex;
    gap: var(--te-spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--te-spacing-xl);
    padding: var(--te-spacing-md);
    background: var(--te-bg-card);
    border-radius: var(--te-radius-lg);
}

.te-filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--te-spacing-xs);
}

.te-filter-group label {
    font-size: 0.75rem;
    color: var(--te-text-muted);
    text-transform: uppercase;
}

.te-select, .te-input, .te-textarea {
    background: var(--te-bg-input);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--te-radius-md);
    padding: var(--te-spacing-sm) var(--te-spacing-md);
    color: var(--te-text-primary);
    font-size: 0.875rem;
}

.te-select:focus, .te-input:focus, .te-textarea:focus {
    outline: none;
    border-color: var(--te-primary);
}

.te-search-input {
    flex: 1;
    min-width: 200px;
}

/* ==========================================================================
   Grid Layouts
   ========================================================================== */
.te-tournaments-grid,
.te-ladders-grid,
.te-teams-grid,
.te-games-grid,
.te-servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--te-spacing-lg);
}

.te-games-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--te-spacing-md);
}

/* ==========================================================================
   Tournament Card
   ========================================================================== */
.te-tournament-card .te-card-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--te-radius-lg) var(--te-radius-lg) 0 0;
    margin: calc(var(--te-spacing-lg) * -1);
    margin-bottom: var(--te-spacing-md);
}

.te-tournament-card .te-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.te-status-badge {
    display: inline-block;
    padding: var(--te-spacing-xs) var(--te-spacing-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--te-radius-sm);
}

.te-status-upcoming { background: var(--te-info); color: #fff; }
.te-status-ongoing { background: var(--te-success); color: #fff; }
.te-status-completed { background: var(--te-text-muted); color: #fff; }

.te-game-tag {
    display: inline-block;
    padding: var(--te-spacing-xs) var(--te-spacing-sm);
    background: rgba(233,69,96,0.2);
    color: var(--te-primary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--te-radius-sm);
    margin-bottom: var(--te-spacing-sm);
}

.te-tournament-meta, .te-ladder-stats, .te-team-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--te-spacing-md);
    margin: var(--te-spacing-md) 0;
}

.te-meta-item {
    display: flex;
    align-items: center;
    gap: var(--te-spacing-xs);
    font-size: 0.875rem;
    color: var(--te-text-secondary);
}

.te-meta-item svg {
    opacity: 0.6;
}

.te-card-actions {
    display: flex;
    gap: var(--te-spacing-sm);
    margin-top: var(--te-spacing-md);
}

/* ==========================================================================
   Tables
   ========================================================================== */
.te-table {
    width: 100%;
    border-collapse: collapse;
}

.te-table th, .te-table td {
    padding: var(--te-spacing-md);
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.te-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--te-text-muted);
    font-weight: 600;
}

.te-table tr:hover {
    background: var(--te-bg-card-hover);
}

.te-table .te-rank { width: 60px; text-align: center; }
.te-table .te-player { min-width: 200px; }

.te-player-link {
    display: flex;
    align-items: center;
    gap: var(--te-spacing-sm);
    color: var(--te-text-primary);
}

.te-player-avatar, .te-mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--te-radius-full);
    object-fit: cover;
}

.te-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--te-radius-full);
    font-weight: 700;
    font-size: 0.875rem;
}

.te-medal-1 { background: linear-gradient(135deg, #ffd700, #b8860b); color: #000; }
.te-medal-2 { background: linear-gradient(135deg, #c0c0c0, #808080); color: #000; }
.te-medal-3 { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; }

.te-top-1 { background: rgba(255,215,0,0.1); }
.te-top-2 { background: rgba(192,192,192,0.1); }
.te-top-3 { background: rgba(205,127,50,0.1); }

/* ==========================================================================
   Tabs
   ========================================================================== */
.te-tabs {
    display: flex;
    gap: var(--te-spacing-sm);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: var(--te-spacing-lg);
}

.te-tab {
    padding: var(--te-spacing-md) var(--te-spacing-lg);
    background: none;
    border: none;
    color: var(--te-text-muted);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color var(--te-transition-fast);
}

.te-tab:hover {
    color: var(--te-text-primary);
}

.te-tab.te-tab-active {
    color: var(--te-primary);
}

.te-tab.te-tab-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--te-primary);
}

.te-tab-content {
    display: none;
}

.te-tab-content.te-tab-active {
    display: block;
}

/* ==========================================================================
   Leaderboard Podium
   ========================================================================== */
.te-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: var(--te-spacing-md);
    padding: var(--te-spacing-xl);
    margin-bottom: var(--te-spacing-xl);
}

.te-podium-place {
    text-align: center;
    padding: var(--te-spacing-lg);
    background: var(--te-bg-card);
    border-radius: var(--te-radius-lg);
    min-width: 150px;
}

.te-place-1 {
    order: 2;
    transform: scale(1.1);
    border: 2px solid #ffd700;
}

.te-place-2 {
    order: 1;
    border: 2px solid #c0c0c0;
}

.te-place-3 {
    order: 3;
    border: 2px solid #cd7f32;
}

.te-podium-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--te-radius-full);
    margin: var(--te-spacing-sm) auto;
}

.te-podium-name {
    display: block;
    font-weight: 600;
    margin-bottom: var(--te-spacing-xs);
}

.te-podium-value {
    color: var(--te-primary);
    font-weight: 700;
}

/* ==========================================================================
   Server Cards
   ========================================================================== */
.te-server-card {
    position: relative;
}

.te-server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--te-spacing-md);
}

.te-server-status {
    display: flex;
    align-items: center;
    gap: var(--te-spacing-xs);
    font-size: 0.75rem;
    font-weight: 600;
}

.te-status-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--te-radius-full);
    background: var(--te-text-muted);
}

.te-online .te-status-dot { background: var(--te-success); }
.te-offline .te-status-dot { background: var(--te-error); }

.te-server-name {
    font-size: 1.125rem;
    margin: 0 0 var(--te-spacing-sm);
}

.te-server-map, .te-server-info {
    font-size: 0.875rem;
    color: var(--te-text-secondary);
    margin-bottom: var(--te-spacing-sm);
}

.te-server-players {
    margin: var(--te-spacing-md) 0;
}

.te-players-count {
    font-size: 0.875rem;
    margin-bottom: var(--te-spacing-xs);
}

.te-players-bar {
    height: 4px;
    background: var(--te-bg-input);
    border-radius: var(--te-radius-full);
    overflow: hidden;
}

.te-players-fill {
    height: 100%;
    background: var(--te-gradient-primary);
    transition: width var(--te-transition-normal);
}

.te-server-actions {
    display: flex;
    gap: var(--te-spacing-sm);
    margin-top: var(--te-spacing-md);
}

.te-info-item {
    display: flex;
    align-items: center;
    gap: var(--te-spacing-xs);
}

.te-info-item code {
    background: var(--te-bg-input);
    padding: var(--te-spacing-xs) var(--te-spacing-sm);
    border-radius: var(--te-radius-sm);
    font-family: var(--te-font-mono);
    font-size: 0.75rem;
}

.te-copy-btn {
    background: none;
    border: none;
    color: var(--te-text-muted);
    cursor: pointer;
    padding: var(--te-spacing-xs);
}

.te-copy-btn:hover {
    color: var(--te-primary);
}

/* ==========================================================================
   Forum Styles
   ========================================================================== */
.te-forum-categories {
    display: grid;
    gap: var(--te-spacing-md);
}

.te-category-card {
    display: flex;
    align-items: center;
    gap: var(--te-spacing-lg);
    padding: var(--te-spacing-lg);
    color: var(--te-text-primary);
}

.te-category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--te-bg-input);
    border-radius: var(--te-radius-md);
    color: var(--te-primary);
}

.te-category-info {
    flex: 1;
}

.te-category-name {
    font-size: 1.125rem;
    margin: 0 0 var(--te-spacing-xs);
}

.te-category-description {
    font-size: 0.875rem;
    color: var(--te-text-muted);
    margin: 0;
}

.te-category-stats {
    text-align: right;
    font-size: 0.875rem;
    color: var(--te-text-muted);
}

.te-topics-list {
    display: flex;
    flex-direction: column;
}

.te-topic-row {
    display: flex;
    align-items: center;
    gap: var(--te-spacing-md);
    padding: var(--te-spacing-md);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background var(--te-transition-fast);
}

.te-topic-row:hover {
    background: var(--te-bg-card-hover);
}

.te-topic-row.te-pinned {
    background: rgba(233,69,96,0.05);
}

.te-topic-info {
    flex: 1;
}

.te-topic-title {
    font-weight: 600;
    color: var(--te-text-primary);
    display: block;
    margin-bottom: var(--te-spacing-xs);
}

.te-topic-meta {
    display: flex;
    align-items: center;
    gap: var(--te-spacing-sm);
    font-size: 0.875rem;
    color: var(--te-text-muted);
}

.te-topic-stats {
    display: flex;
    gap: var(--te-spacing-lg);
}

.te-topic-stats .te-stat {
    text-align: center;
}

.te-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--te-spacing-sm);
    font-size: 0.875rem;
    color: var(--te-text-muted);
    margin-bottom: var(--te-spacing-lg);
}

.te-breadcrumb a {
    color: var(--te-text-muted);
}

.te-breadcrumb a:hover {
    color: var(--te-primary);
}

/* ==========================================================================
   Post/Reply Styles
   ========================================================================== */
.te-post {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: var(--te-spacing-lg);
    padding: var(--te-spacing-lg);
    background: var(--te-bg-card);
    border-radius: var(--te-radius-lg);
    margin-bottom: var(--te-spacing-md);
}

.te-post-author {
    text-align: center;
}

.te-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--te-radius-full);
    margin-bottom: var(--te-spacing-sm);
}

.te-author-name {
    display: block;
    font-weight: 600;
    margin-bottom: var(--te-spacing-xs);
}

.te-author-level {
    font-size: 0.75rem;
    color: var(--te-primary);
}

.te-post-content {
    line-height: 1.8;
}

.te-post-footer {
    margin-top: var(--te-spacing-md);
    padding-top: var(--te-spacing-md);
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.875rem;
    color: var(--te-text-muted);
}

@media (max-width: 768px) {
    .te-post {
        grid-template-columns: 1fr;
    }
    .te-post-author {
        display: flex;
        align-items: center;
        gap: var(--te-spacing-md);
        text-align: left;
    }
    .te-author-avatar {
        width: 48px;
        height: 48px;
        margin: 0;
    }
}

/* ==========================================================================
   Button Sizes
   ========================================================================== */
.te-btn-sm {
    padding: var(--te-spacing-xs) var(--te-spacing-md);
    font-size: 0.75rem;
}

.te-btn-lg {
    padding: var(--te-spacing-md) var(--te-spacing-xl);
    font-size: 1rem;
}

.te-btn-full {
    width: 100%;
}

.te-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--te-text-primary);
}

.te-btn-outline:hover {
    border-color: var(--te-primary);
    color: var(--te-primary);
}

/* ==========================================================================
   No Results
   ========================================================================== */
.te-no-results, .te-no-servers {
    text-align: center;
    padding: var(--te-spacing-2xl);
    color: var(--te-text-muted);
}

.te-no-results h2 {
    color: var(--te-text-secondary);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.te-pagination {
    display: flex;
    justify-content: center;
    gap: var(--te-spacing-sm);
    margin-top: var(--te-spacing-xl);
}

.te-pagination a, .te-pagination span {
    padding: var(--te-spacing-sm) var(--te-spacing-md);
    background: var(--te-bg-card);
    border-radius: var(--te-radius-md);
    color: var(--te-text-secondary);
}

.te-pagination a:hover {
    background: var(--te-bg-card-hover);
    color: var(--te-primary);
}

.te-pagination .current {
    background: var(--te-primary);
    color: #fff;
}

/* ==========================================================================
   Login Prompt
   ========================================================================== */
.te-login-prompt {
    text-align: center;
    padding: var(--te-spacing-xl);
}

/* ==========================================================================
   Connection Badges
   ========================================================================== */
.te-connection-badges {
    display: inline-flex;
    gap: var(--te-spacing-xs);
    margin-left: var(--te-spacing-sm);
}

.te-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: var(--te-radius-sm);
}

.te-badge-discord {
    background: var(--discord-blurple);
}

.te-badge-steam {
    background: var(--steam-blue);
}

/* ==========================================================================
   Level Badge
   ========================================================================== */
.te-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 var(--te-spacing-sm);
    background: var(--te-gradient-primary);
    border-radius: var(--te-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ==========================================================================
   Discord Promo
   ========================================================================== */
.te-discord-promo, .te-discord-cta {
    background: linear-gradient(135deg, rgba(88,101,242,0.2) 0%, rgba(233,69,96,0.2) 100%);
    border: 1px solid rgba(88,101,242,0.3);
}

.te-discord-cta {
    text-align: center;
    padding: var(--te-spacing-2xl);
}

.te-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.te-cta-content svg {
    color: var(--discord-blurple);
    margin-bottom: var(--te-spacing-md);
}

/* ==========================================================================
   Win/Loss Colors
   ========================================================================== */
.te-win, .te-wins { color: var(--te-success); }
.te-loss, .te-losses { color: var(--te-error); }

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 992px) {
    .te-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .te-footer-grid {
        grid-template-columns: 1fr;
    }

    .te-section-header {
        flex-direction: column;
        gap: var(--te-spacing-md);
        text-align: center;
    }

    .te-filters {
        flex-direction: column;
    }
}
