/* ═══════════════════════════════════════════════
   E-FUTEBOL.NET — SCORERS PAGE
   ═══════════════════════════════════════════════ */

.scorers-page {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1rem;
  align-items: start;
  max-width: 100%;
}

.scorers-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}

.scorers-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 1rem;
}

/* ── HEADER (full width) ── */

.scorers-header {
  grid-column: 1 / -1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.scorers-header-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.scorers-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.scorers-header-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
  line-height: 1.5;
}

/* ── SEASON SELECTOR (dropdown) ── */

.scorers-season-selector {
  position: relative;
  flex-shrink: 0;
}

.scorers-season-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-primary);
}

.scorers-season-trigger:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.scorers-season-trigger-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}

.scorers-season-trigger-number {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1;
}

.scorers-season-trigger-icon {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1;
}

.scorers-season-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.scorers-dropdown-open ~ .scorers-season-trigger .scorers-season-chevron,
.scorers-dropdown-menu.scorers-dropdown-open + .scorers-season-trigger .scorers-season-chevron {
  transform: rotate(180deg);
}

/* ── DROPDOWN MENU ── */

.scorers-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 220px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.1);
  z-index: 50;
  padding: 0.3rem;
}

.scorers-dropdown-menu.scorers-dropdown-open {
  display: block;
}

.scorers-dropdown-menu::-webkit-scrollbar {
  width: 4px;
}

.scorers-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.scorers-dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.scorers-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.12s ease;
}

.scorers-dropdown-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.scorers-dropdown-item-active {
  background: rgba(45, 106, 79, 0.08);
  color: var(--green-primary);
  font-weight: 700;
}

.scorers-dropdown-item-active:hover {
  background: rgba(45, 106, 79, 0.12);
}

.scorers-dropdown-icon {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-primary);
  min-width: 1.2rem;
  text-align: center;
}

.scorers-dropdown-number {
  font-weight: 800;
  color: var(--text-primary);
  min-width: 1.2rem;
  text-align: center;
}

.scorers-dropdown-dates {
  margin-left: auto;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 400;
  flex-shrink: 0;
}

.scorers-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.2rem 0.4rem;
}

/* ── TOOLBAR: tabs + filters (full width) ── */

.scorers-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.scorers-tabs {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.2rem;
  min-width: 0;
}

.scorers-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.scorers-tabs::-webkit-scrollbar {
  display: none;
}

.scorers-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.scorers-tab:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.scorers-tab-active {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
}

.scorers-tab-active:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
}

/* ── COMPETITION DROPDOWN ── */

.scorers-comp-selector {
  position: relative;
  flex-shrink: 0;
}

.scorers-comp-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-primary);
}

.scorers-comp-trigger:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.scorers-comp-trigger-label {
  font-size: 0.72rem;
  font-weight: 600;
}

.scorers-comp-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
}

.scorers-comp-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 220px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.1);
  z-index: 50;
  padding: 0.3rem;
}

.scorers-comp-dropdown.scorers-dropdown-open {
  display: block;
}

.scorers-comp-dropdown::-webkit-scrollbar {
  width: 4px;
}

.scorers-comp-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.scorers-comp-dropdown::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.scorers-comp-item {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.12s ease;
}

.scorers-comp-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.scorers-comp-item-active {
  background: rgba(45, 106, 79, 0.08);
  color: var(--green-primary);
  font-weight: 700;
}

.scorers-comp-item-active:hover {
  background: rgba(45, 106, 79, 0.12);
}

.scorers-comp-divider {
  height: 1px;
  background: var(--border);
  margin: 0.2rem 0.4rem;
}

/* ── TEAM SEARCH DROPDOWN ── */

.scorers-team-dropdown {
  min-width: 260px;
}

.scorers-team-search {
  padding: 0.3rem 0.3rem 0.15rem;
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 1;
}

.scorers-team-search-input {
  width: 100%;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.scorers-team-search-input::placeholder {
  color: var(--text-muted);
}

.scorers-team-search-input:focus {
  border-color: var(--green-primary);
}

/* ── DATE NAVIGATOR (Dia tab) ── */

.scorers-day-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.scorers-day-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.scorers-day-arrow:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}

.scorers-day-arrow-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.scorers-day-selector {
  position: relative;
}

.scorers-day-current {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-display);
  color: var(--text-primary);
}

.scorers-day-current:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.scorers-day-label {
  font-size: 0.75rem;
  font-weight: 600;
}

.scorers-day-today {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.08rem 0.3rem;
  border-radius: 3px;
}

.scorers-day-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
}

.scorers-day-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 180px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.1);
  z-index: 50;
  padding: 0.3rem;
}

.scorers-day-dropdown.scorers-dropdown-open {
  display: block;
}

.scorers-day-dropdown::-webkit-scrollbar {
  width: 4px;
}

