/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #FFD700;
}

/* Hero Section with Slider */
.hero {
    height: 70vh;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slider-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.slider-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slider-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #FFD700;
    color: #FFD700;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.slider-btn:hover {
    background: #FFD700;
    color: #000;
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Movies Section */
.movies-section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.filter-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid #333;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.movie-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.movie-card:hover {
    transform: translateY(-10px);
    border-color: #FFD700;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

.movie-poster {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.movie-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
}

.movie-info {
    padding: 1.5rem;
}

.movie-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #FFD700;
}

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

.movie-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #FFD700;
}

.movie-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.movie-showtimes {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.showtime {
    padding: 0.3rem 0.8rem;
    background: #333;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #FFD700;
}

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid #333;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #333;
}

.modal-header h3 {
    color: #FFD700;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #FFD700;
}

.modal-body {
    padding: 2rem;
}

.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.step {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    background: #333;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active {
    background: #FFD700;
    color: #000;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.step-content h4 {
    color: #FFD700;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* Showtime Selection */
.showtimes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.showtime-btn {
    padding: 1rem;
    background: #333;
    border: 2px solid #555;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.showtime-btn:hover,
.showtime-btn.selected {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
}

/* Seat Selection */
.cinema-layout {
    text-align: center;
}

.screen {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.seats-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.seat {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
}

.seat.available {
    background: #333;
    border: 2px solid #555;
    color: #fff;
}

.seat.available:hover {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
}

.seat.selected {
    background: #FFD700;
    color: #000;
    border: 2px solid #FFD700;
}

.seat.occupied {
    background: #666;
    color: #999;
    cursor: not-allowed;
    border: 2px solid #666;
}

.seat-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.legend-item .seat {
    width: 20px;
    height: 20px;
    cursor: default;
}

/* Form Styles */
.booking-form {
    display: grid;
    gap: 1.5rem;
}

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

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

.form-group input {
    padding: 1rem;
    background: #333;
    border: 2px solid #555;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #FFD700;
}

/* Booking Summary */
.booking-summary {
    background: #333;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #555;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #555;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.2rem;
    color: #FFD700;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    border-top: 2px solid #333;
    gap: 1rem;
}

/* Button Styles */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #FFD700;
    color: #000;
}

.btn-primary:hover {
    background: #FFA500;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #333;
    color: #fff;
    border: 2px solid #555;
}

.btn-secondary:hover {
    background: #555;
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-success:hover {
    background: #218838;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top: 4px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Modal */
.success-content {
    text-align: center;
    padding: 3rem;
}

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

.success-content h3 {
    color: #FFD700;
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero {
        height: 50vh;
        margin-top: 120px;
    }

    .slider-content h2 {
        font-size: 2rem;
    }

    .slider-content p {
        font-size: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .booking-steps {
        flex-direction: column;
    }

    .seats-container {
        grid-template-columns: repeat(8, 1fr);
        max-width: 400px;
    }

    .seat {
        width: 35px;
        height: 35px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .movies-grid {
        grid-template-columns: 1fr;
    }

    .seats-container {
        grid-template-columns: repeat(6, 1fr);
        max-width: 300px;
    }

    .seat {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }

    .seat-legend {
        gap: 1rem;
    }
}