/* Competition Modal Styles */
.competition-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    font-weight: bold;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-header h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.ticket-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.ticket-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

.ticket-info strong {
    color: #9a57c7;
    font-weight: 600;
}

/* Competition Ended Banner */
.competition-ended-banner {
    background: linear-gradient(135deg, #9a57c7, #e363f9);
    border: none;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 20px rgba(154, 87, 199, 0.3);
    color: white;
}

.competition-ended-content h3 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.competition-ended-content p {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin: 8px 0;
}

.competition-ended-content strong {
    color: #ffd700;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Competition Sold Out Banner */
.competition-sold-out-banner {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sold-out-content h3 {
    color: #856404;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sold-out-content p {
    color: #856404;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Quantity Section */
.quantity-section {
    margin-bottom: 25px;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.quantity-btn {
    background: #9a57c7;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background: #e363f9!important;
}

.quantity-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#ticketQuantity {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 0 15px;
    font-size: 16px;
    font-weight: 600;
}

.max-tickets {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Slider */
.quantity-slider {
    margin-bottom: 20px;
}

#quantitySlider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #f0f0f0;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 10px;
}

#quantitySlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
}

#quantitySlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    position: relative;
}

.slider-labels span {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
}

.slider-labels span:hover {
    background-color: #9a57c7;
    color: white;
    border-color: #9a57c7;
    transform: translateY(-1px);
}

/* Quiz Section */
.quiz-section {
    margin-bottom: 25px;
}

.quiz-question {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.quiz-select {
    width: 100%;
    padding: 12px;
    height: 52px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.quiz-select:focus {
    outline: none;
    border-color: #9a57c7;
}

/* Action Section */
.action-section {
    margin-bottom: 20px;
}

.add-to-basket-btn {
    width: 100%;
    padding: 15px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.add-to-basket-btn:enabled {
    background: #9a57c7;
    color: white;
}

.add-to-basket-btn:enabled:hover {
    background: #e363f9;
    transform: translateY(-1px);
}

.add-to-basket-btn:disabled {
    cursor: not-allowed;
}

/* Legal Section */
.legal-section {
    text-align: center;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.legal-section a {
    color: #9a57c7;
    text-decoration: underline;
}

.legal-section a:hover {
    color: #e363f9;
}

/* Responsive Design */
@media (max-width: 480px) {
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    #ticketQuantity {
        width: 70px;
        height: 35px;
        font-size: 14px;
    }
    
    .quiz-question {
        font-size: 14px;
    }
    
    .add-to-basket-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .slider-labels span {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .competition-ended-banner {
        padding: 20px;
        margin: 15px 0;
    }
    
    .competition-ended-content h3 {
        font-size: 20px;
    }
    
    .competition-ended-content p {
        font-size: 14px;
    }
    
    .competition-ended-content strong {
        font-size: 16px;
    }
    
    .competition-sold-out-banner {
        padding: 20px;
        margin: 15px 0;
    }
    
    .sold-out-content h3 {
        font-size: 20px;
    }
    
    .sold-out-content p {
        font-size: 14px;
    }
}
