/* ==========================================================================
   Caxias Shopping Center — componentes das páginas internas
   Usa os tokens definidos em style.css (:root)
   ========================================================================== */

/* O atributo hidden sempre vence o display dos componentes */
[hidden] {
    display: none !important;
}

/* ==========================================================================
   Page hero (faixa de título das páginas internas)
   ========================================================================== */

.cs-page-hero {
    position: relative;
    background: var(--grad-primary);
    color: #fff;
    padding: 3.5rem 0 3rem;
    overflow: hidden;
}

.cs-page-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.cs-page-hero--dark {
    background: var(--grad-cinema);
}

.cs-page-hero--dark::before {
    background: radial-gradient(circle, rgba(28, 152, 144, 0.28), transparent 60%);
}

.cs-page-hero .cs-container {
    position: relative;
}

.cs-page-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0;
}

.cs-page-hero .cs-section-eyebrow {
    color: rgba(255, 255, 255, 0.85);
}

.cs-page-hero-lead {
    max-width: 680px;
    margin: 0.85rem 0 0;
    font-size: 1.05rem;
    opacity: 0.92;
}

.cs-page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 1rem;
    font-size: 0.92rem;
    opacity: 0.92;
}

.cs-page-hero-meta i {
    margin-right: 0.35rem;
}

.cs-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
}

.cs-breadcrumb li + li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.4rem;
    font-size: 10px;
    opacity: 0.7;
}

.cs-breadcrumb a {
    color: rgba(255, 255, 255, 0.92);
}

.cs-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cs-page-hero {
        padding: 2.5rem 0 2.25rem;
    }
}

/* ==========================================================================
   Layout de conteúdo
   ========================================================================== */

.cs-page {
    padding: 4rem 0 5rem;
}

@media (max-width: 768px) {
    .cs-page {
        padding: 2.5rem 0 3.5rem;
    }
}

.cs-narrow {
    max-width: 860px;
    margin: 0 auto;
}

.cs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2.5rem;
    align-items: start;
}

.cs-layout--reverse {
    grid-template-columns: 340px minmax(0, 1fr);
}

.cs-layout > * {
    min-width: 0;
}

@media (max-width: 960px) {
    .cs-layout,
    .cs-layout--reverse {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cs-sticky {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
}

.cs-grid-2,
.cs-grid-3,
.cs-grid-4 {
    display: grid;
    gap: 1.5rem;
}

.cs-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cs-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cs-grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.cs-stack > * + * {
    margin-top: 1.5rem;
}

/* ==========================================================================
   Card genérico
   ========================================================================== */

.cs-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.cs-card--accent {
    border-top: 4px solid var(--primary);
}

.cs-card h2,
.cs-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
}

.cs-card-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    margin: 0 0 1rem;
}

.cs-card-title i {
    color: var(--primary);
}

a.cs-card {
    display: block;
    color: inherit;
    transition: all var(--transition);
}

a.cs-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
    color: inherit;
}

/* Card com ícone (serviços, destaques) */
.cs-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cs-feature-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--bg-soft);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.cs-feature h3 {
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
}

.cs-feature p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.93rem;
}

/* Card com imagem (notícias, eventos, álbuns) */
.cs-media-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.cs-media-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.cs-media-card > a {
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cs-media-card .img {
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
    overflow: hidden;
}

.cs-media-card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cs-media-card:hover .img img {
    transform: scale(1.06);
}

.cs-media-card .body {
    padding: 1.25rem 1.4rem 1.5rem;
    flex: 1;
}

.cs-media-card .tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-dark);
    background: var(--bg-soft);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}

.cs-media-card h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 0.4rem;
}

.cs-media-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.cs-media-card .meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.75rem;
}

/* ==========================================================================
   Texto rico vindo do CMS (TinyMCE)
   ========================================================================== */

.cs-prose {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #2b2f33;
    overflow-wrap: anywhere;
}

.cs-prose > :first-child {
    margin-top: 0;
}

.cs-prose h2,
.cs-prose h3,
.cs-prose h4 {
    margin: 2rem 0 0.75rem;
}

.cs-prose h2 { font-size: 1.6rem; }
.cs-prose h3 { font-size: 1.3rem; }
.cs-prose h4 { font-size: 1.1rem; }

