/* =====================================================
   TicTacTiming — Em destaque
   Módulo compacto para Events Booking + TTT Event Hub
   ===================================================== */

.ttt-highlight {
    --ttt-yellow: #ffd300;
    --ttt-dark: #152023;
    --ttt-panel: #152023;
    --ttt-text: #ffffff;
    --ttt-muted: rgba(255,255,255,0.74);
    --ttt-line: rgba(255,211,0,0.42);
    position: relative;
    color: var(--ttt-text);
    background: transparent !important;
    border: 0 !important;
    width: 100%;
    margin: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    z-index: 1;
}

/* Fundo full-width desenhado pelo próprio módulo para não depender do SP Page Builder */
.ttt-highlight::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--ttt-dark) !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
    z-index: 0;
    pointer-events: none;
}

/* Linha amarela contínua e por cima do conteúdo.
   Fica no próprio módulo, não no wrapper do SP Page Builder. */
.ttt-highlight::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100vw;
    height: 3px;
    transform: translateX(-50%);
    background: var(--ttt-yellow) !important;
    z-index: 3;
    pointer-events: none;
}

.ttt-highlight * {
    box-sizing: border-box;
}

.ttt-highlight__inner {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 18px;
    background: transparent !important;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.ttt-highlight__label-wrap {
    display: flex;
    align-items: center;
}

.ttt-highlight__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--ttt-yellow);
    color: #000;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ttt-highlight__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ff2c2c;
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(255,44,44,0.18);
}

.ttt-highlight__content {
    min-width: 0;
}

.ttt-highlight__title {
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ttt-highlight__meta {
    margin-top: 4px;
    color: var(--ttt-muted);
    font-size: 14px;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ttt-highlight__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.ttt-highlight__btn,
.ttt-highlight__more > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1;
    font-weight: 850;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ttt-highlight__btn--primary {
    background: var(--ttt-yellow);
    color: #000 !important;
    border: 2px solid var(--ttt-yellow);
    box-shadow: 0 4px 12px rgba(255,211,0,0.18);
}

.ttt-highlight__btn--primary:hover {
    background: #e6bd00;
    border-color: #e6bd00;
    transform: translateY(-1px);
}

.ttt-highlight__btn--secondary,
.ttt-highlight__more > summary {
    background: rgba(255,255,255,0.08);
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.20);
}

.ttt-highlight__btn--secondary:hover,
.ttt-highlight__more > summary:hover {
    background: rgba(255,255,255,0.16);
    color: var(--ttt-yellow) !important;
    transform: translateY(-1px);
}

.ttt-highlight__more {
    position: relative;
}

.ttt-highlight__more > summary {
    list-style: none;
}

.ttt-highlight__more > summary::-webkit-details-marker {
    display: none;
}

.ttt-highlight__more-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 185px;
    background: #2b2b2b;
    border-top: 3px solid var(--ttt-yellow);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    padding: 6px 0;
    z-index: 10000;
}

.ttt-highlight__more-panel a {
    display: block;
    padding: 10px 14px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.ttt-highlight__more-panel a:hover {
    background: var(--ttt-yellow);
    color: #000 !important;
}

.ttt-highlight__events {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.ttt-highlight__event {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 8px;
    align-items: baseline;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff !important;
    text-decoration: none !important;
}

.ttt-highlight__event:hover {
    background: rgba(255,211,0,0.18);
}

.ttt-highlight__event-date {
    color: var(--ttt-yellow);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.ttt-highlight__event-title {
    font-size: 13px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ttt-highlight__event-location {
    grid-column: 2;
    color: var(--ttt-muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



@media (min-width: 992px) {
    .ttt-highlight__actions {
        gap: 12px;
    }

    .ttt-highlight__btn,
    .ttt-highlight__more > summary {
        min-height: 46px;
        padding: 12px 18px;
        font-size: 14px;
        border-radius: 10px;
    }

    .ttt-highlight__btn--primary {
        min-width: 120px;
        box-shadow: 0 6px 16px rgba(255,211,0,0.24);
    }

    .ttt-highlight__btn--secondary,
    .ttt-highlight__more > summary {
        min-width: 92px;
    }
}

@media (max-width: 991px) {
    .ttt-highlight__inner {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 13px 14px;
    }

    .ttt-highlight__label-wrap,
    .ttt-highlight__actions {
        justify-content: flex-start;
    }

    .ttt-highlight__title,
    .ttt-highlight__meta {
        white-space: normal;
    }

    .ttt-highlight__actions {
        flex-wrap: wrap;
    }

    .ttt-highlight__events {
        grid-template-columns: 1fr;
    }

    .ttt-highlight__more-panel {
        left: 0;
        right: auto;
    }
}

@media (max-width: 575px) {
    .ttt-highlight__btn,
    .ttt-highlight__more,
    .ttt-highlight__more > summary {
        width: 100%;
    }

    .ttt-highlight__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .ttt-highlight__label {
        font-size: 11px;
    }

    .ttt-highlight__title {
        font-size: 19px;
    }

    .ttt-highlight__meta {
        font-size: 13px;
    }

    .ttt-highlight__more-panel {
        position: static;
        margin-top: 7px;
        width: 100%;
    }
}

