/**
 * Category Hero Modal CSS - Estilos para Hero Card y Modal de Video
 *
 * Este archivo contiene los estilos para la página de experiencias por categoría:
 * - Fix crítico de z-index para modal sobre sticky header
 * - Hero card con background image y overlay
 * - Breadcrumb navigation
 * - Typography (títulos, subtítulos)
 * - Play button para modal de video
 * - Child category cards con hover effects
 * - Responsive design completo
 *
 * Extraído de: resources/views/themes/one2travel/pages/experiences.blade.php
 * Fecha extracción: 2025-10-31
 *
 * @author One2Travel Development Team
 * @version 1.0
 */

/* ============================================
   FIX CRÍTICO: Modal Z-Index
   ============================================ */
/*
 * PROBLEMA: El modal estaba bloqueado por el contexto de apilamiento del main
 * SOLUCIÓN: Forzar z-index específicos para modal, backdrop y dialog
 * VALORES:
 * - Sticky header: z-index 1050
 * - Modal backdrop: z-index 1055
 * - Modal: z-index 1060
 */

/* Modal backdrop - Entre header y modal */
.modal-backdrop {
    z-index: 1055 !important;
}

.modal-backdrop.show {
    z-index: 1055 !important;
}

/* Modal principal - Por encima de todo */
.modal {
    z-index: 1060 !important;
}

#categoryHeroVideoModal {
    z-index: 1060 !important;
}

/* Modal dialog - Heredará el z-index del modal padre */
.modal-dialog {
    position: relative;
    z-index: 1;
}

/* Asegurar que el contenido del modal sea clickeable */
.modal-content {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* ============================================
   HERO CARD - Tarjeta Principal de Categoría
   ============================================ */
/* Card con background image, overlay gradient y contenido centrado */

.hero-card {
    position: relative;
    display: flex;
    align-items: stretch;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4rem;
    overflow: hidden;
    color: #fff;
    background-color: #0f172a;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.25);
    min-height: clamp(420px, 62vh, 640px);
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 45%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-card-body {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
}

.hero-card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
}

/* Text container */
.hero-card-text {
    max-width: 100%;
}

/* ============================================
   HERO BREADCRUMB - Navegación de Migas de Pan
   ============================================ */
/* Breadcrumb con colores personalizados para fondo oscuro */

.hero-breadcrumb {
    background: transparent;
    padding: 0;
}

.hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.65);
}

.hero-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.hero-breadcrumb .breadcrumb-item a:hover {
    color: #ffffff;
}

.hero-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.65);
}

/* ============================================
   HERO TYPOGRAPHY - Tipografía del Hero
   ============================================ */
/* Subtítulo y título principal con responsive font-size */

.hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    margin-bottom: 0;
}

/* ============================================
   HERO PLAY BUTTON - Botón de Reproducción
   ============================================ */
/* Botón circular para abrir modal de video con hover effect */

.hero-play-button {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.hero-play-button:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.55);
    border-color: #fff;
}

.hero-play-button i {
    font-size: 1.9rem;
    margin-left: 0.15rem;
}

/* ============================================
   CHILD CATEGORY CARDS - Subcategorías
   ============================================ */
/* Cards de subcategorías con imagen, overlay y botón de acción */

.child-category-card {
    display: block;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.child-category-card-image {
    position: relative;
    height: 240px;
    /* border-radius: 18px; */
    overflow: hidden;
    background-color: #0f172a;
}

.child-category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.child-category-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
    color: #fff;
    transition: background 0.3s ease, color 0.3s ease;
}

.child-category-title {
    font-family: 'NonBureau', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: inherit;
    transition: color 0.3s ease;
}

.child-category-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* ============================================
   CHILD CATEGORY HOVER - Estados de Hover
   ============================================ */
/* Efectos al pasar el mouse: cambio de color, elevación, animaciones */

.child-category-card:hover .child-category-overlay {
    background: rgba(255, 255, 255, 0.8);
    color: #1b1e34;
}

.child-category-card:hover .child-category-button {
    background: #1b1e34;
    color: #fff;
    transform: translateY(-2px);
}

.child-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
}

.child-category-card:hover .child-category-card-image img {
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE DESIGN - Media Queries
   ============================================ */
/* Ajustes para tablets y desktop (min-width: 768px) */

@media (min-width: 768px) {
    .hero-card-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hero-card-text {
        max-width: 70%;
    }
}
