/* === VIEWS SYSTEM COMPONENT === */
/* Sistema de vistas SPA - Estilos base y transiciones */

/* Importar variables compartidas */
@import url('../../shared/styles/variables.css');

/* ===== CONTENEDOR BASE DE VISTAS ===== */
.main-content-area {
    padding: 20px 30px;
    margin: 0 auto;
    max-width: 1200px;
    min-height: 60vh;
    transition: all 0.3s ease;
}

.view-section {
    /* Clase base para todas las vistas SPA */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HEADERS DE VISTAS ===== */
.view-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(169, 60, 122, 0.3);
}

.view-header h2 {
    color: var(--text-color-light);
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'MuseoModerno', sans-serif;
}

.view-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1em;
    font-weight: 400;
    margin: 0;
}

/* ===== CONTENIDO COMPLETO DE VISTAS ===== */
.view-content-full {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== BOTONES DE FUNCIÓN HERO ===== */
.hero-function-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color-light);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    text-align: center;
}

/* Hover effects simplified for cleaner UX */

.hero-function-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(169, 60, 122, 0.5);
}

.hero-function-btn i {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

/* Icon hover effects removed */

.btn-label {
    font-size: 0.9em;
    font-weight: 500;
    margin-top: 2px;
}

/* ===== CONTROLES HUB ===== */
.hero-controls-hub {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0;
    margin-top: 15px;
}

/* ===== TRANSICIONES ENTRE VISTAS ===== */
/* Animación de entrada */
@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de salida */
@keyframes viewFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Aplicar animaciones */
.view-section.entering {
    animation: viewFadeIn 0.4s ease forwards;
}

.view-section.leaving {
    animation: viewFadeOut 0.3s ease forwards;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Mobile - mantener funcionalidad del header fix */
@media (max-width: 768px) {
    .main-content-area {
        padding: 15px 20px;
        margin-top: 10px; /* Espacio adicional por header 75px */
    }
    
    .hero-controls-hub {
        gap: 15px;
        padding: 15px 0;
        margin-top: 12px;
    }
    
    .hero-function-btn {
        padding: 10px 12px;
        font-size: 0.8em;
        min-width: 70px;
        gap: 4px;
    }
    
    .hero-function-btn i {
        font-size: 1.1em;
    }
    
    .btn-label {
        font-size: 0.8em;
    }
    
    .view-header h2 {
        font-size: 1.6em;
    }
    
    .view-subtitle {
        font-size: 0.9em;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    .main-content-area {
        padding: 12px 15px;
    }
    
    .hero-controls-hub {
        gap: 12px;
        padding: 12px 0;
        margin-top: 10px;
    }
    
    .hero-function-btn {
        padding: 8px 10px;
        font-size: 0.75em;
        min-width: 60px;
        gap: 3px;
    }
    
    .hero-function-btn i {
        font-size: 1em;
    }
    
    .btn-label {
        font-size: 0.75em;
    }
    
    .view-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .view-header h2 {
        font-size: 1.4em;
    }
}

/* ===== ESTADOS DE CARGA ===== */
.view-section.loading {
    opacity: 0.5;
    pointer-events: none;
}

.view-section.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(169, 60, 122, 0.3);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: viewLoading 1s linear infinite;
}

@keyframes viewLoading {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== FEEDBACK VISUAL ===== */
.hero-function-btn:active {
    transform: translateY(-1px) scale(0.95);
}

/* Focus states para navegación por teclado */
.hero-function-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* RECORDATORIO: Este componente requiere:
   - Font Awesome icons: fa-home, fa-heart, fa-list, fa-calendar, fa-history, fa-share, fa-search
   - Variables CSS: --accent-color, --text-color-light, --accent-text
   - JavaScript: SPA routing, Event Bus integration
   - Animation utilities: fadeIn/fadeOut para transiciones suaves
   - Views HTML: 7 templates de vistas específicas
*/