.cs-prose p {
    margin: 0 0 1.15rem;
}

.cs-prose a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cs-prose img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-sm);
    margin: 1.25rem auto;
}

.cs-prose ul,
.cs-prose ol {
    padding-left: 1.4rem;
    margin: 0 0 1.15rem;
}

.cs-prose li {
    margin-bottom: 0.4rem;
}

.cs-prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--primary);
    background: var(--bg-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cs-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    display: block;
    overflow-x: auto;
}

.cs-prose th,
.cs-prose td {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    text-align: left;
}

.cs-prose iframe,
.cs-prose video {
    max-width: 100%;
}

/* ==========================================================================
   Vídeo responsivo / mapa
   ========================================================================== */

.cs-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-md);
}

.cs-video iframe,
.cs-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cs-embed-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 380px;
    background: var(--bg-alt);
}

.cs-embed-map iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

/* ==========================================================================
   Lista de informações com ícone
   ========================================================================== */

.cs-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cs-info-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.cs-info-list li:last-child {
    border-bottom: 0;
}

.cs-info-list i {
    color: var(--primary);
    width: 18px;
    margin-top: 4px;
    text-align: center;
}

.cs-info-list a {
    color: var(--text);
    overflow-wrap: anywhere;
}

.cs-info-list a:hover {
    color: var(--primary-dark);
}

/* ==========================================================================
   Chips / filtros reaproveitam .cs-filter-chips da home.
   Tabs (datas do cinema etc.)
   ========================================================================== */

.cs-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    scrollbar-width: thin;
}

.cs-tab {
    flex: 0 0 auto;
    min-width: 84px;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
    font: inherit;
    transition: all var(--transition);
}

.cs-tab small {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

.cs-tab strong {
    font-size: 1.05rem;
}

.cs-tab:hover {
    border-color: var(--primary);
}

.cs-tab.is-active {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-color);
}

.cs-tab.is-active small {
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Formulários
   ========================================================================== */

.cs-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
}

.cs-form .full {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .cs-form {
        grid-template-columns: 1fr;
    }
}

.cs-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.cs-field input,
.cs-field select,
.cs-field textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.cs-field textarea {
    min-height: 150px;
    resize: vertical;
}

.cs-field input:focus,
.cs-field select:focus,
.cs-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28, 152, 144, 0.15);
}

.cs-form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.cs-form button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

/* Busca inline */
.cs-search-inline {
    display: flex;
    gap: 0.5rem;
    max-width: 640px;
}

.cs-search-inline input {
    flex: 1;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font: inherit;
}

.cs-search-inline input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28, 152, 144, 0.15);
}

/* ==========================================================================
   Alertas / estado vazio
   ========================================================================== */

.cs-alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.cs-alert i {
    margin-top: 3px;
}

.cs-alert--success {
    background: #e8f7f5;
    border-color: #b9e6e1;
    color: var(--primary-darker);
}

.cs-alert--error {
    background: #fdecf3;
    border-color: #f6c4da;
    color: var(--accent);
}

.cs-alert--info {
    background: var(--bg-alt);
    border-color: var(--border);
    color: var(--text);
}

.cs-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.cs-empty i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    display: block;
}

.cs-empty h3 {
    color: var(--text);
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.cs-empty p {
    margin: 0 0 1.25rem;
}

/* ==========================================================================
   Paginação
   ========================================================================== */

.cs-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    list-style: none;
    margin: 3rem 0 0;
    padding: 0;
}

.cs-pagination a,
.cs-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.cs-pagination a:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.cs-pagination .is-active span {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-color);
}

.cs-pagination .is-disabled span {
    opacity: 0.45;
}

/* ==========================================================================
   Galeria de fotos
   ========================================================================== */

.cs-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.cs-gallery a {
    display: block;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
}

.cs-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cs-gallery a::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    background: rgba(18, 123, 119, 0.45);
    opacity: 0;
    transition: opacity var(--transition);
}

.cs-gallery a:hover img {
    transform: scale(1.07);
}

.cs-gallery a:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Diálogo nativo (<dialog class="cs-dialog">)
   ========================================================================== */

