/* =========================================================
   TRD Events — Frontend Styles
   ========================================================= */

.trd-event-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: inherit;
}

/* ---- Single Row ---- */
.trd-event-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trd-event-row:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trd-event-row:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

/* ---- Inner flex row — single horizontal line ---- */
.trd-event-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important; /* children can stretch to full row height */
    gap: 16px;
    padding: 0 20px;
    min-height: 70px;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

/* ---- 1. Date Block ---- */
.trd-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    text-align: center;
    line-height: 1.1;
    padding: 14px 0;
}

.trd-date-day {
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1;
    display: block;
    /* color set via inline style on the element */
}

.trd-date-month {
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-top: 2px;
    color: inherit;
}

.trd-date-year {
    font-size: 0.72em;
    font-weight: 400;
    display: block;
    margin-top: 1px;
    color: inherit;
    opacity: 0.8;
}

/* ---- 2. Venue Logo — fills full row height ---- */
.trd-venue-logo {
    flex: 0 0 var(--trd-venue-logo-width, 100px);
    width: var(--trd-venue-logo-width, 100px);
    align-self: stretch; /* full height of the row */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px 0;
}

.trd-venue-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ---- 3. Venue Info (constrained — no more giant black gap) ---- */
.trd-venue-info {
    flex: 0 1 var(--trd-venue-info-width, 260px);
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    padding: 14px 0;
}

.trd-venue-name {
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.trd-venue-name:hover {
    text-decoration: underline;
}

.trd-venue-address {
    font-size: 0.8em;
    opacity: 0.6;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Spacer: pushes meta + logos + button to right ---- */
.trd-spacer {
    flex: 1 1 auto;
}

/* ---- 4. Meta (City + Time) — bigger, clearly separated ---- */
.trd-meta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    padding: 14px 0;
}

.trd-city,
.trd-time {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.95em;
    font-weight: 500;
    white-space: nowrap;
}

.trd-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* ---- 5. Artist Logo — default to button height, scalable ---- */
.trd-artist-logo {
    flex: 0 0 auto;
    width: var(--trd-artist-logo-width, auto);
    height: var(--trd-artist-logo-height, 42px); /* matches default button height */
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.trd-artist-logo img {
    width: auto;
    height: 100%;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

/* ---- 6. Action / Ticket Button — wider ---- */
.trd-action {
    flex: 0 0 var(--trd-button-width, 185px);
    width: var(--trd-button-width, 185px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
}

.trd-ticket-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background-color: #0a4e9c;
    color: #ffffff !important;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 2px solid #0a4e9c;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.18s ease, transform 0.12s ease;
    border-radius: 2px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.2;
}

.trd-ticket-btn:hover {
    opacity: 0.82;
    transform: scale(1.025);
}

/* ---- Filters ---- */
.trd-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.trd-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trd-filter-btn {
    padding: 6px 14px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: inherit;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.16s ease;
}

.trd-filter-btn:hover,
.trd-filter-btn.active {
    background-color: #0a4e9c;
    border-color: #0a4e9c;
    color: #ffffff;
}

/* ---- No Events ---- */
.trd-no-events {
    padding: 28px 0;
    text-align: center;
    opacity: 0.6;
}

.trd-no-events p {
    margin: 0;
}

/* ---- Hidden (filtered out) ---- */
.trd-event-row.trd-hidden {
    display: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 960px) {
    .trd-artist-logo {
        display: none;
    }
}

@media (max-width: 720px) {
    .trd-venue-logo {
        flex: 0 0 70px;
        width: 70px;
    }
    .trd-action {
        flex: 0 0 150px;
        width: 150px;
    }
}

@media (max-width: 560px) {
    .trd-event-inner {
        flex-wrap: wrap !important;
        padding: 12px 14px;
        min-height: unset;
    }
    .trd-venue-logo {
        display: none;
    }
    .trd-spacer {
        display: none;
    }
    .trd-venue-info {
        flex: 1 1 auto;
        padding: 0;
    }
    .trd-date-block {
        padding: 0;
    }
    .trd-meta {
        flex-direction: row;
        gap: 12px;
        min-width: 100%;
        padding: 4px 0;
    }
    .trd-action {
        flex: 0 0 100%;
        width: 100%;
        padding: 4px 0;
    }
    .trd-ticket-btn {
        width: 100%;
    }
}
