
/* ========================================================
   CALENDAR & TABS (حفظ کامل کلاس‌های روز و تب فعال)
========================================================= */
.calendar-modal {
  position: fixed; inset: 0; z-index: 10000 !important;
  background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(12px);
  display: flex; align-items: flex-end; justify-content: center;
  transition: all 0.3s ease;
}
.calendar-modal.hidden { opacity: 0; pointer-events: none; }

.calendar-sheet {
  width: 100%; max-width: 480px;
  background: linear-gradient(145deg, rgba(20, 23, 35, 0.95), rgba(15, 18, 30, 0.95));
  border-top-left-radius: 28px; border-top-right-radius: 28px;
  padding: 16px 18px 24px;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(124, 92, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: calendarUp 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.calendar-handle { width: 44px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); margin: 0 auto 20px auto; }

.calendar-header { display: flex; align-items: center; justify-content: space-between; color: #fff; margin-bottom: 18px; }
.calendar-header button, .month-nav-btn {
  width: 38px; height: 38px; border: none; border-radius: var(--radius-md);
  background: rgba(30, 34, 48, 0.8); color: #fff; backdrop-filter: blur(8px); transition: all 0.3s ease;
}
.calendar-header button:hover, .month-nav-btn:hover { background: rgba(124, 92, 255, 0.25); transform: scale(1.1); }
.calendar-month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.calendar-month-title { color: #e0e7ff; font-size: 13px; font-weight: 500; }
.month-nav-btn { width: 42px; height: 42px; background: rgba(30, 34, 48, 0.85); color: #dbe4ee; }

.calendar-tabs { display: flex; gap: 10px; margin-bottom: 20px; }

/* استایل درخشش مشترک بدون حذف استایل اختصاصی کلاس‌ها */
.calendar-tab.active, .calendar-day.active {
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.35), rgba(0, 212, 255, 0.15)) !important;
  border-color: rgba(124, 92, 255, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.4), 0 4px 12px rgba(124, 92, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.04);
}

.calendar-tab {
  flex: 1; height: 42px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 34, 48, 0.8); color: #cdd7e3; font-size: 13px; font-weight: 500;
  position: relative; overflow: hidden;
}
.calendar-tab:not(.active):hover { background: rgba(42, 47, 66, 0.9); color: #fff; }
.calendar-tab.active { font-weight: 700; }

.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 12px; text-align: center; color: #94a3b8; font-size: 13px; font-weight: 500; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.calendar-day {
  aspect-ratio: 1/1; border: none; border-radius: var(--radius-md); background: rgba(30, 34, 48, 0.85);
  color: #fff; font-size: 15px; font-weight: 500; display: flex; align-items: center; justify-content: center; transition: all 0.25s ease;
}
.calendar-day:hover { background: rgba(124, 92, 255, 0.2); transform: scale(1.08); }
.calendar-day.muted { opacity: 0.35; pointer-events: none; }

@keyframes calendarUp { from { transform: translateY(80px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ========================================================
   GLOBAL LOADER & SPLASH SCREEN
========================================================= */
.loading-overlay {
  position: fixed; inset: 0; z-index: 9999; background: rgba(11, 15, 22, .55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
}
.loading-overlay.show { display: flex; }
.loader-logo { width: 90px; height: auto; animation: logoPulse 1.2s ease-in-out infinite; }

#splash-screen {
  position: fixed; inset: 0; background: #0b0f1a; display: flex; align-items: center; justify-content: center; z-index: 99999;
  opacity: 1; visibility: visible; transition: opacity .10s ease, visibility .10s ease;
}
#splash-screen img { width: 160px; max-width: 52vw; height: auto; opacity: 0; transform: scale(.92); animation: logoFade 1s ease forwards; }
#splash-screen.hide { opacity: 0; visibility: hidden; }


#toast {
  position: fixed; left: 50%; top: 24px; transform: translateX(-50%) translateY(-20px);
  background: #1E293B; color: #fff; padding: 18px 22px; min-width: 240px; text-align: center;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 300; opacity: 0; visibility: hidden; transition: all .35s ease;
  z-index: 999999999; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
#toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* =========================
   IN-GAME LIVE CARD/SUB INDICATORS
========================= */
.player-events {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
    min-height: 12px;
}

.player-card {
    width: 8px;
    height: 12px;
    border-radius: 2px;
}

.yellow-card { background: #fbbf24; }
.red-card { background: #ef4444; }

.player-sub-in {
    color: #4ade80;
    font-size: 10px;
    font-weight: 700;
}
.player-sub-in::before { content: "▲"; }

.player-sub-out {
    color: #f87171;
    font-size: 10px;
    font-weight: 700;
}
.player-sub-out::before { content: "▼"; }

.penalty-score {
    display: inline;
    font-size: 11px;
    margin-right: 2px;
}

/* League Stats Loader */

.fixtures-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(11, 15, 22, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    display: none;
    align-items: center;
    justify-content: center;
}

.fixtures-loader-logo {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    object-fit: contain;
    display: block;

    animation: loaderPulse 1.4s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% {
        transform: scale(0.88);
        opacity: 0.75;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.loading-overlay .loader-logo {
    animation: loaderPulse 1.4s ease-in-out infinite !important;
}

.lc-calendar-empty {
    width: calc(100% - 48px);
    max-width: 370px;
    height: 150px;
    max-height: 150px;
    margin: 0 auto 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    border-radius: 8px;

        background:
        radial-gradient(
            ellipse at 85% 50%,
            rgba(59, 130, 246, 0.10) 0%,
            rgba(59, 130, 246, 0.035) 35%,
            transparent 70%
        ),
        linear-gradient(
            212.16deg,
            rgba(0, 0, 0, 0) 51.23%,
            rgba(59, 130, 246, 0.0988) 100.43%
        ),
        var(--color-glass-blue);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -1px 0 rgba(59, 130, 246, 0.08),
        0 4px 24px rgba(0, 0, 0, 0.32),
        0 0 18px rgba(59, 130, 246, 0.08),
        0 0 42px rgba(59, 130, 246, 0.035);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lc-calendar-empty__image {
    width: 70px;
    height: 70px;
    margin-bottom: 8px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-calendar-empty__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lc-calendar-empty__text {
    color: #F8FAFC;
    font-family: "Modam", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
}


