/* Modern Shared Components - Glassmorphism Design System */

.modern-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.65);
}

.modern-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
}

.modern-card-header h5 {
  font-weight: 800;
  margin: 0;
  color: #1a1a1a;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modern-card-header > i,
.modern-card-header .d-flex > i {
  color: #0d6efd;
  font-size: 1rem;
}

.modern-card-body {
  padding: 1.5rem;
}

/* Modern List Group for Ranking */
.modern-list-group {
  margin: 0;
  padding: 0;
}

.modern-list-item,
.modern-list-item-sm {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modern-list-item {
  padding: 1.25rem 1.5rem;
}

.modern-list-item-sm {
  padding: 0.75rem 1rem;
}

.modern-list-item:last-child,
.modern-list-item-sm:last-child {
  border-bottom: none;
}

.modern-list-item:hover,
.modern-list-item-sm:hover {
  background: rgba(13, 110, 253, 0.03);
}

.ranking-position {
  font-size: 1.25rem;
  font-weight: 900;
  color: #adb5bd;
  min-width: 40px;
  text-align: center;
}

.ranking-position-1 { color: #ffc107; } /* Gold */
.ranking-position-2 { color: #adb5bd; } /* Silver */
.ranking-position-3 { color: #cd7f32; } /* Bronze */

.ranking-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ranking-info {
  flex-grow: 1;
}

.ranking-name {
  font-weight: 700;
  color: #212529;
  display: block;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.ranking-score-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  background: #f1f3f5;
  color: #495057;
  display: inline-block;
}

/* Modern Table for Matches Today & Awards */
.modern-table {
  width: 100%;
  margin-bottom: 0;
}

.modern-table th {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #adb5bd;
  letter-spacing: 0.05em;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-table td {
  padding: 1.25rem 1.5rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.modern-table tr:last-child td {
  border-bottom: none;
}

.modern-table-sm td, .modern-table-sm th {
  padding: 0.75rem 1rem;
}

.modern-table-xs td, .modern-table-xs th {
  padding: 0.5rem 0.4rem;
}

.match-row-modern {
  transition: all 0.2s ease;
}

.match-row-modern:hover {
  background: rgba(13, 110, 253, 0.02);
}

.match-time-link {
  font-weight: 800;
  color: #0d6efd;
  font-size: 0.9rem;
  text-decoration: none;
}

.team-flag-modern {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.match-score-modern {
  font-size: 1.1rem;
  font-weight: 800;
  min-width: 20px;
  display: inline-block;
}

/* Awards Specific */
.awards-row td:first-child {
  font-weight: 700;
  color: #495057;
}

.awards-value {
  font-weight: 800;
  color: #198754;
  font-size: 1.1rem;
}

/* Footer Actions */
.modern-card-footer {
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-modern-expand {
  width: 100%;
  background: transparent;
  border: none;
  color: #adb5bd;
  padding: 0.5rem;
  transition: all 0.2s ease;
}

.btn-modern-expand:hover {
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.05);
}

@media (max-width: 768px) {
  .modern-card {
    border-radius: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .modern-card-header {
    padding: 1rem 1.25rem;
  }
  
  .modern-list-item, .modern-list-item-sm, .modern-table td {
    padding: 1rem 1.25rem;
  }

  .ranking-position {
    min-width: 30px;
    font-size: 1.1rem;
  }
}

/* Hide Number Input Spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}
