/* tournament-schedule.css */
/* Extracted from templates/pages/tournament/schedule.html */

.page-header {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 4px 0;
  }
  
  .page-header p {
    font-size: 14px;
    color: var(--text-white-muted);
    margin: 0;
  }
  
  /* Tournament Selector */
  .tournament-selector {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .tournament-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
  }
  
  .tournament-select:focus {
    outline: none;
    border-color: var(--lime-primary);
  }
  
  /* Schedule Sections */
  .schedule-container {
    padding: 16px;
  }
  
  .schedule-section {
    margin-bottom: 24px;
  }
  
  .schedule-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .schedule-section-header svg {
    width: 16px;
    height: 16px;
  }
  
  .schedule-section-header.upcoming {
    color: var(--lime-primary);
  }
  
  /* Match Cards */
  .match-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
  }
  
  .match-card:hover {
    background: rgba(255, 255, 255, 0.07);
  }
  
  .match-card.your-match {
    border-color: rgba(232, 232, 111, 0.3);
    background: rgba(232, 232, 111, 0.05);
  }
  
  .match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  
  .match-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
  }
  
  .match-time svg {
    width: 16px;
    height: 16px;
    color: var(--lime-primary);
  }
  
  .match-court {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-white-muted);
  }
  
  .match-teams {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .match-team {
    flex: 1;
    text-align: center;
  }
  
  .match-team-players {
    font-size: 13px;
    color: var(--text-white);
    line-height: 1.5;
  }
  
  .match-team-players.you {
    color: var(--lime-primary);
    font-weight: 600;
  }
  
  .match-vs {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white-subtle);
    text-transform: uppercase;
  }
  
  /* Completed matches */
  .match-card.completed {
    opacity: 0.8;
  }
  
  .match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .score-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    min-width: 40px;
    text-align: center;
  }
  
  .score-value.winner {
    color: var(--lime-primary);
  }
  
  .score-divider {
    font-size: 16px;
    color: var(--text-white-muted);
  }
  
  /* Score Input Button */
  .score-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background: rgba(232, 232, 111, 0.15);
    border: 1px dashed rgba(232, 232, 111, 0.4);
    border-radius: 10px;
    color: var(--lime-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .score-btn:hover {
    background: rgba(232, 232, 111, 0.2);
    border-style: solid;
  }
  
  .score-btn svg {
    width: 16px;
    height: 16px;
  }
  
  /* Empty State with Blur */
  .empty-state-container {
    position: relative;
    min-height: 400px;
  }
  
  .blurred-content {
    filter: blur(8px);
    opacity: 0.4;
    pointer-events: none;
  }
  
  .empty-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
  }
  
  .empty-icon {
    width: 64px;
    height: 64px;
    background: rgba(232, 232, 111, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
  }
  
  .empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    margin: 0 0 8px 0;
  }
  
  .empty-desc {
    font-size: 14px;
    color: var(--text-white-muted);
    margin: 0 0 20px 0;
    max-width: 280px;
  }
  
  .empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--lime-primary);
    color: var(--navy-dark);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
  }
  
  .empty-btn:hover {
    background: var(--lime-hover);
    transform: translateY(-2px);
  }
  
  /* Date header */
  .date-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
  }

  .date-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
  }

/* Record Score Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 22, 34, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
  animation: modal-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 20px 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-light);
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dark);
}

.modal-header .icon-btn {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-dark-secondary);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.modal-header .icon-btn:hover {
  color: var(--error-red, #dc3545);
  opacity: 1;
}

.modal-body {
  padding: 24px;
}

.score-input-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 10px;
}

.team-score-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.team-score-input label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-dark);
  text-align: center;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-score-input input {
  width: 70px;
  height: 70px;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--navy-dark);
  background: var(--bg-input);
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  appearance: textfield;
}

.team-score-input input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: var(--bg-card);
}

.team-score-input input::-webkit-outer-spin-button,
.team-score-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.modal-actions {
  padding: 16px 24px 24px;
}

.modal-actions .btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-actions .btn-primary {
  background: var(--lime-primary);
  color: var(--navy-dark);
}

.modal-actions .btn-primary:hover {
  background: var(--lime-hover);
}

.modal-actions .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

