/* =============================================
   HORUSMU TEMPLATE - FASE 1: RENOVACIÓN GLOBAL
   ============================================= */

/* Importación de Google Fonts - Análisis del logo HorusMU */
@import url('https://fonts.googleapis.com/css2?family=Teko:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* ===== VARIABLES CSS - PALETA EXTRAÍDA DEL LOGO HORUSMU ===== */
:root {
    /* COLORES PRINCIPALES - Dorado/Naranja del logo HorusMU */
    --horus-gold-primary: #F7941D;      /* Color principal extraído del logo */
    --horus-gold-bright: #FFB347;       /* Dorado brillante para hover */
    --horus-gold-dark: #D4751A;         /* Dorado oscuro para sombras */
    --horus-gold-hover: #FFA500;        /* Dorado vibrante para interacciones */
    --horus-gold-accent: #FF8C00;       /* Dorado de acento */
    
    /* FONDOS - Marrón oscuro desaturado que armoniza con dorado */
    --horus-bg-main: #1A1411;           /* Fondo principal marrón muy oscuro */
    --horus-bg-darker: #0F0D0A;         /* Fondo más oscuro para contraste */
    --horus-bg-panel: #2A2318;          /* Fondo de paneles */
    --horus-bg-card: #1F1B15;           /* Fondo de tarjetas */
    --horus-bg-hover: rgba(247, 148, 29, 0.1); /* Fondo hover sutil */
    
    /* BORDES - Tonos marrones/dorados coordinados */
    --horus-border-primary: #3D3426;    /* Borde principal */
    --horus-border-gold: #F7941D;       /* Borde dorado */
    --horus-border-light: #4A4136;      /* Borde claro */
    --horus-border-dark: #2C251C;       /* Borde oscuro */
    
    /* TEXTO - Colores optimizados para legibilidad */
    --horus-text-primary: #E8E6E3;      /* Texto principal claro */
    --horus-text-secondary: #C4C1BC;    /* Texto secundario */
    --horus-text-muted: #8B8680;        /* Texto apagado */
    --horus-text-dark: #1A1411;         /* Texto oscuro para fondos claros */
    --horus-text-gold: #F7941D;         /* Texto dorado */
    
    /* EFECTOS Y SOMBRAS */
    --horus-shadow-gold: 0 0 15px rgba(247, 148, 29, 0.3);
    --horus-shadow-dark: 0 4px 15px rgba(0, 0, 0, 0.5);
    --horus-shadow-hover: 0 8px 25px rgba(247, 148, 29, 0.4);
    --horus-glow-gold: 0 0 20px rgba(247, 148, 29, 0.6);
    
    /* TIPOGRAFÍAS - Gaming moderno + legibilidad profesional */
    --font-titles: 'Teko', sans-serif;  /* Condensada, fuerte, gaming */
    --font-body: 'Roboto', sans-serif;  /* Legible, profesional */
    
    /* TRANSICIONES GLOBALES */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== TIPOGRAFÍAS GLOBALES - TEKO + ROBOTO ===== */

/* Reset global con nueva tipografía */
* {
    font-family: var(--font-body);
    color: var(--horus-text-primary);
    box-sizing: border-box;
}

body {
    background-color: var(--horus-bg-main);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--horus-text-primary);
}

/* TÍTULOS - Fuente Teko condensada y gaming */
h1, h2, h3, h4, h5, h6,
.widget-title,
.panel-title,
.page-title,
.section-title {
    font-family: var(--font-titles);
    font-weight: 600;
    color: var(--horus-gold-primary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h1 { 
    font-size: 2.8rem; 
    font-weight: 700;
    letter-spacing: 2px;
}
h2 { 
    font-size: 2.4rem; 
    font-weight: 600;
}
h3 { 
    font-size: 2.0rem; 
    font-weight: 600;
}
h4 { 
    font-size: 1.7rem; 
    font-weight: 500;
}
h5 { 
    font-size: 1.4rem; 
    font-weight: 500;
}
h6 { 
    font-size: 1.2rem; 
    font-weight: 500;
}

/* Texto del cuerpo - Fuente Roboto legible */
p, span, div, li, td, th {
    font-family: var(--font-body);
    color: var(--horus-text-primary);
}

/* Enlaces */
a {
    color: var(--horus-gold-primary);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--horus-gold-bright);
    text-shadow: var(--horus-glow-gold);
}

/* ===== BOTONES Y FORMULARIOS - DORADO PRINCIPAL ===== */

/* Botones principales */
.btn,
.btn-default,
.btn-primary,
button,
input[type="submit"],
input[type="button"] {
    background: linear-gradient(135deg, var(--horus-gold-primary), var(--horus-gold-dark));
    border: 2px solid var(--horus-gold-primary);
    color: var(--horus-text-dark);
    font-family: var(--font-titles);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--horus-shadow-dark);
    position: relative;
    overflow: hidden;
}

/* Efecto hover de botones con transform */
.btn:hover,
.btn-default:hover,
.btn-primary:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: linear-gradient(135deg, var(--horus-gold-hover), var(--horus-gold-primary));
    border-color: var(--horus-gold-bright);
    color: var(--horus-text-dark);
    transform: translateY(-2px);
    box-shadow: var(--horus-shadow-hover);
}

