/* Matchmaking Improvements Styles */

/* Wait time display */
#wait-time-display {
  font-size: 2rem;
  font-weight: bold;
  color: #8b6f47;
  text-align: center;
  margin: 1rem 0;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
}

/* AI Suggestion Banner */
#ai-suggestion-banner {
  display: none;
  background: linear-gradient(135deg, #f4e4c1 0%, #e8d4a8 100%);
  border: 2px solid #8b6f47;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  text-align: center;
  animation: slideIn 0.4s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.suggestion-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.suggestion-content p {
  margin: 0;
  font-size: 1.1rem;
  color: #3d2817;
  font-weight: 500;
}

.btn-switch-ai {
  background: linear-gradient(135deg, #8b6f47 0%, #6b5435 100%);
  color: #f4e4c1;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-switch-ai:hover {
  background: linear-gradient(135deg, #6b5435 0%, #4d3a24 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-switch-ai:active {
  transform: translateY(0);
}

/* Highlighted mode styling */
.highlighted-mode {
  position: relative;
  border: 2px solid #8b6f47 !important;
  background: linear-gradient(135deg, rgba(139, 111, 71, 0.1) 0%, rgba(107, 84, 53, 0.1) 100%) !important;
  animation: pulse 2s infinite;
}

.highlighted-mode::before {
  content: '★';
  position: absolute;
  top: -12px;
  right: -12px;
  font-size: 1.5rem;
  color: #8b6f47;
  animation: twinkle 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(139, 111, 71, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(139, 111, 71, 0);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Online player count badge */
#online-player-count {
  display: inline-block;
  background: #8b6f47;
  color: #f4e4c1;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  margin-left: 0.5rem;
}

/* Waiting screen enhancements */
#screen-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem;
}

.waiting-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e8d4a8;
  border-top: 4px solid #8b6f47;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  #ai-suggestion-banner {
    padding: 1rem;
    margin: 0.5rem 0;
  }

  .suggestion-content p {
    font-size: 1rem;
  }

  .btn-switch-ai {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
  }

  #wait-time-display {
    font-size: 1.5rem;
  }

  .highlighted-mode::before {
    font-size: 1.2rem;
    top: -8px;
    right: -8px;
  }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
  #ai-suggestion-banner {
    background: linear-gradient(135deg, #3d2817 0%, #2d1f10 100%);
    border-color: #8b6f47;
  }

  .suggestion-content p {
    color: #e8d4a8;
  }

  #wait-time-display {
    color: #d4a574;
  }
}

/* Accessibility: high contrast mode */
@media (prefers-contrast: more) {
  .btn-switch-ai {
    border: 2px solid #000;
  }

  #ai-suggestion-banner {
    border-width: 3px;
  }

  .highlighted-mode {
    border-width: 3px !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  #ai-suggestion-banner {
    animation: none;
  }

  .highlighted-mode {
    animation: none;
  }

  .highlighted-mode::before {
    animation: none;
  }

  .waiting-spinner {
    animation: none;
    border-top-color: #8b6f47;
    opacity: 0.7;
  }

  .btn-switch-ai {
    transition: none;
  }
}