.scorers-day-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.scorers-day-dropdown::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.scorers-day-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.12s ease;
}

.scorers-day-option:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.scorers-day-option-active {
  background: rgba(45, 106, 79, 0.08);
  color: var(--green-primary);
  font-weight: 700;
}

.scorers-day-option-active:hover {
  background: rgba(45, 106, 79, 0.12);
}

.scorers-day-option-badge {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.06rem 0.25rem;
  border-radius: 3px;
  margin-left: auto;
}

/* ── RANKING CARD ── */

.scorers-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(27, 67, 50, 0.04);
  overflow: hidden;
}

/* ── RANKING ROW ── */

.scorers-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.15s ease;
}

.scorers-row:last-child {
  border-bottom: none;
}

.scorers-row:hover {
  background: var(--bg-card-hover);
}

.scorers-row-mine {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(45, 106, 79, 0.04) 100%);
  box-shadow: inset 3px 0 0 var(--green-primary);
}

.scorers-row-mine:hover {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(45, 106, 79, 0.07) 100%);
}

/* ── POSITION ── */

.scorers-position {
  width: 28px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0;
}

.scorers-position-1 { color: #D4A017; font-size: 1rem; }
.scorers-position-2 { color: #94A3B8; font-size: 0.95rem; }
.scorers-position-3 { color: #CD7F32; font-size: 0.9rem; }

/* ── AVATAR ── */

.scorers-avatar {
  width: 34px;
  height: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.scorers-position-1 ~ .scorers-avatar {
  border-color: rgba(212, 160, 23, 0.4);
  color: #D4A017;
  background: rgba(212, 160, 23, 0.06);
}

/* ── INFO ── */

.scorers-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.scorers-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scorers-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── GOALS COUNT ── */

.scorers-goals {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-primary);
  min-width: 36px;
  text-align: right;
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  justify-content: flex-end;
}

.scorers-goals-breakdown {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
}

.scorers-goals-shot,
.scorers-goals-dry {
  display: flex;
  align-items: center;
  gap: 0.12rem;
}

.scorers-goals-shot svg {
  color: var(--green-mid);
  opacity: 0.7;
}

.scorers-goals-dry svg {
  color: var(--red-warning);
  opacity: 0.6;
}

/* ── EMPTY STATE ── */

.scorers-empty {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.scorers-empty-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.scorers-empty p {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.scorers-empty-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── SIDEBAR: Stats ── */

.scorers-stats {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.scorers-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  padding: 0.2rem 0;
}

.scorers-stat-label {
  color: var(--text-secondary);
}

.scorers-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}

/* ── SIDEBAR: Top Player ── */

.scorers-top-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
}

.scorers-top-link {
  text-decoration: none;
  color: inherit;
}

.scorers-top-avatar {
  width: 36px;
  height: 36px;
  background: rgba(212, 160, 23, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #D4A017;
  flex-shrink: 0;
}

.scorers-top-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  flex: 1;
  min-width: 0;
}

.scorers-top-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scorers-top-team {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.scorers-top-goals {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-primary);
  flex-shrink: 0;
}

/* ── SIDEBAR: User Position ── */

.scorers-user-position {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.3rem 0;
}

.scorers-user-rank {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1;
}

.scorers-user-goals {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
  .scorers-page {
    grid-template-columns: 1fr;
  }

  .scorers-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .scorers-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .scorers-tabs {
    width: 100%;
    padding-bottom: 0.4rem;
  }

  .scorers-filters {
    width: 100%;
    flex-wrap: wrap;
  }

  .scorers-day-nav,
  .scorers-comp-selector {
    margin-left: 0;
    width: 100%;
  }

  .scorers-comp-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .scorers-day-selector {
    flex: 1;
  }

  .scorers-day-current {
    width: 100%;
    justify-content: space-between;
  }

  .scorers-day-dropdown,
  .scorers-comp-dropdown {
    width: 100%;
    min-width: 100%;
  }

  .scorers-sidebar {
    position: static;
  }

  .scorers-left {
    gap: 0.8rem;
  }

  .scorers-row {
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
  }

  .scorers-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .scorers-name {
    font-size: 0.78rem;
  }

  .scorers-meta {
    font-size: 0.62rem;
  }

  .scorers-goals {
    font-size: 1rem;
  }

  .scorers-position {
    width: 24px;
    font-size: 0.78rem;
  }
}

/* ── PAGINATION ── */

.scorers-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.8rem 0 0.2rem;
}

.scorers-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scorers-page-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-card);
}

.scorers-page-current {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
  font-weight: 700;
}

.scorers-page-current:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
}

.scorers-page-gap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

@media (max-width: 480px) {
  .scorers-avatar {
    display: none;
  }

  .scorers-row {
    padding: 0.5rem 0.6rem;
  }
}