/* Botones secundarios */
.btn-secondary {
    background: transparent;
    border: 2px solid var(--horus-gold-primary);
    color: var(--horus-gold-primary);
}

.btn-secondary:hover {
    background: var(--horus-gold-primary);
    color: var(--horus-text-dark);
    transform: translateY(-2px);
}

/* Formularios */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    background: var(--horus-bg-card);
    border: 2px solid var(--horus-border-primary);
    color: var(--horus-text-primary);
    font-family: var(--font-body);
    border-radius: 6px;
    padding: 12px 16px;
    transition: all var(--transition-normal);
    width: 100%;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--horus-gold-primary);
    box-shadow: var(--horus-shadow-gold);
    outline: none;
    background: var(--horus-bg-panel);
}

/* ===== PANELES Y TARJETAS - FONDO MARRÓN OSCURO ===== */

.panel,
.card,
.widget,
.content-box,
.game-panel {
    background: var(--horus-bg-panel);
    border: 1px solid var(--horus-border-primary);
    border-radius: 8px;
    box-shadow: var(--horus-shadow-dark);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.panel:hover,
.card:hover,
.widget:hover {
    border-color: var(--horus-border-gold);
    box-shadow: var(--horus-shadow-hover);
}

/* Cabeceras de paneles - Color dorado principal */
.panel-heading,
.card-header,
.widget-header,
.panel-title-bar {
    background: linear-gradient(135deg, var(--horus-bg-darker), var(--horus-bg-main));
    border-bottom: 3px solid var(--horus-gold-primary);
    padding: 16px 24px;
    color: var(--horus-gold-primary);
    font-family: var(--font-titles);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
}

.panel-heading::after,
.card-header::after,
.widget-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--horus-gold-primary), var(--horus-gold-bright));
}

/* Cuerpo de paneles */
.panel-body,
.card-body,
.widget-content,
.panel-content {
    padding: 24px;
    background: var(--horus-bg-card);
    color: var(--horus-text-primary);
    font-family: var(--font-body);
}

/* ===== TABLAS - ENCABEZADOS DORADOS CON TEKO ===== */

.table,
table {
    width: 100%;
    background: var(--horus-bg-card);
    color: var(--horus-text-primary);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--horus-shadow-dark);
    margin-bottom: 20px;
}

/* Encabezados de tabla - Fuente Teko + Color dorado */
.table thead th,
.table .headerRow,
th.headerRow,
th {
    background: linear-gradient(135deg, var(--horus-gold-dark), var(--horus-gold-primary));
    color: var(--horus-text-dark);
    font-family: var(--font-titles);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 12px;
    border: none;
    text-align: left;
    position: relative;
}

/* Filas de tabla con diferenciación sutil */
.table tbody tr,
tr {
    background: var(--horus-bg-card);
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--horus-border-primary);
}

.table tbody tr:nth-child(even),
tr:nth-child(even) {
    background: var(--horus-bg-panel);
}

/* Efecto hover en filas siguiendo nueva paleta */
.table tbody tr:hover,
tr:hover {
    background: var(--horus-bg-hover);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(247, 148, 29, 0.2);
}

.table tbody td,
td {
    padding: 14px 12px;
    color: var(--horus-text-primary);
    font-family: var(--font-body);
    border-top: 1px solid var(--horus-border-primary);
}

