/* Estilos do Frontend */

.cpcinema-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.cpcinema-header {
    background: linear-gradient(135deg, #457e91 0%, #2d5269 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.cpcinema-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: bold;
}

.cpcinema-header p {
    margin: 5px 0;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Filtros */
.cpcinema-filters {
    background: #f0f7fb;
    border: 2px solid #457e91;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.cpcinema-search {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #457e91;
    border-radius: 5px;
    font-size: 1em;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.cpcinema-search:focus {
    outline: none;
    border-color: #457e91;
    box-shadow: 0 0 5px rgba(69, 126, 145, 0.3);
}

.cpcinema-toggle-filters {
    background: none;
    border: none;
    color: #457e91;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 0;
    font-size: 1em;
    margin-bottom: 15px;
}

.cpcinema-toggle-filters:hover {
    text-decoration: underline;
}

.cpcinema-advanced-filters {
    background: white;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-top: 15px;
}

.cpcinema-filter-group {
    margin-bottom: 20px;
}

.cpcinema-filter-group h3 {
    color: #457e91;
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.cpcinema-filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.cpcinema-filter-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.cpcinema-filter-options label:hover {
    background: #e8f1f7;
}

.cpcinema-filter-options input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    accent-color: #457e91;
}

.cpcinema-clear-filters {
    background: white;
    border: 1px solid #457e91;
    color: #457e91;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.cpcinema-clear-filters:hover {
    background: #457e91;
    color: white;
}

/* Dias */
.cpcinema-dias {
    display: grid;
    gap: 20px;
}

.cpcinema-dia {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.cpcinema-dia-header {
    background: #457e91;
    color: white;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.cpcinema-dia-header:hover {
    background: #2d5269;
}

.cpcinema-dia-info {
    flex: 1;
}

.cpcinema-data {
    display: inline-block;
    font-size: 1.8em;
    font-weight: bold;
    margin-right: 15px;
}

.cpcinema-dia-nome {
    display: inline-block;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.cpcinema-atracao {
    margin: 10px 0 0 0;
    font-size: 1.1em;
    opacity: 0.95;
}

.cpcinema-toggle-icon {
    font-size: 1.5em;
    transition: transform 0.2s;
    margin-left: 20px;
}

.cpcinema-dia.collapsed .cpcinema-toggle-icon {
    transform: rotate(-90deg);
}

/* Eventos */
.cpcinema-eventos {
    padding: 20px;
    background: #f9f9f9;
    display: grid;
    gap: 15px;
}

.cpcinema-evento {
    background: white;
    border-left: 4px solid #457e91;
    padding: 15px;
    border-radius: 4px;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
}

.cpcinema-evento-horario {
    color: #457e91;
    font-weight: bold;
    padding-top: 5px;
    min-width: 100px;
}

.cpcinema-evento-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.cpcinema-evento-content p {
    margin: 8px 0;
    color: #555;
    font-size: 0.95em;
}

.cpcinema-evento-content strong {
    color: #457e91;
}

.cpcinema-evento-content ul {
    margin: 8px 0 8px 20px;
    padding: 0;
}

.cpcinema-evento-content li {
    margin: 4px 0;
    color: #555;
}

.cpcinema-programa {
    background: #e8f1f7;
    padding: 8px 12px;
    border-radius: 4px;
    color: #457e91;
}

.cpcinema-local {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: bold;
}

.cpcinema-no-results {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #c33;
    margin: 20px 0;
}

/* Responsivo */
@media (max-width: 768px) {
    .cpcinema-header h1 {
        font-size: 1.8em;
    }
    
    .cpcinema-evento {
        grid-template-columns: 1fr;
    }
    
    .cpcinema-data {
        display: block;
        margin-bottom: 5px;
    }
    
    .cpcinema-dia-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cpcinema-toggle-icon {
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .cpcinema-filter-options {
        grid-template-columns: 1fr;
    }
}

/* Estados */
.cpcinema-dia.hidden {
    display: none;
}

.cpcinema-evento.hidden {
    display: none;
}
