/**
 * ARKACENTRO - Estilos Eventos (Solo Listado)
 * Archivo: assets/css/events.css
 * Para events.php únicamente
 */

/* ===============================================================================
   HERO NEGRO ( No se porque pero se tuvo que cambiar el rem pa que quede igual )
   =============================================================================== */

.events-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.hero-title-events {
    font-size: 2.5rem;  /* CAMBIADO de 2.2rem a 2.5rem */
    font-weight: 700;
    margin-bottom: 12px;  /* CAMBIADO de 10px a 12px */
    color: var(--white);
}

.hero-subtitle-events {
    font-size: 1.1rem;  /* CAMBIADO de 1rem a 1.1rem */
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400; 
    margin: 0;
}


/* ============================================
   GRID DE EVENTOS
   ============================================ */

.events-grid-section {
    padding: 50px 0;
    background: var(--bg-light);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* ============================================
   TARJETA DE EVENTO
   ============================================ */

.event-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Imagen del Evento */
.event-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-light);
    font-size: 4rem;
}

/* Badge de Estado */
.event-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.status-programado {
    background: rgba(243, 156, 18, 0.95);
    color: white;
}

.status-encurso {
    background: rgba(39, 174, 96, 0.95);
    color: white;
}

.status-finalizado {
    background: rgba(149, 165, 166, 0.95);
    color: white;
}

.status-cancelado {
    background: rgba(231, 76, 60, 0.95);
    color: white;
}

/* Contenido de la Tarjeta */
.event-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Meta Info */
.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--secondary-color);
    font-size: 0.85rem;
    width: 16px;
}

/* Ubicación */
.event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.event-location i {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

/* Descripción */
.event-description {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

/* Botón Ver Detalles */
.btn-view-event {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.btn-view-event:hover {
    background: #8a0909;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.btn-view-event i {
    transition: transform 0.3s ease;
}

.btn-view-event:hover i {
    transform: translateX(5px);
}

/* ============================================
   SIN RESULTADOS
   ============================================ */

.no-results-events {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 5rem;
    color: var(--text-light);
    margin-bottom: 25px;
    opacity: 0.4;
}

.no-results-events h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 12px;
}

.no-results-events p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .events-hero {
        padding: 40px 0;
    }
    
    .hero-title-events {
        font-size: 1.8rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .event-card {
        border-radius: 8px;
    }
    
    .event-image {
        height: 180px;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
}