/* Celdas especiales */
.table .text-center,
.text-center {
    text-align: center;
}

.table .text-gold,
.text-gold {
    color: var(--horus-gold-primary);
    font-weight: 600;
}

/* ===== BARRA DE NAVEGACIÓN - INTEGRACIÓN PERFECTA ===== */

.navbar,
.navigation,
.nav-bar {
    background: var(--horus-bg-darker);
    border-bottom: 3px solid var(--horus-gold-primary);
    box-shadow: var(--horus-shadow-dark);
    padding: 0;
    position: relative;
}

/* Efecto dorado en borde inferior */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--horus-gold-primary), var(--horus-gold-bright), var(--horus-gold-primary));
}

/* Logo/Brand */
.navbar-brand,
.nav-brand {
    transition: all var(--transition-normal);
    padding: 15px 20px;
}

.navbar-brand:hover,
.nav-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Enlaces de navegación */
.navbar-nav > li > a,
.nav-links a,
.nav-item a {
    color: var(--horus-text-secondary);
    font-family: var(--font-titles);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 16px 20px;
    transition: all var(--transition-normal);
    position: relative;
    display: block;
}

/* Efectos hover y activos - Dorado para interacciones */
.navbar-nav > li > a:hover,
.navbar-nav > li.active > a,
.nav-links a:hover,
.nav-links a.active,
.nav-item a:hover,
.nav-item a.active {
    color: var(--horus-gold-primary);
    background: var(--horus-bg-hover);
    text-shadow: var(--horus-glow-gold);
}

.navbar-nav > li > a::after,
.nav-links a::after,
.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--horus-gold-primary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.navbar-nav > li > a:hover::after,
.navbar-nav > li.active > a::after,
.nav-links a:hover::after,
.nav-links a.active::after,
.nav-item a:hover::after,
.nav-item a.active::after {
    width: 80%;
}

/* ===== ELEMENTOS GAMING ESPECÍFICOS ===== */

/* Estados Online/Offline */
.status-online,
.player-online {
    color: var(--horus-gold-primary);
    font-weight: 600;
    font-family: var(--font-titles);
    text-transform: uppercase;
}

.status-offline,
.player-offline {
    color: #dc3545;
    font-weight: 600;
    font-family: var(--font-titles);
    text-transform: uppercase;
}

/* Barras de progreso gaming */
.progress,
.progress-bar-container {
    background: var(--horus-bg-darker);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--horus-border-primary);
}

.progress-bar,
.progress-fill {
    background: linear-gradient(90deg, var(--horus-gold-dark), var(--horus-gold-primary), var(--horus-gold-bright));
    transition: width 0.8s ease;
    height: 100%;
    border-radius: 12px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== ALERTAS Y NOTIFICACIONES ===== */

.alert {
    border-radius: 8px;
    border: none;
    padding: 16px 24px;
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    border-left: 4px solid #28a745;
    color: #d4edda;
}

.alert-danger,
.alert-error {
    background: rgba(220, 53, 69, 0.15);
    border-left: 4px solid #dc3545;
    color: #f8d7da;
}

.alert-warning {
    background: rgba(247, 148, 29, 0.15);
    border-left: 4px solid var(--horus-gold-primary);
    color: var(--horus-gold-bright);
}

.alert-info {
    background: rgba(23, 162, 184, 0.15);
    border-left: 4px solid #17a2b8;
    color: #bee5eb;
}

/* ===== EFECTOS ESPECIALES Y ANIMACIONES ===== */

/* Efecto glow dorado para elementos destacados */
.glow,
.highlight-gold {
    animation: horusGlow 2s ease-in-out infinite alternate;
}

@keyframes horusGlow {
    from {
        text-shadow: 0 0 5px var(--horus-gold-primary), 
                     0 0 10px var(--horus-gold-primary), 
                     0 0 15px var(--horus-gold-primary);
    }
    to {
        text-shadow: 0 0 10px var(--horus-gold-bright), 
                     0 0 20px var(--horus-gold-bright), 
                     0 0 30px var(--horus-gold-bright);
    }
}

/* Efectos de partículas doradas */
.particle-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--horus-gold-primary) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    animation: particles 10s linear infinite;
}

