/*
    Buy Tickets - the match-page banner and the interstitial page.

    Own stylesheet per the house rule that CSS belongs in a view-specific file
    rather than inline in markup or built up in a C# helper. Linked with
    asp-append-version so a change busts the Cloudflare cache; an unversioned
    link keeps the same URL and stays stuck behind a 30 day max-age.

    Mobile first - most Diski Zone traffic is a phone, so the stacked layout is
    the base case and the side-by-side split is the enhancement.
*/

/* ------------------------------------------------ match page banner */
.match-tickets {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 20px 0;
    padding: 16px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #007105 0%, #0cae13 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.match-tickets-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    min-width: 0;
}

.match-tickets-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.match-tickets-label i { font-size: 20px; flex-shrink: 0; }

.match-tickets-price {
    font-size: 14px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 3px 11px;
    white-space: nowrap;
}

.match-tickets-seller {
    font-size: 12.5px;
    opacity: 0.85;
}

.match-tickets-btn {
    display: block;
    text-align: center;
    padding: 12px 26px;
    border-radius: 8px;
    background: #fff;
    color: #007105;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.match-tickets-btn:hover,
.match-tickets-btn:focus {
    color: #005a04;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

@media (min-width: 576px) {
    .match-tickets {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    .match-tickets-btn {
        display: inline-block;
        flex-shrink: 0;
    }
}

/* ------------------------------------------------------ interstitial */
.ticket-interstitial {
    display: flex;
    justify-content: center;
    padding: 30px 16px 60px;
}

.ticket-interstitial-card {
    width: 100%;
    max-width: 760px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 28px 22px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.ticket-interstitial-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #007105;
}

.ticket-interstitial-sub {
    font-size: 14px;
    color: #666;
    margin: 0 0 22px;
}

/*  The ad must never be able to push this page wider than the viewport - the
    same auto-ads containment problem that broke the team page. */
.ticket-interstitial-ad {
    margin: 0 auto 22px;
    max-width: 100%;
    overflow: hidden;
}

.ticket-interstitial-count {
    font-size: 14px;
    color: #666;
    margin: 0 0 14px;
}

.ticket-interstitial-btn {
    display: inline-block;
    padding: 13px 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #007105 0%, #0cae13 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.ticket-interstitial-btn:hover,
.ticket-interstitial-btn:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(12, 174, 19, 0.35);
}

.ticket-interstitial-back {
    display: block;
    margin-top: 16px;
    font-size: 13.5px;
    color: #666;
}

@media (prefers-reduced-motion: reduce) {
    .match-tickets-btn,
    .ticket-interstitial-btn { transition: none; }
    .match-tickets-btn:hover, .match-tickets-btn:focus,
    .ticket-interstitial-btn:hover, .ticket-interstitial-btn:focus { transform: none; }
}
