/* ===================================
   SECTION: TICKETS HERO
   Background image only
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tickets-hero {
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-color: #651639;
    font-family: 'Rye', sans-serif;
    background-attachment: fixed;
}

/* Desktop background */
@media (min-width: 768px) {
    .tickets-hero {
        background-image: url('../assets/Background/Homepage-Ticket/Homepageticket-Dekstop.webp');
    }
}

/* Mobile background */
@media (max-width: 767px) {

    .tickets-hero {
        min-height: 100vh;
        background-position: center top;
        background-image: url('../assets/Background/Homepage-Ticket/Homepageticket-Mobile.webp');
    }

}

.tickets-container {
    text-align: center;
    color: white;
    padding: 100px 20px 25px 25px;
}

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: auto;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity .5s ease,
        transform .5s ease;
}

.ticket-grid.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: all .5s ease;
}

.ticket-card {
    background: linear-gradient(to right,
            rgba(87, 0, 145, 0.35),
            rgba(229, 32, 255, 0.35));
    font-size: 2rem;
    padding: 50px 40px;
    border-radius: 15px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border .3s ease;
}

.ticket-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.35),
            transparent);
    transform: skewX(-25deg);
}

.ticket-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.45),
        0 0 60px rgba(154, 0, 192, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

@keyframes card-shine {
    100% {
        left: 160%;
    }
}

.ticket-card:hover::before {
    animation: card-shine 0.8s forwards;
}

.ticket-card h2 {
    margin-bottom: 10px;
}

.date {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.ticket-btn {
    background: linear-gradient(to right, #fcad1c, #fffc3a);
    position: relative;
    overflow: hidden;
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(255, 200, 0, 0.35);
    transition: transform .25s;
    color: white;
}

.ticket-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
    transform: skewX(-25deg);
    animation: shine-left 0.6s forwards;
    animation-play-state: paused;
}

.ticket-btn:hover::before {
    animation: shine-right 0.6s forwards;
    animation-play-state: running;
}

.ticket-detail {
    max-width: 700px;
    margin: auto;
    padding: 20px;
    background: linear-gradient(to right,
            rgba(87, 0, 145, .35),
            rgba(229, 32, 255, .35));
    border-radius: 20px;
    backdrop-filter: blur(20px);
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes shine-right {
    100% {
        left: 150%;
    }
}

@keyframes shine-left {
    0% {
        left: 150%;
    }

    100% {
        left: -100%;
    }
}

.ticket-btn:hover {
    transform: translateY(-3px);
}

.ticket-option {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
    padding: 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
}

.price {
    font-size: 1.1rem;
    white-space: nowrap;
}

.back-btn {
    margin-top: 30px;
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: linear-gradient(to right, #ff4d6d, #ff7aa2);
    color: white;
    font-family: 'Rye', serif;
    box-shadow: 0 5px 20px rgba(255, 100, 140, .35);
    transition: transform .25s, box-shadow .25s;
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 100, 140, .45);
}

/* ANIMATION STATES */

.ticket-grid,
.ticket-detail {
    transition:
        opacity .45s ease,
        transform .45s ease;
}

/* hidden state */

.hidden {
    opacity: 0;
    transform: translateY(-20px) scale(.97);
    pointer-events: none;
}


@media (max-width: 767px) {

    .tickets-hero {
        background-attachment: scroll;
    }

    .tickets-container {
        padding: 50px 25px 25px 25px;
    }

    .ticket-grid {
        grid-template-columns: 1fr;
        width: 100%;
        height: 100%;
    }

    .ticket-card {
        padding: 25px;
    }

    .ticket-card h2 {
        font-size: 1.4rem;
    }

    .date {
        font-size: 1rem;
    }

    .ticket-btn {
        padding: 10px 20px;
        font-size: .9rem;
    }

    .ticket-detail {
        width: 90%;
        padding: 30px 20px;
    }

    .ticket-detail h2 {
        font-size: 1.6rem;
    }

    .ticket-detail h3 {
        font-size: 1.3rem;
        margin-top: 20px;
    }

    .ticket-option {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 10px;
    }

    .price {
        font-size: 1rem;
    }

    .ticket-option .ticket-btn {
        width: 100%;
    }

    .back-btn {
        width: 100%;
    }
}