/* DZ Club Manager - Specialized View Styles */

/* 1. Command Center / Dashboard Views */
.command-center-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 992px) {
  .command-center-hero {
    grid-template-columns: 1fr;
  }
}

.hero-match-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-subtle) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-match-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--club-primary), var(--club-secondary));
}

.match-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.match-competition-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--club-primary);
  background: var(--club-primary-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.match-countdown-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--danger-text);
  background: var(--danger-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-num);
}

.match-teams-duel {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1.25rem 0;
}

.team-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  text-align: center;
}

.team-badge-large {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.team-badge-large:hover {
  transform: scale(1.05);
}

.team-badge-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-crest-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  user-select: none;
}

.team-duel-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.duel-vs-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--text-muted);
  font-family: var(--font-num);
}

.match-venue-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Club Notice & Quick Status */
.hero-notice-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.alert-item-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  background-color: var(--bg-surface-subtle);
  border-right: 3px solid var(--club-primary);
}

.alert-item-box.alert-danger {
  background-color: var(--danger-light);
  border-right-color: var(--danger);
  color: var(--danger-text);
}

.alert-item-box.alert-warning {
  background-color: var(--warning-light);
  border-right-color: var(--warning);
  color: var(--warning-text);
}

/* 2. Players Grid & Cards */
.players-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.player-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.player-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--club-primary);
}

.player-card-banner {
  height: 65px;
  background: linear-gradient(135deg, var(--club-primary) 0%, rgba(var(--club-primary-rgb), 0.75) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.player-card-banner.banner-gk {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.player-card-number {
  font-size: 1.6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-num);
  letter-spacing: -1px;
}

.player-card-body {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  flex: 1;
}

/* Player Figure Badge (مجسم ورسم اللاعب) */
.player-figure-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3.5px solid var(--bg-surface);
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  margin-top: -38px;
  margin-bottom: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: #475569;
}

.player-figure-badge.figure-gk {
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 100%);
  border-color: var(--bg-surface);
  color: #b45309;
}

.player-figure-badge.figure-field {
  background: linear-gradient(145deg, var(--club-primary-light) 0%, #ffffff 100%);
  color: var(--club-primary);
}

.player-figure-icon {
  width: 38px;
  height: 38px;
  margin-top: 4px;
}

.player-figure-num {
  position: absolute;
  bottom: 3px;
  font-size: 0.8rem;
  font-weight: 900;
  font-family: var(--font-num);
  background: rgba(255, 255, 255, 0.9);
  padding: 0 5px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  line-height: 1.2;
}

.player-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.player-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.player-card-pos {
  font-size: 0.8rem;
  color: var(--club-primary);
  font-weight: 700;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.player-card-pos.pos-gk {
  color: #d97706;
}

.player-meta-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.player-stats-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.player-mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.player-mini-stat-val {
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-num);
}

.player-mini-stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 2.5 Official Player Technical Profile Modal (البطاقة الفنية المدمجة) */
.pdm-hero-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--bg-surface-subtle) 0%, #ffffff 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
}

.pdm-hero-figure {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  position: relative;
}

.pdm-hero-figure .player-figure-icon {
  width: 28px;
  height: 28px;
}

.pdm-hero-figure .player-figure-num {
  font-size: 0.8rem;
  bottom: 2px;
}

.pdm-hero-info {
  flex: 1;
  min-width: 0;
}

.pdm-hero-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdm-hero-meta-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}

.pdm-section-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  margin-bottom: 0.45rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px dashed var(--border-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pdm-info-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

@media (max-width: 600px) {
  .pdm-info-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pdm-cell-compact {
  background: var(--bg-surface-subtle);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pdm-cell-compact .pdm-cell-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdm-cell-compact .pdm-cell-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdm-cell-compact .pdm-cell-val.highlight-code {
  font-family: var(--font-num);
  color: var(--club-primary);
  font-weight: 800;
  font-size: 0.88rem;
}

/* 3. Discipline Cards & Warnings */
.discipline-summary-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.discipline-stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-icon-tag {
  width: 38px;
  height: 52px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-num);
}

.card-icon-yellow {
  background: #facc15;
  border: 1px solid #eab308;
  color: #713f12;
}

.card-icon-red {
  background: #ef4444;
  border: 1px solid #dc2626;
  color: #fff;
}

.card-icon-suspended {
  background: #0f172a;
  border: 1px solid #000;
  color: #fff;
}

/* 4. Match Lineup Builder View */
.pitch-container {
  background: linear-gradient(180deg, #15803d 0%, #166534 100%);
  border-radius: var(--radius-xl);
  border: 2px solid #22c55e;
  height: 480px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 1rem;
}

.pitch-line {
  position: absolute;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.pitch-center-circle {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.pitch-half-line {
  top: 50%;
  left: 0;
  right: 0;
  height: 0;
}

.pitch-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 2;
}

.pitch-player-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.pitch-player-node:hover {
  transform: scale(1.1);
}

.pitch-jersey {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--club-primary);
  border: 2px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.pitch-player-name {
  background-color: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(2px);
  white-space: nowrap;
}

/* 5. Theme Live Preview in Settings */
.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.color-swatch-box {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.color-preview-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
}

/* Print Center Template Cards */
.print-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.print-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition-normal);
}

.print-card:hover {
  border-color: var(--club-primary);
  box-shadow: var(--shadow-card-hover);
}

.print-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--club-primary-light);
  color: var(--club-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 6. Auth & Login Portal Screen */
#auth-login-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.auth-card-wrapper {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.auth-card-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: var(--brand-gradient);
}

.auth-brand-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.auth-logo-symbol {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--brand-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: #64748b;
}

.demo-credentials-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #475569;
}

.demo-account-pill {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: monospace;
  cursor: pointer;
  margin: 2px;
  transition: all var(--transition-fast);
}

.demo-account-pill:hover {
  border-color: var(--brand-primary);
  background: #ecfdf5;
  color: #065f46;
}

/* Multi-Player Selection & Bulk Actions Bar */
.player-card {
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.player-card.is-selected {
  border-color: var(--club-primary) !important;
  box-shadow: 0 0 0 2px var(--club-primary), var(--shadow-card-hover) !important;
}

.player-select-pill {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

.player-select-pill:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.12);
}

.player-select-pill.selected {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--club-primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.player-card-banner.banner-gk .player-select-pill.selected {
  color: #d97706;
}

.bulk-actions-floating-bar {
  position: sticky;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  margin: 1.5rem auto 0;
  max-width: 860px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: slideUpFloating 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFloating {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bulk-selection-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.bulk-count-badge {
  background: var(--club-primary);
  color: #ffffff;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.85rem;
  font-family: var(--font-num);
}

.bulk-actions-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}


