/* ==========================================================================
   TennisShop Gym v2 — widgets.css
   Línea gráfica para los widgets Elementor del Gym.
   ========================================================================== */

.elementor-widget-tsg_upcoming,
.elementor-widget-tsg_in_progress,
.elementor-widget-tsg_ticker,
.elementor-widget-tsg_events {
    --tsg-blue: #001489;
    --tsg-blue-deep: #3333cc;
    --tsg-orange: #e66415;
    --tsg-orange-lt: #ff7a2d;
    --tsg-ink: #141414;
    --tsg-muted: #64748b;
    --tsg-subtle: #94a3b8;
    --tsg-border: #e5e7eb;
    --tsg-surface: #ffffff;
    --tsg-success: #22c55e;
    --tsg-font-display: "Barlow Condensed","Futura Extra Black Condensed","Oswald",Impact,sans-serif;
    --tsg-font-body: "Montserrat","Gotham",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}

/* ─── Upcoming ──────────────────────────────────────────────────────────────── */
.tsg-upcoming-container { display: flex; flex-direction: column; gap: 12px; font-family: var(--tsg-font-body); }
.tsg-upcoming-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--tsg-surface);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 4px 14px rgba(15,23,42,.05);
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid transparent;
}
.tsg-upcoming-item:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,.12); border-color: rgba(0,20,137,.08); }
.tsg-upcoming-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(230,100,21,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--tsg-orange); font-size: 18px; }
.tsg-upcoming-info { flex: 1; min-width: 0; }
.tsg-upcoming-title {
    margin: 0 0 4px;
    font-family: var(--tsg-font-display);
    font-style: italic; font-weight: 900;
    text-transform: uppercase;
    color: var(--tsg-blue);
    font-size: 18px; line-height: 1.1;
    letter-spacing: -0.3px;
}
.tsg-upcoming-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--tsg-muted); }
.tsg-upcoming-meta i { color: var(--tsg-blue); margin-right: 4px; font-size: 11px; }

.tsg-upcoming-empty { color: var(--tsg-subtle); font-style: italic; padding: 20px; text-align: center; }

/* ─── In Progress ───────────────────────────────────────────────────────────── */
.tsg-inprogress-container { display: flex; flex-direction: column; gap: 12px; font-family: var(--tsg-font-body); }
.tsg-inprogress-item {
    position: relative;
    background: var(--tsg-surface);
    border: 2px solid var(--tsg-orange);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 6px 20px rgba(230,100,21,.14);
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    isolation: isolate;
    animation: tsg-pulse-card 2.4s ease-in-out infinite;
}
@keyframes tsg-pulse-card {
    0%, 100% { box-shadow: 0 6px 20px rgba(230,100,21,.14); }
    50%      { box-shadow: 0 12px 36px rgba(230,100,21,.32); }
}
.tsg-inprogress-badge {
    position: absolute; top: 12px; right: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--tsg-orange); color: #fff;
    font-size: 10px; font-weight: 900; letter-spacing: 0.8px; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(230,100,21,.5);
    animation: tsg-pulse-orange 1.6s ease-in-out infinite;
}
@keyframes tsg-pulse-orange {
    0%,100% { box-shadow: 0 0 0 0 rgba(230,100,21,.55); }
    50%     { box-shadow: 0 0 0 10px rgba(230,100,21,0); }
}
.tsg-inprogress-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.tsg-inprogress-icon { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--tsg-blue), var(--tsg-orange)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.tsg-inprogress-info { flex: 1; min-width: 0; }
.tsg-inprogress-title { margin: 6px 0 6px; font-family: var(--tsg-font-display); font-style: italic; font-weight: 900; text-transform: uppercase; color: var(--tsg-blue); font-size: 22px; line-height: 1; letter-spacing: -0.3px; }
.tsg-inprogress-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--tsg-muted); }
.tsg-inprogress-meta i { color: var(--tsg-orange); margin-right: 4px; }
.tsg-inprogress-empty { color: var(--tsg-subtle); font-style: italic; padding: 24px; text-align: center; background: var(--tsg-surface); border-radius: 14px; }

/* ─── Ticker ────────────────────────────────────────────────────────────────── */
.tsg-ticker {
    display: flex; align-items: stretch;
    background: var(--tsg-blue);
    color: #fff;
    border-radius: 999px;
    overflow: hidden;
    font-family: var(--tsg-font-body);
    box-shadow: 0 8px 24px rgba(0,20,137,.18);
}
.tsg-ticker__label {
    background: var(--tsg-orange);
    color: #fff;
    padding: 12px 22px;
    font-family: var(--tsg-font-display);
    font-style: italic; font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    display: flex; align-items: center;
    flex-shrink: 0;
}
.tsg-ticker__viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%); }
.tsg-ticker__track {
    display: inline-flex; gap: 36px; align-items: center;
    white-space: nowrap; padding: 12px 24px;
    animation: tsg-ticker-scroll linear infinite;
}
@keyframes tsg-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tsg-ticker__item { font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.tsg-ticker__item i { color: var(--tsg-orange); }
.tsg-ticker__item strong { font-weight: 700; }
.tsg-ticker__item em { font-style: italic; opacity: .8; }
.tsg-ticker:hover .tsg-ticker__track { animation-play-state: paused; }

/* ─── Events grid ───────────────────────────────────────────────────────────── */
.tsg-events-grid { display: grid; gap: 22px; font-family: var(--tsg-font-body); }
.tsg-event-card {
    --event-accent: #e66415;
    background: var(--tsg-surface);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,20,137,.08);
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}
.tsg-event-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,20,137,.18); }
.tsg-event-card__media { width: 100%; aspect-ratio: 16 / 9; background-color: var(--tsg-blue); background-size: cover; background-position: center; }
.tsg-event-card__media--placeholder { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 48px; background: linear-gradient(135deg, var(--tsg-blue), var(--event-accent)); }
.tsg-event-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.tsg-event-card__date { font-size: 12px; color: var(--event-accent); font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; }
.tsg-event-card__date i { margin-right: 4px; }
.tsg-event-card__title { margin: 4px 0 0; font-family: var(--tsg-font-display); font-style: italic; font-weight: 900; text-transform: uppercase; color: var(--tsg-blue); font-size: 24px; line-height: 1; letter-spacing: -0.3px; }
.tsg-event-card__location { font-size: 13px; color: var(--tsg-muted); margin: 4px 0 0; }
.tsg-event-card__location i { color: var(--tsg-blue); margin-right: 4px; }
.tsg-event-card__progress { position: relative; height: 22px; background: rgba(0,20,137,.06); border-radius: 999px; margin: 8px 0 4px; }
.tsg-event-card__bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--tsg-blue), var(--event-accent)); border-radius: 999px; transition: width .3s ease; }
.tsg-event-card__progress span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; mix-blend-mode: difference; }
.tsg-event-card__cta {
    margin-top: 12px;
    display: inline-flex; align-items: center;
    gap: 4px;
    font-weight: 800; text-decoration: none;
    color: var(--event-accent);
    font-size: 14px;
    transition: gap .2s ease;
}
.tsg-event-card__cta:hover { gap: 10px; }
.tsg-events-empty { color: var(--tsg-subtle); padding: 32px; text-align: center; font-style: italic; }
