/**
 * MuSyphid Template 8 - MU LEGACY 99B
 * Estilos principales - Diseño único desde cero
 */

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

:root {
    --gold: #d4af37;
    --gold-light: #e5c158;
    --gold-dark: #b8962e;
    --green: #00ff00;
    --green-dark: #00cc00;
    --brown: #8B4513;
    --brown-light: #a0522d;
    --black: #0a0a0a;
    --dark: #121212;
    --darker: #0d0d0d;
    --gray: #333;
    --gray-light: #666;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--black);
    color: #c0c0c0;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Particle Background */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.preloader-inner {
    text-align: center;
}

.preloader-ring {
    width: 120px;
    height: 120px;
    border: 4px solid var(--gray);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
    position: relative;
}

.preloader-ring-inner {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid var(--gray);
    border-bottom: 3px solid var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-text {
    font-family: 'Orbitron', sans-serif;
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--gray);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--green), var(--gold));
    background-size: 200% 100%;
    animation: loading 2s linear infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Legacy Container */
.legacy-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Navbar */
.legacy-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 2px solid var(--gold);
    backdrop-filter: blur(10px);
}

.nav-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(212,175,55,0.1) 0%, transparent 100%);
}

.nav-inner {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    flex: 0 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(212,175,55,0.5);
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(212,175,55,0.3);
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-center .ms-navbar {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-center .ms-navbar li a {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    padding: 25px 20px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    position: relative;
}

.nav-center .ms-navbar li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-center .ms-navbar li a:hover,
.nav-center .ms-navbar li a.active {
    color: var(--gold);
}

.nav-center .ms-navbar li a:hover::after,
.nav-center .ms-navbar li a.active::after {
    width: 80%;
}

.nav-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(180deg, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0.08) 100%);
    border: 1px solid var(--gold);
    border-radius: 4px;
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.auth-btn:hover {
    background: linear-gradient(180deg, rgba(212,175,55,0.25) 0%, rgba(212,175,55,0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.auth-icon {
    font-size: 16px;
}

/* Hero Section */
.legacy-hero {
    position: relative;
    min-height: 600px;
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh; /* 16:9 ratio */
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    opacity: 0.75;
    border: 0;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(0,255,0,0.05) 0%, transparent 50%),
        linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(13,13,13,0.4) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(212,175,55,0.02) 2px,
            rgba(212,175,55,0.02) 4px
        );
    animation: scanlines 10s linear infinite;
    z-index: 1;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.hero-overlay.glitch {
    animation: heroGlitch 0.5s steps(4) forwards;
}

@keyframes heroGlitch {
    0% { opacity: 1; filter: none; }
    20% { opacity: 0.7; filter: saturate(2) brightness(1.3); transform: translate(3px, 0); }
    40% { opacity: 0.5; filter: saturate(0.5) brightness(0.8); transform: translate(-4px, 1px); }
    60% { opacity: 0.8; filter: hue-rotate(15deg) brightness(1.2); transform: translate(2px, -2px); }
    80% { opacity: 0.6; filter: saturate(3) brightness(1.4); transform: translate(-2px, 2px); }
    100% { opacity: 1; filter: none; transform: translate(0, 0); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 50px 30px;
    max-width: 1200px;
}

.hero-title-group {
    margin-bottom: 50px;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 72px;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 15px;
    text-shadow: 
        0 0 20px rgba(212,175,55,0.5),
        0 0 40px rgba(212,175,55,0.3),
        0 0 60px rgba(212,175,55,0.1);
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(212,175,55,0.5), 0 0 40px rgba(212,175,55,0.3); }
    50% { text-shadow: 0 0 30px rgba(212,175,55,0.7), 0 0 60px rgba(212,175,55,0.5); }
}

.hero-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 10px;
    margin-top: 10px;
    text-shadow: 0 0 20px rgba(0,255,0,0.5);
}

.hero-divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 30px auto;
}

.hero-tagline {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #888;
    letter-spacing: 5px;
    text-transform: uppercase;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}

.stat-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--gray);
    border-radius: 10px;
    padding: 30px 40px;
    min-width: 180px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212,175,55,0.2);
}

.stat-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(212,175,55,0.3);
}

.stat-label {
    font-size: 12px;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Online Counter */
.hero-online {
    max-width: 400px;
    margin: 0 auto;
}

.online-display {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid var(--green);
    border-radius: 10px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.online-icon {
    font-size: 40px;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.online-info {
    flex: 1;
}

.online-count {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--green);
    text-shadow: 0 0 20px rgba(0,255,0,0.5);
}

.online-label {
    font-size: 12px;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.online-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gray);
}

.online-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--green-dark));
    box-shadow: 0 0 10px rgba(0,255,0,0.5);
    transition: width 1s ease;
}

/* News Ticker */
.legacy-ticker {
    background: var(--darker);
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
    padding: 12px 0;
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.ticker-label {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    padding-right: 20px;
    white-space: nowrap;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-item {
    font-size: 14px;
    color: #a0a0a0;
    white-space: nowrap;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ticker-item.active {
    opacity: 1;
}

/* Main Content */
.legacy-main {
    flex: 1;
    padding: 40px 0;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.content-full {
    width: 100%;
}

.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 30px;
}

/* Sidebar */
.sidebar {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid var(--gray);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.sidebar-header {
    background: linear-gradient(180deg, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0.05) 100%);
    border-bottom: 2px solid var(--gold);
    padding: 15px 20px;
}

.sidebar-title {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-left {
    border-left: 3px solid var(--gold);
}

.sidebar-right {
    border-right: 3px solid var(--gold);
}

/* Content Area */
.content-area {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid var(--gray);
    border-radius: 10px;
    padding: 30px;
    min-height: 500px;
    backdrop-filter: blur(10px);
}

/* Footer */
.legacy-footer {
    background: var(--darker);
    border-top: 3px solid var(--gold);
    padding: 40px 0 20px;
    position: relative;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.1) 0%, transparent 50%);
    opacity: 0.5;
}

.footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.footer-text {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

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

.stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--green);
    text-shadow: 0 0 15px rgba(0,255,0,0.3);
}

.stat-name {
    font-size: 12px;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
}

.footer-copy {
    font-size: 12px;
    color: #666;
}

/* SPA Navigation transitions */
.legacy-main {
    transition: opacity 0.15s ease;
}

/* Responsive - desktop breakpoint only (mobile rules in style_mobile.css) */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 220px 1fr 220px;
        gap: 20px;
    }

    .main-container {
        padding: 0 20px;
    }
}
