/* Styles moved from public_html/index.php for the Tiempos floating widget */

/* Floating widget for tiempos */
.hidden{display:none !important}
.tiempos-widget{position:fixed;right:16px;bottom:16px;z-index:9999;min-width:260px;max-width:420px}
.tiempos-window{background:#0b1220;color:#fff;border-radius:8px;padding:0;box-shadow:0 6px 24px rgba(0,0,0,0.5);overflow:hidden;font-family:inherit}
.tiempos-header{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;cursor:move;background:linear-gradient(90deg,#111827,#0b1220)}
.tiempos-title{font-size:14px;margin:0;color:#fff}
.tiempos-controls{display:flex;gap:8px;align-items:center}
.tiempos-controls button{background:transparent;border:0;color:#fff;cursor:pointer;font-size:14px}
.tiempos-body{padding:10px 12px;max-height:260px;overflow:auto}
.tiempos-list{margin:0}
.tiempos-item{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px dashed rgba(255,255,255,0.06);font-size:13px}
.tiempos-item:last-child{border-bottom:0}
.tiempos-small{font-size:12px;color:rgba(255,255,255,0.7)}
.nav-button#openTiempos .nav-icon{font-size:18px}

/* small utilities used by the widget */
.tiempo-valor{min-width:80px;text-align:right}

/* Visual alarms */
.tiempo-warning{color:#ffb86b;font-weight:600}
.tiempo-alarm{color:#ff6b6b;font-weight:700;animation:tiempo-pulse 1s ease-in-out infinite}
@keyframes tiempo-pulse{
    0%{transform:translateY(0) scale(1)}
    50%{transform:translateY(-1px) scale(1.03)}
    100%{transform:translateY(0) scale(1)}
}

/* Make alarm more noticeable with subtle background */
.tiempo-alarm::before{content:'';display:inline-block;width:8px;height:8px;background:radial-gradient(circle at 30% 30%, rgba(255,107,107,0.95), rgba(255,107,107,0.5));border-radius:50%;margin-right:6px;vertical-align:middle}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.5;
}

/* Container Principal */
.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header-section {
    text-align: center;
   
}

.main-logo {
    max-width: 100%;
    width: 1000px;
    height: auto;
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.01);
}

.event-banner {
    max-width: 100%;
    width: 1000px;
    height: auto;
    margin-top: -4px;
}

.discord-badge {
    display: inline-block;
    margin-top: 15px;
    transition: transform 0.3s ease;
}

.discord-badge:hover {
    transform: translateY(-2px);
}

/* Layout Principal */
.game-layout {
display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    gap: 8px;
}

.nav-section {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: center;
   
}
.nav-section a{
    margin: 0 6px;
   
}

.section-label {
    font-size: 0.65em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #555;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 500;
}

.nav-button {
    
    width: 95px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    color: #aaa;
    font-size: 0.75em;
    transition: all 0.3s ease;
    
    overflow: hidden;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 215, 0, 0.3);
    color: #FFD700;
    transform: translateX(2px);
}

.nav-icon {
    font-size: 1.5em;
    display: block;
    margin-bottom: 4px;
}

.nav-text {
    display: block;
    font-size: 0.85em;
}

.premium-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border-color: rgba(255, 215, 0, 0.4);
}

.premium-badge:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
    border-color: rgba(255, 215, 0, 0.6);
}

/* Divider */
.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 10px 0;
}

/* Main Content */
.content-area {
    margin-top: 23px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    
}

.iframe-wrapper {
    width: 100%;
    height: 1000px;
    position: relative;
}

.main-iframe {
    width: 100%;
    height: 1000px;
    border: none;
    background: #0a0a0a;
    display: block;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 215, 0, 0.1);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: #888;
    font-size: 0.85em;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1200px) {
    .main-wrapper {
        padding: 15px;
    }
    
    .main-logo,
    .event-banner {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .game-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-section {
        display: contents;
    }
    
    .section-label {
        width: 100%;
        margin: 8px 0 4px;
    }
    
    .nav-button {
        width: auto;
        min-width: 90px;
        padding: 12px 8px;
    }
    
    .nav-divider {
        width: 100%;
    }
    
    
}

@media (max-width: 768px) {
    .main-wrapper {
        padding: 10px;
    }
    
    .header-section {
        margin-bottom: 20px;
    }
    
    .main-logo {
        border-radius: 8px 8px 0 0;
    }
    
    .nav-button {
        min-width: 80px;
        padding: 10px 6px;
    }
    
    .nav-icon {
        font-size: 1.3em;
    }
    
    .nav-text {
        font-size: 0.75em;
    }
    

}

@media (max-width: 480px) {
    .game-layout {
        gap: 10px;
    }
    
    .nav-button {
        min-width: 70px;
        padding: 8px 4px;
    }
    

}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-button {
    animation: fadeInUp 0.3s ease;
}

.nav-button:nth-child(1) { animation-delay: 0.05s; opacity: 0; animation-fill-mode: forwards; }
.nav-button:nth-child(2) { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; }
.nav-button:nth-child(3) { animation-delay: 0.15s; opacity: 0; animation-fill-mode: forwards; }
.nav-button:nth-child(4) { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.nav-button:nth-child(5) { animation-delay: 0.25s; opacity: 0; animation-fill-mode: forwards; }
.nav-button:nth-child(6) { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; }
.nav-button:nth-child(7) { animation-delay: 0.35s; opacity: 0; animation-fill-mode: forwards; }
.nav-button:nth-child(8) { animation-delay: 0.4s; opacity: 0; animation-fill-mode: forwards; }

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* Botón para forzar ocultar loading */
.force-hide-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 4px;
    color: #FFD700;
    padding: 8px 12px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.force-hide-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}