/* ============================================
   MAIN CSS - Estilos Generales CYBERPUNK
   ============================================ */

body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0f;
    overflow-x: hidden;
}

/* ===== NAVEGACIÓN PRINCIPAL CYBERPUNK ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.95), rgba(20, 5, 25, 0.95));
    backdrop-filter: blur(20px);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #ff0080, #00ffff, #ff8c00, #ff0080) 1;
    box-shadow: 
        0 4px 30px rgba(255, 0, 128, 0.3),
        0 0 50px rgba(0, 255, 255, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(90deg, #ff0080, #00ffff, #ff8c00);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logo-slide 3s linear infinite;
    text-shadow: 0 0 30px rgba(255, 0, 128, 0.5);
    letter-spacing: 3px;
}

@keyframes logo-slide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #00ffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff0080, #00ffff);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: #ff0080;
    text-shadow: 0 0 20px #ff0080;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    gap: 15px;
}

.btn-login,
.btn-register {
    padding: 10px 25px;
    border: 2px solid;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
}

.btn-login {
    background: transparent;
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.btn-login:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-register {
    background: linear-gradient(135deg, #ff0080, #ff8c00);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.4);
}

.btn-register:hover {
    box-shadow: 0 0 40px rgba(255, 0, 128, 0.7);
    transform: translateY(-2px) scale(1.05);
}

/* ===== CONTENIDO PRINCIPAL GRID ===== */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 128, 0.1), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.1), transparent 40%);
}

/* ===== SECCIÓN CHAT (Ocupa 2 filas) ===== */
#chat-section {
    grid-column: 1;
    grid-row: 1 / 3;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(30, 10, 35, 0.9));
    border: 2px solid;
    border-image: linear-gradient(135deg, #ff0080, #00ffff) 1;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        0 0 40px rgba(255, 0, 128, 0.3),
        0 0 80px rgba(0, 255, 255, 0.2),
        inset 0 0 50px rgba(255, 0, 128, 0.05);
    position: relative;
    overflow: hidden;
}

#chat-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(255, 0, 128, 0.1),
        transparent 30%
    );
    animation: rotate-bg 10s linear infinite;
    pointer-events: none;
}

/* ===== SECCIÓN RETOS ===== */
#retos-section {
    grid-column: 2;
    grid-row: 1;
    background: linear-gradient(135deg, rgba(20, 30, 20, 0.9), rgba(10, 35, 30, 0.9));
    border: 2px solid;
    border-image: linear-gradient(135deg, #00ffff, #00ff88) 1;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.3),
        0 0 80px rgba(0, 255, 136, 0.2),
        inset 0 0 50px rgba(0, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

#retos-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(0, 255, 255, 0.1),
        transparent 30%
    );
    animation: rotate-bg 8s linear infinite reverse;
    pointer-events: none;
}

/* ===== SECCIÓN CLIPS ===== */
#clips-section {
    grid-column: 2;
    grid-row: 2;
    background: linear-gradient(135deg, rgba(30, 20, 20, 0.9), rgba(35, 10, 20, 0.9));
    border: 2px solid;
    border-image: linear-gradient(135deg, #ff8c00, #ff0080) 1;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        0 0 40px rgba(255, 140, 0, 0.3),
        0 0 80px rgba(255, 0, 128, 0.2),
        inset 0 0 50px rgba(255, 140, 0, 0.05);
    position: relative;
    overflow: hidden;
}

#clips-section::before {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(255, 140, 0, 0.1),
        transparent 30%
    );
    animation: rotate-bg 12s linear infinite;
    pointer-events: none;
}

@keyframes rotate-bg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== TÍTULOS DE SECCIÓN ===== */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    z-index: 10;
}

#chat-section .section-title {
    background: linear-gradient(90deg, #ff0080, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 0, 128, 0.5);
}

#retos-section .section-title {
    background: linear-gradient(90deg, #00ffff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

#clips-section .section-title {
    background: linear-gradient(90deg, #ff8c00, #ff0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 140, 0, 0.5);
}

/* ===== CONTENIDO DE SECCIONES ===== */
.section-content {
    position: relative;
    z-index: 10;
    height: calc(100% - 60px);
    overflow-y: auto;
}

/* Scrollbar cyberpunk */
.section-content::-webkit-scrollbar {
    width: 8px;
}

.section-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.section-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff0080, #00ffff);
    border-radius: 10px;
}

.section-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ffff, #ff0080);
}

/* ===== PLACEHOLDER TEMPORAL ===== */
.placeholder-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, #ff0080, #00ffff);
    border-radius: 2px;
    transition: all 0.3s;
}