/**
 * Stark Cinema Banner & Modal - Estilos
 * Banner elegante y sutil para móvil + Modal de cartelera
 */

/* ========================================
   BANNER - Solo visible en móvil
   ======================================== */

.stark-cinema-banner-wrapper {
    display: none;
}

@media (max-width: 768px) {
    .stark-cinema-banner-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0 1rem;
        margin-top: 0.5rem;
    }

    /* Texto superior */
    .stark-cinema-banner__header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.125rem;
        margin-bottom: 0.5rem;
    }

    .stark-cinema-banner__cta {
        font-size: 0.8125rem;
        font-weight: 600;
        color: #374151;
        text-align: center;
    }

    .stark-cinema-banner__count {
        font-size: 0.6875rem;
        font-weight: 500;
        color: #6b7280;
    }

    /* Banner con logo grande */
    .stark-cinema-banner {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 100%;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        border-radius: 0.75rem;
        padding: 1rem 1.25rem;
        box-shadow: 0 4px 15px rgba(15, 52, 96, 0.2);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .stark-cinema-banner:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(15, 52, 96, 0.25);
    }

    .stark-cinema-banner__logo {
        height: 2.75rem;
        width: auto;
        object-fit: contain;
        filter: brightness(1.1);
    }

    .stark-cinema-banner__touch {
        position: absolute;
        right: 1rem;
        font-size: 1.25rem;
        color: rgba(255, 255, 255, 0.5);
    }

    /* Crédito inferior */
    .stark-cinema-banner__credit {
        font-size: 0.5625rem;
        font-weight: 400;
        color: #9ca3af;
        margin-top: 0.375rem;
        text-align: center;
    }
}

/* ========================================
   MODAL - Cartelera completa
   ======================================== */

.stark-cinema-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.stark-cinema-modal.active {
    opacity: 1;
    visibility: visible;
}

.stark-cinema-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.stark-cinema-modal__container {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: #0f0f1a;
    border-radius: 1.5rem 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.stark-cinema-modal.active .stark-cinema-modal__container {
    transform: translateY(0);
}

/* Header */
.stark-cinema-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stark-cinema-modal__header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stark-cinema-modal__logo {
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border-radius: 0.5rem;
    padding: 0.25rem;
    object-fit: contain;
}

.stark-cinema-modal__header-text h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.stark-cinema-modal__header-text span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.stark-cinema-modal__close {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stark-cinema-modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.stark-cinema-modal__close i {
    font-size: 1.25rem;
}

/* Tabs */
.stark-cinema-modal__tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: #12121f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stark-cinema-modal__tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.stark-cinema-modal__tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

.stark-cinema-modal__tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.stark-cinema-modal__tab .tab-label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stark-cinema-modal__tab .tab-number {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

/* Content */
.stark-cinema-modal__content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem 2rem;
    background: #0f0f1a;
}

/* Loading */
.stark-cinema-modal__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.stark-cinema-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.stark-cinema-modal__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.stark-cinema-modal__empty i {
    font-size: 3rem;
    opacity: 0.5;
}

.stark-cinema-modal__empty p {
    margin: 0;
    font-size: 0.875rem;
}

/* Movies grid */
.stark-cinema-modal__movies {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Movie Card */
.stark-movie-card {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.875rem;
    transition: all 0.2s ease;
}

.stark-movie-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.stark-movie-card__poster {
    position: relative;
    flex-shrink: 0;
    width: 5rem;
    height: 7.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.stark-movie-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stark-movie-card__no-poster {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 2rem;
}

.stark-movie-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.stark-movie-card__title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stark-movie-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
}

.stark-movie-card__format {
    padding: 0.125rem 0.375rem;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 0.25rem;
    color: #a5b4fc;
    font-weight: 600;
}

.stark-movie-card__duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stark-movie-card__age {
    padding: 0.125rem 0.375rem;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 0.25rem;
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.625rem;
}

.stark-movie-card__schedules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: auto;
}

.stark-movie-card__time {
    padding: 0.375rem 0.625rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #c4b5fd;
}

/* Desktop - Modal centrado */
@media (min-width: 769px) {
    .stark-cinema-modal {
        align-items: center;
    }

    .stark-cinema-modal__container {
        max-height: 85vh;
        border-radius: 1.25rem;
        transform: scale(0.95) translateY(20px);
    }

    .stark-cinema-modal.active .stark-cinema-modal__container {
        transform: scale(1) translateY(0);
    }
}

/* Pantallas pequeñas */
@media (max-width: 360px) {
    .stark-cinema-banner-wrapper {
        padding: 1rem 0 0.75rem;
    }

    .stark-cinema-banner__cta {
        font-size: 0.75rem;
    }

    .stark-cinema-banner__count {
        font-size: 0.625rem;
    }

    .stark-cinema-banner {
        padding: 0.875rem 1.25rem;
        gap: 1.5rem;
    }

    .stark-cinema-banner__logo {
        height: 2.25rem;
    }

    .stark-cinema-banner__touch {
        font-size: 1.125rem;
    }

    .stark-cinema-banner__credit {
        font-size: 0.5rem;
    }

    .stark-cinema-modal__header {
        padding: 1rem;
    }

    .stark-cinema-modal__tabs {
        padding: 0.75rem 1rem;
        gap: 0.375rem;
    }

    .stark-cinema-modal__tab {
        padding: 0.625rem 0.375rem;
    }

    .stark-cinema-modal__content {
        padding: 0.875rem 1rem 1.5rem;
    }

    .stark-movie-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .stark-movie-card__poster {
        width: 4.5rem;
        height: 6.75rem;
    }

    .stark-movie-card__title {
        font-size: 0.75rem;
    }
}


/* ========================================
   PRÓXIMAMENTE - Estilos adicionales
   ======================================== */

/* Tab de próximamente */
.stark-cinema-modal__tab.tab--soon {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
}

.stark-cinema-modal__tab.tab--soon:hover {
    background: rgba(251, 191, 36, 0.15);
}

.stark-cinema-modal__tab.tab--soon.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Aviso de próximamente */
.stark-cinema-modal__soon-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    margin-bottom: 1rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 0.5rem;
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 600;
}

.stark-cinema-modal__soon-notice i {
    font-size: 1rem;
}

/* Tarjeta de película próximamente */
.stark-movie-card--soon {
    border-color: rgba(251, 191, 36, 0.15);
}

.stark-movie-card--soon:hover {
    border-color: rgba(251, 191, 36, 0.25);
}

.stark-movie-card__soon-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.03em;
}

.stark-movie-card__release {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
    padding: 0.375rem 0.625rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 0.375rem;
    color: #fbbf24;
    font-size: 0.6875rem;
    font-weight: 500;
    width: fit-content;
}

.stark-movie-card__release i {
    font-size: 0.75rem;
}
