/* ===========================================================
   TENNIS STYLE — WTA-inspired touches
   Court line dividers, category tags, scoreboard-like meta
   =========================================================== */

/* Tour-bar removed by user request 2026-05-27 — keep CSS empty/no-op */
.tour-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.18) 100%);
    pointer-events: none;
}
.tour-bar__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1;
}
.tour-bar__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.tour-bar__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--paper);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: tour-bar-pulse 1.6s ease-in-out infinite;
}
@keyframes tour-bar-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); transform: scale(1); }
    50%      { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); transform: scale(1.15); }
}
.tour-bar__divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.32);
    flex-shrink: 0;
}
.tour-bar__tournament {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.tour-bar__city {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.005em;
    text-transform: none;
}
.tour-bar__country {
    opacity: 0.7;
    font-size: 10px;
}
.tour-bar__date {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    letter-spacing: 0.12em;
}
.tour-bar__cat {
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.32);
    border-radius: 3px;
    font-size: 9px;
    letter-spacing: 0.18em;
}
.tour-bar__cat--itf  { background: var(--tour-itf); color: var(--bg-ink-deep); }
.tour-bar__cat--125  { background: var(--tour-125); }
.tour-bar__cat--250  { background: var(--tour-250); }
.tour-bar__cat--gs   { background: var(--tour-gs); }

.tour-bar__countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    flex-shrink: 0;
    padding: 3px 11px 3px 13px;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 999px;
}
.tour-bar__countdown-num {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 800;
    font-size: 17px;
    line-height: 1;
    color: var(--lime);
    letter-spacing: -0.02em;
}
.tour-bar__countdown-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.78);
}

.tour-bar:hover .tour-bar__cat {
    background: rgba(0, 0, 0, 0.45);
}

@media (max-width: 720px) {
    :root { --tour-bar-h: 40px; }
    .tour-bar__inner {
        padding: 0 16px;
        gap: 10px;
        font-size: 10px;
    }
    .tour-bar__city { font-size: 12px; }
    .tour-bar__date { display: none; }
    .tour-bar__countdown { padding: 2px 9px 2px 11px; }
    .tour-bar__countdown-num { font-size: 15px; }
    .tour-bar__countdown-label { font-size: 8px; }
}
@media (max-width: 480px) {
    .tour-bar__divider { display: none; }
    .tour-bar__country { display: none; }
    .tour-bar__inner { gap: 8px; padding-left: 12px; padding-right: 12px; }
}

/* ===========================================================
   TOURNAMENT CATEGORY + SURFACE COLOR-CODING (WTA-style)
   =========================================================== */

/* Category — replace neutral mono chip with bold color pill */
.schedule__cat {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 9px !important;
    border-radius: 4px !important;
    background: var(--tour-itf) !important;
    color: var(--bg-ink-deep) !important;
    font-family: var(--font-mono) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    border: none !important;
    line-height: 1 !important;
}
.schedule__cat[data-level="125"],
.schedule__cat:where(:not([data-level])):where([class*="125"]) {
    background: var(--tour-125) !important;
    color: var(--paper) !important;
}

/* Heuristic: ITF stays orange, WTA 125 becomes blue, WTA 250+ green, GS maroon */
/* We use JS-injected data-level attribute (see tennis-style.js) */

.schedule__cat--itf { background: var(--tour-itf) !important; color: var(--bg-ink-deep) !important; }
.schedule__cat--125 { background: var(--tour-125) !important; color: var(--paper) !important; }
.schedule__cat--250 { background: var(--tour-250) !important; color: var(--paper) !important; }
.schedule__cat--gs  { background: var(--tour-gs)  !important; color: var(--paper) !important; }

/* Surface chips — colored borders + matching icon */
.schedule__surface {
    position: relative;
    padding-left: 22px !important;
}
.schedule__surface::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    transform: translateY(-50%);
}
.schedule__surface--clay {
    background: rgba(201, 97, 42, 0.16) !important;
    color: var(--surf-clay) !important;
    border: 1px solid rgba(201, 97, 42, 0.3) !important;
}
.schedule__surface--clay::before { background: var(--surf-clay); }
.schedule__surface--grass {
    background: rgba(74, 124, 44, 0.16) !important;
    color: var(--surf-grass) !important;
    border: 1px solid rgba(74, 124, 44, 0.3) !important;
}
.schedule__surface--grass::before { background: var(--surf-grass); }
.schedule__surface--hard {
    background: rgba(46, 92, 138, 0.16) !important;
    color: var(--surf-hard) !important;
    border: 1px solid rgba(46, 92, 138, 0.3) !important;
}
.schedule__surface--hard::before { background: var(--surf-hard); }

