/* /var/www/ea4hxe.com/public_html/assets/css/style.css */

/* ===== VARIABLES Y RESET ===== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #00ff41;
    --text-secondary: #00cc33;
    --border-color: #00ff41;
    --hover-bg: rgba(0, 255, 65, 0.15);
    --hover-shadow: 0 8px 25px rgba(0, 255, 65, 0.4);
    --font-mono: 'Courier New', Courier, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.dark-theme {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.portal-header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    padding: 1.5rem 1rem;
    text-align: center;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.site-name {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.qth-badge {
    display: inline-flex;
    gap: 0.5rem;
    background: rgba(0, 255, 65, 0.1);
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

.intro {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 255, 65, 0.05);
    border-left: 0px solid var(--border-color);
    border-right: none !important; 
}

/* ===== GRID DE BOTONES ===== */
.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: rgba(0, 255, 65, 0.08);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 180px;
}

.menu-btn:hover {
    background: var(--hover-bg);
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
    border-color: var(--text-secondary);
}

.menu-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.btn-label {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.portal-footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content p {
    margin: 0.3rem 0;
}

.timestamp {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.disclaimer {
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.85;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content h1 { font-size: 2rem; }
    .button-grid { grid-template-columns: 1fr; }
    .menu-btn { min-height: 160px; padding: 1.5rem 1rem; }
    .btn-icon { font-size: 2.5rem; }
    .btn-label { font-size: 1.15rem; }
}

@media (max-width: 480px) {
    .qth-badge { flex-wrap: wrap; justify-content: center; }
    .menu-btn { min-height: 140px; }
    .btn-desc { display: none; } /* Ocultar descripción en móviles muy pequeños */
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

.menu-btn:focus {
    outline: 3px solid var(--text-secondary);
    outline-offset: 3px;
}

/* ===== UTILIDADES PARA TABLAS (preparación para futuras secciones) ===== */
table.radio-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border: 1px solid var(--border-color);
}

table.radio-table th,
table.radio-table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

table.radio-table th {
    background: rgba(0, 255, 65, 0.1);
    color: var(--text-primary);
    font-weight: bold;
}

table.radio-table tr:hover {
    background: rgba(0, 255, 65, 0.05);
}

.status-on { color: #00ff41; font-weight: bold; }
.status-off { color: #ff4444; font-weight: bold; }
/* Animación del cursor */
#typewriter-text::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: var(--text-primary);
    font-weight: bold;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
