/* Estilos para Tarjetas de Temporadas en Frontend */

/* Tarjeta de Temporada */
.temporada-card-frontend {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    min-height: 400px;
}

.temporada-card-frontend:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Hero de la temporada */
.temporada-hero-frontend {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.temporada-hero-frontend::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.temporada-hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* Badge de temporada */
.temporada-badge-frontend {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.temporada-badge-frontend i {
    font-size: 14px;
}

/* Título de la temporada */
.temporada-titulo-frontend {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* Descripción */
.temporada-descripcion-frontend {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 16px 0;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta información */
.temporada-meta-frontend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.temporada-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.temporada-meta-item i {
    font-size: 18px;
    opacity: 0.9;
}

/* Botón de explorar */
.temporada-btn-explorar {
    background: white;
    color: #1a202c;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.temporada-btn-explorar:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.temporada-btn-explorar i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.temporada-btn-explorar:hover i {
    transform: translateX(4px);
}

/* Estado de la temporada */
.temporada-estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: fadeIn 0.3s ease;
}

.temporada-estado-badge.activa {
    background: rgba(72, 187, 120, 0.25);
    color: #2f855a;
    box-shadow: 0 0 0 1px rgba(72, 187, 120, 0.3);
}

.temporada-estado-badge.proximamente {
    background: rgba(237, 137, 54, 0.25);
    color: #c05621;
    box-shadow: 0 0 0 1px rgba(237, 137, 54, 0.3);
}

.temporada-estado-badge.inactiva {
    background: rgba(160, 174, 192, 0.25);
    color: #4a5568;
    box-shadow: 0 0 0 1px rgba(160, 174, 192, 0.3);
}

.temporada-estado-badge i {
    font-size: 14px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.temporada-card-frontend {
    animation: fadeInUp 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .temporada-hero-frontend {
        height: 350px;
    }

    .temporada-titulo-frontend {
        font-size: 24px;
    }

    .temporada-descripcion-frontend {
        font-size: 14px;
    }

    .temporada-meta-frontend {
        gap: 12px;
    }

    .temporada-meta-item {
        font-size: 13px;
    }
}

/* Efecto de brillo en hover */
.temporada-card-frontend::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.temporada-card-frontend:hover::after {
    left: 100%;
}


/* ===== SKELETON LOADERS ===== */
.skeleton-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-card::before {
    content: '';
    display: block;
    width: 100%;
    height: 200px;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-card::after {
    content: '';
    display: block;
    padding: 20px;
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Lazy Loading - Imagen con transición suave */
.evento-image[loading="lazy"] {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.4s ease-in, transform 0.4s ease-in;
}

.evento-image[loading="lazy"].loaded {
    opacity: 1;
    transform: scale(1);
}

/* Placeholder para imágenes del hero */
.hero-image[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.hero-image[loading="lazy"].loaded {
    opacity: 1;
}

/* Placeholder mientras carga la imagen */
.image-placeholder {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 50%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
