/* E-tickets: the ticket card with its QR code, shared by the public order page and
   the back office's My tickets. Loaded by both shells. */

.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }

.eticket {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 1.25rem;
    background: var(--public-surface, var(--bs-body-bg));
    border: 1px solid var(--public-border, var(--bs-border-color));
    overflow: hidden;
    transition: transform .3s var(--public-ease, cubic-bezier(.2, .7, .2, 1)), box-shadow .3s ease;
}

.eticket:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(20, 27, 45, .45); }

.eticket header { display: flex; flex-direction: column; gap: .15rem; padding: 1.25rem 1.25rem 1rem; background: var(--public-solid, var(--admin-btn-bg)); color: #fff; }
.eticket header strong { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.eticket header span { font-size: .82rem; opacity: .85; }
.eticket-type { align-self: flex-start; margin-bottom: .4rem; padding: .15rem .6rem; border-radius: 999px; background: var(--admin-accent); color: var(--admin-accent-fg, #fff); font-size: .72rem !important; font-weight: 800; opacity: 1 !important; text-transform: uppercase; letter-spacing: .04em; }

/* The QR sits on white whatever the theme: scanners want dark-on-light. */
.eticket-qr { padding: 1.25rem 1.75rem; background: #fff; border-bottom: 2px dashed var(--public-border, var(--bs-border-color)); }
.eticket-qr svg { display: block; width: 100%; height: auto; }

.eticket footer { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: 1rem; text-align: center; }
.eticket-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 800; font-size: 1.05rem; letter-spacing: .08em; }
.eticket footer span:last-child { font-size: .82rem; color: var(--public-muted, var(--bs-secondary-color)); }

/* Back office: My tickets */
.mytickets-heading { margin: 1.75rem 0 1rem; font-weight: 800; }
.mytickets-heading:first-of-type { margin-top: 0; }
.mytickets-order { margin-bottom: 1.25rem; }
.mytickets-order.is-past { opacity: .75; }
.mytickets-order .ticket-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.eticket-used {
    display: grid;
    place-items: center;
    gap: .5rem;
    aspect-ratio: 1;
    padding: 1.5rem;
    border-bottom: 2px dashed var(--public-border, var(--bs-border-color));
    color: var(--public-muted, var(--bs-secondary-color));
    font-weight: 700;
    text-align: center;
}

.eticket-used i { font-size: 2rem; }
