/* GDfm Tour Dates v1.5.1 */

/* ---- Main page ---- */

.gdfm-td-wrap {
    max-width: 720px;
    margin: 0 auto;
}

/* ---- Hero card ---- */

.gdfm-td-hero {
    background: #111;
    border-radius: 12px;
    padding: 28px 28px 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--gdfm-accent, #2AADAD);
}

.gdfm-td-hero-ghost {
    position: absolute;
    top: -10px;
    right: 16px;
    font-size: 64px;
    font-weight: 500;
    color: rgba(255,255,255,0.06);
    line-height: 1;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.gdfm-td-hero-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gdfm-accent, #2AADAD);
    margin-bottom: 14px;
    line-height: 1.2;
}

.gdfm-td-hero-dot {
    width: 8px;
    height: 8px;
    background: var(--gdfm-accent, #2AADAD);
    border-radius: 50%;
    display: inline-block;
    animation: gdfm-td-pulse 2s infinite;
}

@keyframes gdfm-td-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.gdfm-td-hero-band {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
    line-height: 1.1;
}

.gdfm-td-hero-event {
    font-size: 15px;
    color: rgba(255,255,255,0.45);
    margin: 0 0 18px;
    line-height: 1.2;
}

.gdfm-td-hero-details {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.gdfm-td-hero-detail {
    display: flex;
    flex-direction: column;
}

.gdfm-td-hero-detail-label {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 2px;
    line-height: 1.2;
}

.gdfm-td-hero-detail span:last-child {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.2;
}

.gdfm-td-hero-action {
    margin-left: auto;
}

.gdfm-td-hero .gdfm-td-badge--tickets {
    color: #111;
    background: var(--gdfm-accent, #2AADAD);
    padding: 8px 20px;
    font-size: 13px;
}

.gdfm-td-hero .gdfm-td-badge--tickets:hover {
    filter: brightness(1.15);
}

.gdfm-td-hero .gdfm-td-badge--soldout {
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
}

.gdfm-td-hero .gdfm-td-badge--cancelled {
    color: #f09595;
    background: rgba(240,149,149,0.15);
}

.gdfm-td-hero .gdfm-td-badge--postponed {
    color: #FAC775;
    background: rgba(250,199,117,0.15);
}

/* ---- Section labels ---- */

.gdfm-td-section-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.2;
}

.gdfm-td-section-label + .gdfm-td-list {
    margin-bottom: 28px;
}

/* ---- List / rows ---- */

.gdfm-td-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gdfm-td-row {
    display: flex;
    align-items: stretch;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.gdfm-td-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gdfm-td-row--upcoming {
    border-left: 3px solid var(--gdfm-accent, #2AADAD);
}

.gdfm-td-row--recent {
    border-left: 3px solid #ccc;
}

/* ---- Date block ---- */

.gdfm-td-date {
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    flex-shrink: 0;
}

.gdfm-td-row--upcoming .gdfm-td-date {
    background: #111;
}

.gdfm-td-row--upcoming .gdfm-td-month {
    color: var(--gdfm-accent, #2AADAD);
    font-weight: 600;
}

.gdfm-td-row--upcoming .gdfm-td-day {
    color: #fff;
}

.gdfm-td-row--upcoming .gdfm-td-dow {
    color: rgba(255,255,255,0.5);
}

.gdfm-td-row--recent .gdfm-td-date {
    background: #f2f2f2;
}

.gdfm-td-month {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    line-height: 1.2;
}

.gdfm-td-day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    margin: 1px 0;
}

.gdfm-td-dow {
    font-size: 11px;
    color: #888;
    line-height: 1.2;
}

/* ---- Info block ---- */

.gdfm-td-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.gdfm-td-row .gdfm-td-info {
    padding: 14px 18px;
    justify-content: center;
}

.gdfm-td-band {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gdfm-td-event {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    line-height: 1.2;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gdfm-td-venue {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gdfm-td-city {
    font-size: 14px;
    color: #777;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Action badges ---- */

.gdfm-td-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-right: 18px;
}

.gdfm-td-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 6px;
    white-space: nowrap;
    line-height: 1.2;
    text-decoration: none;
}

.gdfm-td-badge--tickets {
    color: #111;
    background: var(--gdfm-accent, #2AADAD);
}

.gdfm-td-badge--tickets:hover {
    filter: brightness(1.15);
    text-decoration: none;
    color: #111;
}

.gdfm-td-badge--soldout {
    color: #888;
    background: #f0f0f0;
}

.gdfm-td-badge--cancelled {
    color: #a32d2d;
    background: #fcebeb;
}

.gdfm-td-badge--postponed {
    color: #854f0b;
    background: #faeeda;
}

.gdfm-td-badge--setlist {
    color: #555;
    background: transparent;
    border: 1px solid #ccc;
}

.gdfm-td-badge--setlist:hover {
    border-color: #999;
    color: #333;
    text-decoration: none;
}

.gdfm-td-empty {
    font-size: 14px;
    color: #999;
    line-height: 1.2;
}

/* ---- Sidebar ---- */

.gdfm-td-sidebar {
    font-size: 13px;
}

.gdfm-td-sidebar-section {
    padding: 0 0 14px;
}

.gdfm-td-sidebar-section:last-child {
    padding-bottom: 0;
}

.gdfm-td-sidebar-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
    margin: 0 0 12px;
    line-height: 1.2;
}

/* Hide any theme HR inside the widget */
.widget_gdfm_tour_dates_widget hr,
.widget_gdfm_tour_dates_widget .widget-title + hr {
    display: none;
}

.gdfm-td-sidebar-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.gdfm-td-sidebar-row:last-child {
    margin-bottom: 0;
}

.gdfm-td-sidebar-row .gdfm-td-date {
    min-width: 44px;
    background: #111;
    border-radius: 6px;
    padding: 6px 4px;
    justify-content: center;
    align-self: center;
}

.gdfm-td-sidebar-row .gdfm-td-month {
    font-size: 9px;
    color: var(--gdfm-accent, #2AADAD);
    font-weight: 600;
}

.gdfm-td-sidebar-row .gdfm-td-day {
    font-size: 17px;
    color: #fff;
}

.gdfm-td-sidebar-row .gdfm-td-dow {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
}

/* Recent sidebar date blocks use muted style */
.gdfm-td-sidebar-section:last-child .gdfm-td-sidebar-row .gdfm-td-date {
    background: #f2f2f2;
}

.gdfm-td-sidebar-section:last-child .gdfm-td-sidebar-row .gdfm-td-month {
    color: #999;
}

.gdfm-td-sidebar-section:last-child .gdfm-td-sidebar-row .gdfm-td-day {
    color: #333;
}

.gdfm-td-sidebar-section:last-child .gdfm-td-sidebar-row .gdfm-td-dow {
    color: #999;
}

.gdfm-td-sidebar-row .gdfm-td-info {
    padding-top: 2px;
}

.gdfm-td-sidebar-row .gdfm-td-band {
    font-size: 13px;
    font-weight: 600;
}

.gdfm-td-sidebar-row .gdfm-td-event {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    margin-top: 1px;
}

.gdfm-td-sidebar-row .gdfm-td-venue {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    margin-top: 1px;
}

.gdfm-td-sidebar-row .gdfm-td-city {
    font-size: 12px;
    color: #777;
    margin-top: 1px;
}

.gdfm-td-sidebar-setlist {
    font-size: 11px;
    color: var(--gdfm-accent, #2AADAD);
    text-decoration: none;
    margin-top: 2px;
    display: inline-block;
    line-height: 1.2;
}

.gdfm-td-sidebar-setlist {
    font-size: 11px;
    text-decoration: none;
    margin-top: 2px;
    display: inline-block;
    line-height: 1.2;
}

.gdfm-td-sidebar-setlist:hover {
    text-decoration: underline;
}

/* ---- Mobile ---- */

@media (max-width: 480px) {
    .gdfm-td-hero {
        padding: 20px;
    }

    .gdfm-td-hero-band {
        font-size: 22px;
    }

    .gdfm-td-hero-ghost {
        font-size: 44px;
    }

    .gdfm-td-hero-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .gdfm-td-hero-detail {
        flex-direction: row;
        gap: 0;
    }

    .gdfm-td-hero-detail-label {
        display: none;
    }

    .gdfm-td-hero-detail span:last-child {
        font-size: 14px;
    }

    .gdfm-td-hero-action {
        margin-left: 0;
        margin-top: 10px;
    }

    .gdfm-td-row:hover {
        transform: none;
        box-shadow: none;
    }

    .gdfm-td-date {
        min-width: 60px;
    }

    .gdfm-td-day {
        font-size: 24px;
    }

    .gdfm-td-band {
        font-size: 15px;
    }

    .gdfm-td-event,
    .gdfm-td-venue,
    .gdfm-td-city {
        font-size: 13px;
    }

    .gdfm-td-badge {
        font-size: 12px;
        padding: 6px 14px;
    }
}
