/* Enhanced Movie Booking System Styles */

/* Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.movie-card {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.movie-poster {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.book-now-btn {
    background: linear-gradient(135deg, #007bff, #00bcd4);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.book-now-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.movie-info {
    padding: 1.5rem;
    color: white;
}

.movie-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.movie-rating {
    color: #ffd700;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.movie-genre {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.movie-times {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.time-slot {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #fff;
}

/* Enhanced Modal Styles */
.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    margin: 2% auto;
    padding: 0;
    border: none;
    width: 95%;
    max-width: 1200px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: #fff;
    position: relative;
    animation: modalFadeIn 0.4s ease-out;
    overflow: hidden;
}

.movie-details-section {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
}

.movie-poster-large {
    flex-shrink: 0;
}

.movie-poster-large img {
    width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.movie-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.trailer-btn, .share-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trailer-btn:hover, .share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.movie-details {
    flex: 1;
}

.movie-details h2 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    color: #fff;
}

.movie-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.movie-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffd700;
}

/* Booking Section */
.booking-section {
    padding: 2rem;
}

.date-time-selector {
    margin: 2rem 0;
}

.date-picker {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.date-option {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 80px;
    border: 2px solid transparent;
}

.date-option:hover {
    background: rgba(255, 255, 255, 0.2);
}

.date-option.selected {
    background: linear-gradient(135deg, #007bff, #00bcd4);
    border-color: #007bff;
}

.date-option .day {
    display: block;
    font-size: 0.9rem;
    color: #ccc;
}

.date-option .date {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.2rem 0;
}

.date-option .month {
    display: block;
    font-size: 0.8rem;
    color: #ccc;
}

.time-slots {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.time-slot {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.time-slot:hover {
    background: rgba(255, 255, 255, 0.2);
}

.time-slot.selected {
    background: linear-gradient(135deg, #007bff, #00bcd4);
    border-color: #007bff;
}

/* Seat Selection */
.seat-selection {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
}

.screen-indicator {
    text-align: center;
    background: linear-gradient(180deg, #fff, #ccc);
    color: #000;
    padding: 0.5rem 3rem;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.seats-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.seats-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.seat-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.row-label {
    color: #fff;
    font-weight: bold;
    min-width: 2rem;
    text-align: center;
    opacity: 0.7;
}

.seat {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.seat::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 3px 3px;
}

.seat:hover:not(.unavailable) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.seat.selected {
    background: linear-gradient(135deg, #007bff, #00bcd4);
    border: none;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.seat.unavailable {
    background: rgba(255, 0, 0, 0.2);
    cursor: not-allowed;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Seat Legend */
.seat-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.legend-seat {
    width: 25px;
    height: 25px;
    border-radius: 5px 5px 0 0;
    position: relative;
}

.legend-seat.available {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-seat.selected {
    background: linear-gradient(135deg, #007bff, #00bcd4);
}

.legend-seat.unavailable {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Booking Summary */
.booking-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    color: #fff;
}

.summary-item:last-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.proceed-btn {
    width: 100%;
    background: linear-gradient(135deg, #007bff, #00bcd4);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.proceed-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.proceed-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Enhanced Payment Modal */
.payment-modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: #fff;
    animation: modalFadeIn 0.4s ease-out;
}

.payment-header {
    text-align: center;
    margin-bottom: 2rem;
}

.payment-header h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.payment-header p {
    color: #ccc;
}

.order-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.order-summary h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    color: #ccc;
}

.summary-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    color: #fff;
    font-weight: 500;
}

.form-group input {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    background: rgba(255, 255, 255, 0.15);
}

.card-input {
    position: relative;
}

.card-input i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
}

.submit-payment {
    background: linear-gradient(135deg, #007bff, #00bcd4);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.payment-security {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #ccc;
}

/* Success Modal */
.success-modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    margin: 10% auto;
    padding: 3rem 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    animation: modalFadeIn 0.4s ease-out;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-modal-content h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.success-modal-content p {
    color: #ccc;
    margin-bottom: 2rem;
}

.ticket-details {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #fff;
}

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

.download-tickets, .close-success {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-tickets {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.close-success {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.download-tickets:hover, .close-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .movie-details-section {
        flex-direction: column;
        padding: 1rem;
    }
    
    .movie-poster-large img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    .date-picker {
        gap: 0.5rem;
    }
    
    .date-option {
        min-width: 60px;
        padding: 0.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .success-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .movie-details h2 {
        font-size: 1.8rem;
    }
    
    .seats-grid {
        gap: 0.5rem;
    }
    
    .seat {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
} 