/* ========================================
   MayanSource LDN Server - Modern Dashboard
   Diseño completamente nuevo y profesional
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a1929;
    --bg-secondary: #132f4c;
    --bg-card: #1e3a5f;
    --accent-blue: #3498db;
    --accent-light: #5dade2;
    --accent-success: #2ecc71;
    --accent-warning: #f39c12;
    --accent-info: #9b59b6;
    --white: #ffffff;
    --gray-light: #ecf0f1;
    --gray-medium: #95a5a6;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 50px rgba(52, 152, 219, 0.4);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-attachment: fixed;
    color: var(--white);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* ========================================
   NAVBAR MODERNA
   ======================================== */
.modern-navbar {
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid var(--accent-blue);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 4px 8px rgba(52, 152, 219, 0.5));
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: rotate(5deg) scale(1.1);
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: -0.5px;
}

.brand-text span {
    font-size: 0.85rem;
    color: var(--accent-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar-status {
    display: flex;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(52, 152, 219, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 2px solid var(--accent-blue);
}

.pulse-dot {
    color: var(--accent-success);
    font-size: 0.75rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.status-indicator span {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(19, 47, 76, 0.5) 0%, transparent 100%);
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-light);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* GRID DE ESTADÍSTICAS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-light));
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-blue);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.stat-primary .stat-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: var(--white);
}

.stat-success .stat-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: var(--white);
}

.stat-info .stat-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: var(--white);
}

.stat-warning .stat-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: var(--white);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   SECCIÓN DE DETALLES
   ======================================== */
.details-section {
    padding: 2rem 2rem 4rem;
}

.details-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

/* BREAKDOWN CARD */
.breakdown-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent-blue);
    height: fit-content;
}

.breakdown-header {
    margin-bottom: 2rem;
}

.breakdown-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.breakdown-header i {
    color: var(--accent-blue);
}

.breakdown-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.breakdown-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--accent-light);
    transition: all 0.3s ease;
}

.breakdown-item:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.breakdown-label {
    color: var(--gray-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.breakdown-value {
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
}

/* SECCIÓN DE JUEGOS */
.games-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent-success);
}

.games-header {
    margin-bottom: 1.5rem;
}

.games-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.games-header i {
    color: var(--accent-success);
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.games-list:empty::after {
    content: 'No hay juegos activos en este momento';
    display: block;
    text-align: center;
    padding: 2rem;
    color: var(--gray-medium);
    font-style: italic;
}

/* GAME CARDS (para el JavaScript) */
.blockquote {
    background: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    border-left: 4px solid var(--accent-blue) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
    transition: all 0.3s ease;
}

.blockquote:hover {
    background: rgba(52, 152, 219, 0.1) !important;
    transform: translateX(5px);
}

.blockquote-footer {
    color: var(--gray-light) !important;
    font-size: 0.9rem !important;
    margin-top: 0.5rem !important;
}

.blockquote-footer::before {
    content: "👥 " !important;
}

/* Legacy support */
.red-sw, .blue-sw {
    color: var(--accent-blue);
}

/* ========================================
   FOOTER MODERNO
   ======================================== */
.modern-footer {
    background: rgba(10, 25, 41, 0.95);
    border-top: 3px solid var(--accent-blue);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(52, 152, 219, 0.5));
}

.footer-text p {
    margin: 0.5rem 0;
    color: var(--gray-light);
}

.footer-text strong {
    color: var(--white);
    font-size: 1.1rem;
}

.footer-copyright {
    margin-top: 1.5rem !important;
    color: var(--gray-medium) !important;
    font-size: 0.85rem !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .details-container {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .brand-text h1 {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .details-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}