/* Estilos para el frontend del plugin Futuro Calendar */

.futuro-calendar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Filtros */
.futuro-calendar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
    font-size: 14px;
}

.futuro-filter {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.futuro-filter:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.25);
}

.futuro-filter.focused {
    border-color: #0073aa;
}

/* Botones */
.futuro-clear-filters,
.futuro-export-btn {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.15s ease-in-out;
    align-self: flex-end;
    margin-top: auto;
}

.futuro-clear-filters:hover,
.futuro-export-btn:hover {
    background: #5a6268;
}

.futuro-export-btn {
    background: #28a745;
    margin-left: 10px;
}

.futuro-export-btn:hover {
    background: #218838;
}

/* Búsqueda */
.futuro-search-input {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.futuro-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.25);
}

/* Eventos */
.futuro-date-group {
    margin-bottom: 40px;
}

/* Eventos con elementos omitidos */
.futuro-event-item[data-activity="Omitir"],
.futuro-event-item[data-theme="Omitir"],
.futuro-event-item[data-language="Omitir"] {
    border-left: 4px solid #ffb900;
    background: #fffbf0;
}

/* Eventos en vivo */
.futuro-event-item[data-stream="live"] {
    border-left: 4px solid #dc3232 !important;
    background: #fff0f0 !important;
    box-shadow: 0 0 10px rgba(220, 50, 50, 0.3);
    position: relative;
}

.futuro-event-item[data-stream="live"]:before {
    content: "🔴 EN VIVO";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3232;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.futuro-date-title {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0073aa;
    text-transform: capitalize;
}

.futuro-events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.futuro-event-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.futuro-event-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.futuro-event-time {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 16px;
    color: #0073aa;
    background: #e3f2fd;
    padding: 8px 12px;
    border-radius: 6px;
    min-width: 120px;
    text-align: center;
}

.futuro-event-content {
    flex: 1;
}

.futuro-event-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.futuro-event-description {
    color: #6c757d;
    margin: 0 0 12px 0;
    line-height: 1.5;
    white-space: pre-line;
}
.futuro-event-description br {
    display: none;
}

.futuro-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 14px;
}

.futuro-event-activity {
    background: #e8f5e8;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.futuro-event-theme {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.futuro-event-language {
    background: #d1ecf1;
    color: #0c5460;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.futuro-event-separator {
    color: #6c757d;
    font-weight: 500;
}

/* Mensaje de no eventos */
.futuro-no-events {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

/* Indicador de carga */
.futuro-loading {
    text-align: center;
    padding: 20px;
    color: #0073aa;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .futuro-calendar-container {
        padding: 15px;
    }
    
    .futuro-calendar-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .futuro-event-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .futuro-event-time {
        min-width: auto;
        align-self: flex-start;
    }
    
    .futuro-event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .futuro-event-separator {
        display: none;
    }
    
    .futuro-date-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .futuro-calendar-filters {
        padding: 15px;
    }
    
    .futuro-event-item {
        padding: 15px;
    }
    
    .futuro-event-title {
        font-size: 16px;
    }
    
    .futuro-event-time {
        font-size: 14px;
        padding: 6px 10px;
    }
}

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

.futuro-event-item {
    animation: fadeIn 0.3s ease-out;
}

/* Estados de hover mejorados */
.futuro-event-activity:hover,
.futuro-event-theme:hover,
.futuro-event-language:hover {
    transform: scale(1.05);
    transition: transform 0.15s ease-in-out;
}

/* Mejoras de accesibilidad */
.futuro-filter:focus,
.futuro-search-input:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Estilos para impresión */
@media print {
    .futuro-calendar-filters,
    .futuro-clear-filters,
    .futuro-export-btn {
        display: none;
    }
    
    .futuro-event-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .futuro-date-title {
        break-after: avoid;
    }
}
