/* SBD Event Tickets - frontend styles */

.sbd-tickets-section {
    margin-top: 2.5rem;
    padding: 1.5rem 1.75rem;
    border-radius: 0.75rem;
    background: #f5f5f7;
    border: 1px solid #e0e0e0;
}

.sbd-tickets-heading {
    font-size: 1.5rem;
    margin: 0 0 1.25rem;
    font-weight: 600;
    color: #222;
}

/* Layout of the list of tickets */
.sbd-tickets-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Individual ticket card */
.sbd-ticket-block {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: #ffffff;
    border: 1px solid #e2e2e5;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

/* Accent strip on the left */
.sbd-ticket-block::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #2563eb, #22c55e);
}

/* Left side: text/meta */
.sbd-ticket-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
}

/* Header row: title + status badge */
.sbd-ticket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.sbd-ticket-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

/* Status badge */
.sbd-ticket-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.1;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* Status colors */
.sbd-status-unused {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

.sbd-status-used {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #e5e7eb;
}

.sbd-status-expired,
.sbd-status-invalid {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* Body */
.sbd-ticket-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sbd-ticket-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #6b7280;
}

.sbd-ticket-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
}

.sbd-ticket-subtext {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Right side: QR */
.sbd-ticket-qr {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.75rem;
    border-left: 1px dashed #e5e7eb;
}

.sbd-ticket-qr img {
    display: block;
    width: 120px;
    height: 120px;
}

/* Responsive: stack on small screens/emails */
@media (max-width: 640px) {
    .sbd-ticket-block {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .sbd-ticket-qr {
        width: 100%;
        justify-content: flex-start;
        padding-left: 0;
        border-left: 0;
        border-bottom: 1px dashed #e5e7eb;
        padding-bottom: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .sbd-ticket-qr img {
        width: 100px;
        height: 100px;
    }

    .sbd-ticket-header {
        flex-wrap: wrap;
    }
}
