/* styles.css for chaplin/index.html */

body {
    background-color: #f0f2f5; /* Light grey background for the ticket page */
}

#mainHeader {
    background: linear-gradient(90deg, #2d3748, #4a5568);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#mainHeader .logo {
    color: white;
}

#mainHeader .nav-right .cta-button {
    background: #ff6b35;
    border: none;
    transition: background 0.3s ease;
}

#mainHeader .nav-right .cta-button:hover {
    background: #e05a2d;
}

.event-info-summary {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #ff6b35 0%, #ff9a56 100%);
    color: white;
    border-radius: 15px;
    margin-top: 100px; /* Adjust for fixed header */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.event-info-summary h1 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.event-info-summary .subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.summary-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.summary-details p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.summary-details i {
    font-size: 1.4rem;
}

#seat-selection {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

#seat-selection h2 {
    color: #2d3748;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.seating-map-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border: 3px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0; 
}

.stage-image {
    display: block;
    width: 100%;
    height: auto;
}

.seating-map {
   display: none; /* Ocultamos el mapa interactivo */
}

/* Nueva Leyenda Estática */
.seating-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #333;
}

.color-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    margin-right: 0.5rem;
    border: 1px solid rgba(0,0,0,0.2);
}

.color-box.available { background-color: #7ed957; }
.color-box.semi-occupied { background-color: #5170ff; }
.color-box.occupied { background-color: #545454; }

/* Contenedor del botón de reserva */
.reserve-button-container {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

#show-qr-popup {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: bold;
}


/* Estilos para el Popup de Pago */
.payment-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    animation: fadeIn 0.3s ease-out;
}

.payment-popup {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.popup-close-btn:hover {
    color: #333;
}

.payment-popup h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.payment-popup p {
    color: #666;
    margin-bottom: 1.5rem;
}

.qr-code-container {
    margin-bottom: 1.5rem;
}

.qr-code-container img {
    max-width: 100%;
    height: auto;
    border: 2px solid #eee;
    border-radius: 8px;
}

.ticket-calculator {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.ticket-calculator label {
    font-weight: bold;
    color: #495057;
    display: block;
    margin-bottom: 0.5rem;
}

.calculator-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.calculator-controls button {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    font-weight: bold;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.calculator-controls input {
    width: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 5px;
}
/* Hide number input arrows */
.calculator-controls input[type=number]::-webkit-inner-spin-button,
.calculator-controls input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.calculator-controls input[type=number] {
  -moz-appearance: textfield;
}

.total-price-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.popup-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.popup-actions .cta-button {
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
}

.popup-actions .cta-button i {
    margin-right: 0.5rem;
}
.popup-actions .cta-button.secondary {
    background: #6c757d;
}
.popup-actions .cta-button.secondary:hover {
    background: #5a6268;
}

#booking-summary {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

#booking-summary {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

#booking-summary h2 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

#selected-tables p, #total-price p {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

#booking-summary .cta-button {
    margin-top: 1.5rem;
    width: auto;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #25d366, #128C7E); /* WhatsApp green */
}

#booking-summary .cta-button:hover {
    background: linear-gradient(45deg, #1da851, #0f7065);
}

footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .event-info-summary {
        margin-top: 80px;
        padding: 2rem 1rem;
    }
    .event-info-summary h1 {
        font-size: 2rem;
    }
    .event-info-summary .subtitle {
        font-size: 1.1rem;
    }
    .summary-details {
        flex-direction: column;
        gap: 1rem;
    }
    .summary-details p {
        justify-content: center;
    }

    #seat-selection, #booking-summary {
        padding: 1.5rem;
    }
    #seat-selection h2, #booking-summary h2 {
        font-size: 1.5rem;
    }
    .seating-map {
        padding: 10px;
    }
    .table-item {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    .seating-legend {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .seating-legend .legend-item {
        margin-left: auto;
        margin-right: auto;
    }
    #booking-summary .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}
