/* --- VIBRANT WATER PARK DESIGN SYSTEM --- */
:root {
    --primary-gradient: linear-gradient(135deg, #FF5E00 0%, #FF9100 100%);
    /* Laranja vibrante das placas */
    --secondary-gradient: linear-gradient(135deg, #0099FF 0%, #00CCFF 100%);
    /* Azul piscina */
    --bg-color: #F0F9FF;
    /* Azul clarinho refrescante */
    --surface-color: rgba(255, 255, 255, 0.9);
    /* Glassmorphism claro */
    --accent-color: #FF5E00;
    --success-color: #10B981;
    --text-primary: #015ccd;
    /* Azul solicitado pelo usuário */
    --text-secondary: #015ccd;
    /* Mantendo consistência com o azul */
    --glass-border: rgba(1, 92, 205, 0.2);
    --shadow-premium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 153, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 94, 0, 0.05) 0%, transparent 20%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66-3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-46-45c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm26 18c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm16 18c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM24 46c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm44-24c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM57 13c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM14 15c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1z' fill='%230099ff' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
    margin: 0;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

#app-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-color);
    min-height: 100vh;
    position: relative;
    padding-bottom: 40px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.screen {
    animation: fadeIn 0.5s ease-out forwards;
}

/* --- GLASSMORPHISM --- */
.glass-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    width: 60px;
    margin-bottom: 5px;
}

.glass-header h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.glass-header h1 .accent {
    color: var(--accent-color);
}

/* --- HERO SECTION --- */
#landing-hero {
    display: flex;
    flex-direction: column;
}

.hero-content {
    padding: 30px 20px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(255, 107, 0, 0.15) 0%, transparent 70%);
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 10px 0;
    line-height: 1.1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* --- PRICE CARDS --- */
.price-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.price-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.price-card.main {
    border-left: 5px solid #FF5E00;
}

.price-card.discount {
    border-left: 5px solid #0099FF;
}

.price-card .label {
    font-size: 0.9rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-card .value {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 5px 0;
}

.price-card .per {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.baby-note {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 30px;
}

.baby-note strong {
    color: var(--success-color);
}

/* --- BUTTONS --- */
.cta-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(255, 107, 0, 0.4);
    transition: all 0.3s ease;
}

.cta-primary:active {
    transform: scale(0.98);
}

/* --- INFO BLOCKS --- */
.info-blocks {
    padding: 20px;
}

.info-block {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 25px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.info-block.important h3 {
    color: var(--accent-color);
    margin-top: 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.info-block ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.info-block li {
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.info-block li strong {
    color: var(--text-primary);
}

.info-block.happy {
    text-align: center;
    border: none;
    padding: 30px 20px;
}

.info-block.happy p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.2rem;
}

/* --- EVENT LIST SCREEN --- */
.page-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    min-height: 70px;
    box-sizing: border-box;
}

.back-button-arrow {
    position: absolute;
    left: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.back-button-arrow:hover {
    color: var(--accent-color);
    /* Efeito hover */
}

.page-header h2,
.page-header h3 {
    font-size: 1.3rem;
    margin: 0;
    text-align: center;
    width: 100%;
}

#events-list-container {
    padding-top: 25px;
    display: flex;
    flex-direction: column;
}

.event-card {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 15px 20px 15px;
    /* Adiciona margem lateral e entre cards */
    display: flex;
    overflow: hidden;
    cursor: pointer;
    background: white;
}

.event-card-image-wrapper {
    width: 40%;
    /* Limita a largura da imagem a 40% */
    flex-shrink: 0;
}

.event-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Garante o aspecto 1x1 sem distorcer */
    display: block;
}

.event-card-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card-info h3 {
    margin: 0 0 2px 0;
}

/* Diminui a margem inferior do dia da semana */
.event-card-info p {
    margin: 1px 0;
    color: #666;
    font-size: 0.9em;
}

/* --- INÍCIO DA ALTERAÇÃO: Estilizar a data do evento --- */
.event-card-info .event-date {
    font-weight: bold;
    color: var(--accent-color);
}

.buy-ticket-btn {
    background-color: transparent;
    border: none;
    padding: 0;
    margin-top: 20px;
    align-self: center;
    cursor: pointer;
    width: 30px;
    height: 30px;
    pointer-events: none;
}

.buy-ticket-btn img {
    width: 100%;
    height: 100%;
}

/* --- PÁGINA DE COMPRA (index.html) --- */
.page-header h3#event-day-purchase {
    margin: 0 0 2px 0;
    color: var(--text-color);
}

.page-header p#event-date-purchase {
    font-weight: bold;
    color: var(--accent-color);
    margin: 1px 0;
}

.page-header p#event-time-purchase {
    margin: 1px 0 5px 0;
    color: #666;
    font-size: 0.9em;
}

.header-texts {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-hint {
    font-size: 0.85em;
    color: #666;
    margin: 20px 0 15px 0;
    text-align: left;
    font-weight: 600;
}

.form-hint-example {
    font-size: 0.8em;
    color: #888;
    margin: 5px 0 -5px 5px;
}

.purchase-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.purchase-item.no-border {
    border-bottom: none;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background-color: #f9f9f9;
    font-size: 18px;
    cursor: pointer;
}

.quantity-value {
    margin: 0 15px;
    font-weight: bold;
}

#buyer-form input {
    width: 100%;
    padding: 15px;
    margin-top: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 0.95rem;
    background: #F8FAFC;
}

#purchase-screen main {
    padding: 0 25px 40px 25px;
}

#finalize-purchase-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--success-color);
    color: white;
    font-size: 1.1em;
    margin-top: 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

/* --- PÁGINA DO INGRESSO (ingresso.html) --- */
.ticket-card {
    border-radius: 12px;
    border: 1px solid #ddd;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 20px auto;
    max-width: 287px;
    width: 100%;
}

.ticket-header {
    text-align: center;
    padding: 15px;
    font-weight: bold;
    font-size: 1.2em;
    border-bottom: 1px dashed #ccc;
}

.ticket-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ticket-qr-area {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-placeholder {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    box-sizing: border-box;
    padding: 10px;
}

.qr-code {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-details {
    text-align: center;
    color: #555;
    line-height: 1.5;
}

.ticket-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 auto 0 auto;
    width: 100%;
    max-width: 320px;
}

.payment-button,
.refresh-button {
    width: 100%;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
}

.payment-button {
    background-color: #007bff;
    color: white;
}

.refresh-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #333;
}

.payment-button.confirmed {
    background-color: var(--success-color);
    pointer-events: none;
}

.purchase-item .item-details {
    flex-grow: 1;
    margin-right: 15px;
}

.purchase-item .item-name {
    font-weight: 500;
    font-size: 1.1em;
}

.purchase-item .item-price {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 800;
    margin-top: 5px;
}

.total-price-container {
    color: var(--accent-color);
    font-weight: bold;
}

.purchase-item .item-description {
    font-size: 0.9em;
    color: var(--text-color);
    margin-top: 10px;
    margin-bottom: 0;
}

.qr-placeholder.used {
    border: 2px solid #aaa;
    color: #888;
    background-color: #f9f9f9;
}

.ticket-details .ticket-type {
    font-size: 1.4em;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 12px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

.baby-note-purchase {
    color: #475569;
    font-size: 0.95rem;
    margin: 5px 0;
}

.footer-banner {
    background: #015ccd;
    color: white;
    padding: 50px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    box-sizing: border-box;
}

.footer-banner h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: white;
    line-height: 1.3;
}

.cnpj-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
}