@keyframes particles {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

/* ===== SCROLLBAR PERSONALIZADA - TEMA HORUS ===== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--horus-bg-darker);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--horus-gold-dark), var(--horus-gold-primary));
    border-radius: 5px;
    border: 1px solid var(--horus-border-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--horus-gold-primary), var(--horus-gold-bright));
}

::-webkit-scrollbar-corner {
    background: var(--horus-bg-darker);
}

/* ===== UTILIDADES Y CLASES AUXILIARES ===== */

.text-gold { color: var(--horus-gold-primary) !important; }
.text-gold-bright { color: var(--horus-gold-bright) !important; }
.bg-horus-dark { background-color: var(--horus-bg-main) !important; }
.bg-horus-panel { background-color: var(--horus-bg-panel) !important; }
.border-gold { border-color: var(--horus-gold-primary) !important; }

.font-title { font-family: var(--font-titles) !important; }
.font-body { font-family: var(--font-body) !important; }

.shadow-gold { box-shadow: var(--horus-shadow-gold) !important; }
.shadow-dark { box-shadow: var(--horus-shadow-dark) !important; }

/* ===== DISEÑO RESPONSIVE - MÓVIL GAMING ===== */

@media (max-width: 768px) {
    /* Títulos más pequeños en móvil */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.9rem; }
    h3 { font-size: 1.7rem; }
    h4 { font-size: 1.5rem; }
    h5 { font-size: 1.3rem; }
    h6 { font-size: 1.1rem; }
    
    /* Botones adaptados */
    .btn {
        padding: 10px 18px;
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    
    /* Paneles compactos */
    .panel-heading,
    .card-header,
    .widget-header {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .panel-body,
    .card-body,
    .widget-content {
        padding: 16px;
    }
    
    /* Tablas responsive */
    .table thead th {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .table tbody td {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    /* Navegación móvil */
    .navbar-nav > li > a {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Extra pequeño para móviles */
    .panel-body,
    .card-body {
        padding: 12px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
}

/* ===== ELEMENTOS LEGACY Y COMPATIBILIDAD ===== */

/* Compatibilidad con elementos existentes del template */
.important-notice,
.game-notice {
    background: var(--horus-bg-hover);
    border: 2px solid var(--horus-gold-primary);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.req-success { color: var(--horus-gold-primary) !important; }
.req-danger { color: #dc3545 !important; }
.req-info { color: #17a2b8 !important; }
.req-warning { color: var(--horus-gold-bright) !important; }

/* Botones de ancho completo */
.full-width-btn {
    width: 100%;
    display: block;
}

.full-width-btn.active {
    background: var(--horus-gold-primary);
    border-color: var(--horus-gold-dark);
    color: var(--horus-text-dark);
}

/* Logos de sistemas de pago actualizados */
.paypal-gateway-logo,
.wompi-gateway-logo,
.coinbase-gateway-logo,
.crypto-gateway-logo,
.mercadopago-gateway-logo,
.pagseguro-gateway-logo {
    background-color: var(--horus-bg-card);
    border: 2px solid var(--horus-border-primary);
    border-radius: 8px;
    padding: 12px;
    transition: all var(--transition-normal);
    display: inline-block;
    margin: 5px;
}

.paypal-gateway-logo:hover,
.wompi-gateway-logo:hover,
.coinbase-gateway-logo:hover,
.crypto-gateway-logo:hover,
.mercadopago-gateway-logo:hover,
.pagseguro-gateway-logo:hover {
    border-color: var(--horus-gold-primary);
    box-shadow: var(--horus-shadow-gold);
    transform: translateY(-2px);
}

/* ===== FINALIZACIÓN - COMENTARIOS DE DESARROLLO ===== */
/*
FASE 1 COMPLETADA - RENOVACIÓN DE ESTILOS GLOBALES HORUSMU
✅ Paleta de colores dorada extraída del logo (#F7941D)
✅ Fondos marrones oscuros desaturados (#1A1411)
✅ Tipografías Google Fonts: Teko (títulos) + Roboto (cuerpo)
✅ Botones con efectos de transición y hover
✅ Paneles y tarjetas con nueva estética
✅ Tablas con encabezados dorados y fuente Teko
✅ Barra de navegación integrada perfectamente
✅ Elementos gaming específicos
✅ Diseño responsive
✅ Efectos especiales y animaciones
*/
