/* LeagueCore Calendar Widget — scoped under .lc-widget */

.lc-widget *,
.lc-widget *::before,
.lc-widget *::after { box-sizing: border-box; }

.lc-widget h2,
.lc-widget p { margin: 0; padding: 0; }

.lc-widget {
  background: #0b2136;
  padding: 28px 20px 40px;
  max-width: 780px;
  margin: 0 auto;
  color: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* ── HEADER ── */
.lc-widget .lc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.lc-widget .lc-title h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.lc-widget .lc-year-label {
  font-size: 14px;
  color: #8fa9be;
  margin-top: 3px;
  font-weight: 400;
}

/* ── FILTERS ── */
.lc-widget .lc-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.lc-widget .lc-filters select {
  background: rgba(239,142,35,0.12);
  border: 1.5px solid #ef8e23;
  color: #fff;
  padding: 8px 32px 8px 13px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpolyline points='1,1 5.5,6 10,1' stroke='%23ef8e23' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 100px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.lc-widget .lc-filters select option { background: #0d2540; color: #fff; }
.lc-widget .lc-filters select:focus  { border-color: #f5a03a; }

/* ── TABS ── */
.lc-widget .lc-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.lc-widget .lc-tab {
  padding: 9px 34px;
  border-radius: 22px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, transform 0.12s;
  letter-spacing: 0.01em;
  outline: none;
  font-family: inherit;
  line-height: 1;
}

.lc-widget .lc-tab.active   { background: #ef8e23; color: #fff; }
.lc-widget .lc-tab.inactive { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.55); }
.lc-widget .lc-tab.inactive:hover { background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.8); }
.lc-widget .lc-tab:active   { transform: scale(0.97); }

/* ── CALENDAR BODY — fade animation ── */
.lc-widget .lc-calendar-body {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.lc-widget .lc-calendar-body.fading {
  opacity: 0;
  transform: translateY(6px);
}

/* ── DAY BLOCK ── */
.lc-widget .day-block { margin-bottom: 28px; }

.lc-widget .day-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.lc-widget .day-name { font-size: 13px; color: #7a9ab8; font-weight: 500; letter-spacing: 0.02em; }
.lc-widget .day-sep  { width: 2px; height: 15px; background: #ef8e23; border-radius: 1px; flex-shrink: 0; }
.lc-widget .day-date { font-size: 13px; color: #fff; font-weight: 600; letter-spacing: 0.02em; }

/* ── CATEGORY LABEL ── */
.lc-widget .cat-label {
  text-align: center;
  font-size: 12px;
  color: #5a7a94;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 12px 0 6px;
}

/* ── MATCH ROW WRAPPER ── */
.lc-widget .match-row-wrap        { margin-bottom: 5px; }
.lc-widget .match-row-wrap:last-child { margin-bottom: 0; }

/* ── MATCH ROW ── */
.lc-widget .match-row {
  display: flex;
  align-items: center;
  background: #0b2c3f;
  border: 1.5px solid #153349;
  border-radius: 7px;
  height: 50px;
  padding: 0 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  user-select: none;
}

.lc-widget .match-row:hover { border-color: #ef8e23; background: #0d3349; }

.lc-widget .match-row.is-expanded {
  border-color: #ef8e23;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

/* ── EXPAND WRAPPER — height animation ── */
.lc-widget .expand-wrapper {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1),
              opacity    0.25s ease;
}

.lc-widget .expand-wrapper.open {
  max-height: 600px;
  opacity: 1;
}

/* ── TEAM COLUMNS ── */
.lc-widget .team-left  { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.lc-widget .team-right { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; justify-content: flex-end; }

.lc-widget .team-name-left,
.lc-widget .team-name-right {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-widget .team-name-right { text-align: right; }

.lc-widget .team-abbr {
  font-size: 10px;
  font-weight: 500;
  color: #8fa9be;
  margin-left: 5px;
  letter-spacing: 0.04em;
}

/* ── SMALL LOGO ── */
.lc-widget .team-logo-sm {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #0d2035;
  border: 1.5px solid #1e4060;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.lc-widget .team-logo-sm img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

.lc-widget .team-logo-sm .logo-ph {
  font-size: 7px; color: #3a6080; font-weight: 700;
  text-align: center; line-height: 1.1;
}

/* ── CENTER BOX ── */
.lc-widget .match-center {
  flex-shrink: 0;
  margin: 0 10px;
  display: flex; align-items: center;
}

.lc-widget .time-box {
  background: #071828;
  border: 1px solid #1a3a50;
  border-radius: 5px;
  padding: 5px 16px;
  font-size: 13px; font-weight: 600; color: #fff;
  min-width: 68px; text-align: center; letter-spacing: 0.03em;
}

.lc-widget .score-box {
  background: #071828;
  border: 1px solid #1a3a50;
  border-radius: 5px;
  padding: 5px 14px;
  font-size: 14px; font-weight: 700; color: #fff;
  min-width: 68px; text-align: center; letter-spacing: 0.04em;
}

/* ── EXPAND PANEL ── */
.lc-widget .expand-panel {
  background: #fff;
  border: 1.5px solid #ef8e23;
  border-top: none;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  padding: 14px 18px 18px;
}

.lc-widget .expand-venue {
  text-align: center;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; color: #7a94a8;
  text-transform: uppercase; margin-bottom: 13px;
}

.lc-widget .expand-inner {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 10px;
}

.lc-widget .expand-team {
  display: flex; flex-direction: column;
  align-items: center; gap: 7px; flex: 1; min-width: 0;
}

/* ── LARGE LOGO ── */
.lc-widget .expand-logo {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #eef3f8; border: 2px solid #d0dde8;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}

.lc-widget .expand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

.lc-widget .expand-logo .logo-ph {
  font-size: 10px; color: #8aa0b4; font-weight: 700; text-align: center;
}

.lc-widget .expand-team-name {
  font-size: 12px; font-weight: 700;
  color: #0b2136; text-align: center; line-height: 1.2;
}

.lc-widget .expand-tbd {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #9ab0c0;
  margin-top: 2px;
}

/* ── SCORERS ── */
.lc-widget .expand-scorers {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px; margin-top: 2px;
}

.lc-widget .scorer-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: #3a5060; line-height: 1.2;
}

.lc-widget .scorer-ball { width: 13px; height: 13px; flex-shrink: 0; display: inline-flex; align-items: center; }
.lc-widget .scorer-ball svg { width: 13px; height: 13px; }

/* ── SCORE CENTER ── */
.lc-widget .expand-score-center {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px; flex-shrink: 0; padding-top: 4px;
}

.lc-widget .expand-badge {
  background: #e03030; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 3px 12px; border-radius: 10px;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}

.lc-widget .expand-score-num {
  font-size: 30px; font-weight: 800;
  color: #0b2136; line-height: 1.1; letter-spacing: 0.02em;
}

.lc-widget .expand-score-status { font-size: 11px; color: #7a94a8; font-weight: 500; white-space: nowrap; }
.lc-widget .expand-cat-label    { font-size: 11px; color: #9ab0c0; text-align: center; margin-top: 3px; }

/* ── EMPTY STATE ── */
.lc-widget .lc-empty { text-align: center; color: #4a6880; font-size: 14px; padding: 3rem 0; }

/* ══════════════════════════════════════════════════════════════════════════
   LIGHT THEME  (.lc-widget--light)
   ══════════════════════════════════════════════════════════════════════════ */

.lc-widget--light {
  background: #f4f6f8;
  color: #1a2733;
}

.lc-widget--light .lc-title h2  { color: #1a2733; }
.lc-widget--light .lc-year-label { color: #5a7a94; }

.lc-widget--light .lc-filters select {
  background: rgba(239,142,35,0.07);
  color: #1a2733;
}
.lc-widget--light .lc-filters select option { background: #fff; color: #1a2733; }

.lc-widget--light .lc-tab.inactive {
  background: rgba(0,0,0,0.09);
  color: rgba(0,0,0,0.45);
}
.lc-widget--light .lc-tab.inactive:hover {
  background: rgba(0,0,0,0.15);
  color: rgba(0,0,0,0.75);
}

.lc-widget--light .day-name  { color: #5a7a94; }
.lc-widget--light .day-date  { color: #1a2733; }
.lc-widget--light .cat-label { color: #8aa0b4; }

.lc-widget--light .match-row {
  background: #fff;
  border-color: #dde3ea;
}
.lc-widget--light .match-row:hover {
  background: #fdf6ee;
  border-color: #ef8e23;
}
.lc-widget--light .match-row.is-expanded {
  border-color: #ef8e23;
  border-bottom-color: transparent;
}

.lc-widget--light .team-name-left,
.lc-widget--light .team-name-right { color: #1a2733; }

.lc-widget--light .team-abbr { color: #5a7a94; }

.lc-widget--light .team-logo-sm {
  background: #f0f4f8;
  border-color: #d0dde8;
}
.lc-widget--light .team-logo-sm .logo-ph { color: #8aa0b4; }

.lc-widget--light .time-box,
.lc-widget--light .score-box {
  background: #f0f4f8;
  border-color: #dde3ea;
  color: #1a2733;
}

.lc-widget--light .expand-panel {
  background: #fafbfc;
}

.lc-widget--light .lc-empty { color: #8aa0b4; }

/* ── RESPONSIVE ── */
@media (max-width: 560px) {
  .lc-widget .lc-header { flex-direction: column; align-items: stretch; }

  .lc-widget .lc-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .lc-widget .lc-filters select { min-width: 0; width: 100%; }
  .lc-widget .lc-tab { padding: 9px 20px; font-size: 13px; }
  .lc-widget .team-name-left, .lc-widget .team-name-right { font-size: 12px; }
  .lc-widget .score-box, .lc-widget .time-box { min-width: 56px; font-size: 12px; padding: 5px 8px; }
  .lc-widget .match-row { padding: 0 10px; }
  .lc-widget .expand-logo { width: 48px; height: 48px; }
  .lc-widget .expand-score-num { font-size: 24px; }
}
