/* Diagnose Game Styles */
:root {
  --bg-primary: #0a0f1e;
  --bg-card: rgba(15, 23, 42, 0.75);
  --teal: #00d2d2;
  --green: #39ff6e;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
}

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
}

.game-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hud {
  display: flex;
  gap: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.game-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hint-box {
  padding: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  min-height: 100px;
}

.hint-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hint-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  animation: fadeIn 0.4s ease;
}

.hint-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hint-number {
  font-weight: 800;
  color: var(--teal);
  margin-right: 0.5rem;
}

.actions-area {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), #0099cc);
  border: none;
  color: #000;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #00e6e6, #00aadd);
}

.input-area {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: white;
  outline: none;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--teal);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 10;
  display: none;
}

.autocomplete-item {
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.autocomplete-item:hover {
  background: rgba(0, 210, 210, 0.2);
}

.results-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s;
}

.results-overlay.active {
  visibility: visible;
  opacity: 1;
}

.results-card {
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  width: 90%;
}

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

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--teal);
  color: #000;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  opacity: 0;
  transition: all 0.3s;
  z-index: 2000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