.cs-dialog {
    border: 0;
    padding: 0;
    border-radius: var(--radius);
    max-width: min(760px, calc(100vw - 2rem));
    width: 100%;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary);
}

.cs-dialog::backdrop {
    background: rgba(15, 20, 23, 0.65);
    backdrop-filter: blur(4px);
}

.cs-dialog[open] {
    animation: modalIn 0.3s var(--bounce);
}

.cs-dialog--video {
    max-width: min(1000px, calc(100vw - 2rem));
    background: #000;
    border-top: 0;
}

.cs-dialog--video .cs-modal-head {
    border-bottom: 0;
    background: #000;
    color: #fff;
}

.cs-dialog--video .cs-modal-head h3 {
    color: #fff;
}

.cs-dialog--video .cs-modal-close {
    color: #fff;
}

.cs-dialog--video .cs-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ==========================================================================
   Cinema
   ========================================================================== */

.cs-cinema-page {
    background: var(--bg-alt);
}

.cs-movie {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 1.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.cs-movie:hover {
    box-shadow: var(--shadow-md);
}

.cs-movie + .cs-movie {
    margin-top: 1.25rem;
}

.cs-movie.is-hidden {
    display: none;
}

/* Sem horários divulgados: cards compactos em grade */
.cs-movies--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
    gap: 1.25rem;
}

.cs-movies--grid .cs-movie {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
}

.cs-movies--grid .cs-movie + .cs-movie {
    margin-top: 0;
}

@media (max-width: 640px) {
    .cs-movies--grid .cs-movie {
        grid-template-columns: 100px minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .cs-movie {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
}

.cs-movie-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: var(--shadow-md);
}

.cs-movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-movie-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
}

.cs-badge {
    display: inline-block;
    padding: 0.22rem 0.6rem;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--bg-soft);
    color: var(--primary-darker);
}

.cs-badge--3d {
    background: var(--grad-primary);
    color: #fff;
}

.cs-badge--age {
    background: #1a2024;
    color: #fff;
}

.cs-badge--age-l { background: #1f9d55; }
.cs-badge--age-6 { background: #1f9d55; }
.cs-badge--age-10 { background: #2b7bd6; }
.cs-badge--age-12 { background: #e2b007; color: #1a1a1a; }
.cs-badge--age-14 { background: #e67e22; }
.cs-badge--age-16 { background: #d63031; }
.cs-badge--age-18 { background: #111; }

.cs-movie h2 {
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    margin: 0 0 0.4rem;
}

.cs-movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.cs-movie-meta i {
    color: var(--primary);
    margin-right: 0.3rem;
}

.cs-movie-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin: 0 0 0.6rem;
}

.cs-sessions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.cs-session {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 78px;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary);
    color: var(--primary-dark);
    background: #fff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.15;
    transition: all var(--transition);
}

.cs-session small {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.cs-session:hover {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-color);
}

.cs-session:hover small {
    color: rgba(255, 255, 255, 0.85);
}

.cs-sessions-empty {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}

.cs-movie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cs-btn--sm {
    padding: 0.6rem 1.1rem;
    font-size: 13px;
}

.cs-btn--ghost {
    background: #fff;
    color: var(--primary-dark);
    border: 1px solid var(--border);
    box-shadow: none;
}

.cs-btn--ghost:hover {
    background: var(--bg-soft);
    color: var(--primary-darker);
    border-color: var(--primary);
    box-shadow: none;
}

@media (max-width: 640px) {
    .cs-movie-actions .cs-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* ==========================================================================
   Loja (página individual)
   ========================================================================== */

.cs-store-logo {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.cs-store-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cs-social--light a {
    background: var(--bg-soft);
    color: var(--primary-dark);
}

.cs-social--light a:hover {
    color: #fff;
}

/* ==========================================================================
   404
   ========================================================================== */

.cs-404 {
    text-align: center;
    padding: 5rem 0 6rem;
}

.cs-404 .code {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(5rem, 16vw, 9rem);
    font-weight: 800;
    line-height: 1;
    background: var(--grad-vivid);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.cs-404 p {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 2rem;
}

.cs-404 .cs-search-inline {
    margin: 0 auto 1.5rem;
}
