/* Ticket Styles - Softened BLM Aesthetic */

.ticket-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    padding: 20px 0;
}

.ticket {
    display: flex;
    width: 600px;
    height: 250px;
    text-decoration: none;
    color: #FFFFFF;
    background-color: rgba(20, 20, 20, 0.85);
    /* Darker, cleaner base */
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.25);
    /* More visible white border */
}

.ticket:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(235, 180, 0, 0.25);
    /* Yellowish glow */
    border-color: var(--accent-color);
    /* Yellowish border */
}

/* The main content area of the ticket */
.ticket-content {
    padding: 30px;
    flex-grow: 1;
    border-right: 2px dotted rgba(255, 255, 255, 0.2);
    /* Dotted line to stub */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ticket-header h3 {
    margin: 0;
    font-size: 2.5em;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

.ticket-body p {
    margin: 15px 0 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.1em;
    color: #ddd;
    line-height: 1.4;
}

.ticket-stub {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 180px;
    flex-shrink: 0;
    background-color: var(--accent-color);
    padding: 20px;
    position: relative;
    color: #000;
}

.stub-label {
    font-size: 0.8em;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: absolute;
    top: 15px;
    right: 15px;
}

.stub-price {
    font-size: 2.2em;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: #000;
    z-index: 2;
}

.stub-barcode {
    width: 100%;
    height: 45px;
    margin-top: 20px;
    background:
        linear-gradient(to right, #000 1px, transparent 1px, transparent 3px, #000 3px, #000 5px, transparent 5px, transparent 8px, #000 8px, #000 9px, transparent 9px, transparent 11px, #000 11px, #000 14px);
    background-size: 15px 100%;
    opacity: 0.6;
    filter: invert(1);
    /* Ensure barcode is visible on dark backgrounds if needed, but currently stub is yellow base in my mind or var based */
}

/* Cutouts matching body background */
.ticket::before,
.ticket::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: #1E1E1E;
    /* Match Main Body Background */
    /* Match Main Body Background */
    /* Match Main Body Background */
    border-radius: 50%;
    right: calc(180px - 15px);
    /* Position over the dashed line */
    z-index: 3;
    border: 1px solid #444;
    /* Match ticket border to hide cutout edge if visible */
}

/* Hide border inside the cutout to make it look clean requires careful stacking or just box-shadow trickery, 
   but for now simple background match is enough. */
.ticket::before {
    top: -17px;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-right-color: transparent;
}

.ticket::after {
    bottom: -17px;
    border-top-color: transparent;
    border-left-color: transparent;
    border-right-color: transparent;
}


.ticket-wallets {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding-top: 15px;
    border-top: 1px solid #444;
    margin-top: auto;
}

.ticket-wallets img {
    height: 50px !important;
    width: auto !important;
    max-width: 260px !important;
    object-fit: contain;
    flex: 0 0 auto;
    display: block;
}

.ticket-wallets img:hover {
    opacity: 0.9;
    transform: translateY(-5px);
}

/* Responsive Tickets */
@media (max-width: 650px) {
    .ticket {
        flex-direction: column;
        width: 100%;
        height: auto;
        min-height: 200px;
        /* Reduced further */
        max-width: 450px;
        margin: 0 auto;
    }

    .ticket-content {
        border-right: none;
        border-bottom: 2px dotted rgba(255, 255, 255, 0.2);
        padding: 15px 20px;
        /* Reduced vertical padding */
        flex-grow: 1;
        gap: 15px;
        /* Add gap between sections instead of relying on large margins */
    }

    .ticket-stub {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        height: auto;
    }

    .stub-label {
        position: static;
        order: 1;
        font-size: 0.7em;
    }

    .stub-price {
        order: 2;
        font-size: 1.8em;
    }

    .stub-barcode {
        display: none;
        /* Hide barcode on mobile if too crowded */
    }

    /* Hide cutouts on mobile to simplify layout */
    .ticket::before,
    .ticket::after {
        display: none;
    }

    .ticket-header h3 {
        font-size: 1.6em;
        /* More compact title */
    }

    .ticket-body p {
        margin-top: 5px;
        /* Tighter spacing */
        font-size: 1em;
    }

    .ticket-wallets {
        margin-top: 10px;
        /* Reduced margin */
        padding-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ticket-wallets img {
        height: 36px !important;
    }
}