/* On dark (featured) row — flip surface text to lighter shade */
.schedule__item--featured .schedule__surface--clay {
    background: rgba(201, 97, 42, 0.22) !important;
    color: #FF9D5C !important;
    border-color: rgba(201, 97, 42, 0.5) !important;
}
.schedule__item--featured .schedule__surface--clay::before { background: #FF9D5C; }
.schedule__item--featured .schedule__surface--grass {
    background: rgba(74, 124, 44, 0.22) !important;
    color: #93C56B !important;
    border-color: rgba(74, 124, 44, 0.5) !important;
}
.schedule__item--featured .schedule__surface--grass::before { background: #93C56B; }
.schedule__item--featured .schedule__surface--hard {
    background: rgba(46, 92, 138, 0.24) !important;
    color: #6FA1D8 !important;
    border-color: rgba(46, 92, 138, 0.55) !important;
}
.schedule__item--featured .schedule__surface--hard::before { background: #6FA1D8; }

/* --- Court line divider — sygnatura między sekcjami --- */
.court-divider {
    position: relative;
    margin: 8px auto 0;
    padding: 28px 0;
    max-width: 1280px;
    width: calc(100% - 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    pointer-events: none;
}

.court-divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to var(--gradient-dir, right),
        transparent,
        rgba(245, 241, 232, 0.14) 35%,
        rgba(245, 241, 232, 0.18) 100%
    );
}
.court-divider__line--left {
    --gradient-dir: right;
}
.court-divider__line--right {
    --gradient-dir: left;
    background: linear-gradient(
        to left,
        transparent,
        rgba(245, 241, 232, 0.14) 35%,
        rgba(245, 241, 232, 0.18) 100%
    );
}

.court-divider__center {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--paper-dim);
}

.court-divider__t {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.court-divider__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 12px var(--lime-glow), 0 0 24px var(--lime-glow);
    animation: court-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes court-dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.6; }
}

/* Light section variant (when divider sits on cream/paper background) */
.court-divider--light .court-divider__line,
.court-divider--light .court-divider__line--right {
    background: linear-gradient(
        to right,
        transparent,
        rgba(14, 18, 23, 0.10) 35%,
        rgba(14, 18, 23, 0.14) 100%
    );
}
.court-divider--light .court-divider__line--right {
    background: linear-gradient(
        to left,
        transparent,
        rgba(14, 18, 23, 0.10) 35%,
        rgba(14, 18, 23, 0.14) 100%
    );
}
.court-divider--light .court-divider__center {
    color: var(--ink-muted);
}
.court-divider--light .court-divider__t {
    color: var(--ink-muted);
}

/* --- IG category tags (WTA news-style pills) --- */
.ig-tile__category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    background: rgba(7, 9, 12, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 4px;
    line-height: 1;
    border: 1px solid rgba(245, 241, 232, 0.08);
    z-index: 2;
    pointer-events: none;
}

.ig-tile__category--turniej {
    background: var(--coral);
    color: var(--paper);
    border-color: transparent;
}
.ig-tile__category--puchary {
    background: var(--lime);
    color: var(--bg-ink-deep);
    border-color: transparent;
}
.ig-tile__category--trening {
    /* default dark */
}
.ig-tile__category--backstage {
    background: transparent;
    border-color: rgba(245, 241, 232, 0.36);
    color: var(--paper);
}

/* Mobile — keep tags visible but smaller */
@media (max-width: 640px) {
    .court-divider {
        padding: 20px 0;
        gap: 12px;
    }
    .court-divider__center {
        font-size: 9px;
        letter-spacing: 0.2em;
        gap: 8px;
    }
    .court-divider__t {
        width: 18px;
        height: 18px;
    }
    .ig-tile__category {
        font-size: 8px;
        padding: 4px 7px;
        letter-spacing: 0.14em;
        top: 10px;
        left: 10px;
    }
}
