@import url('https://fonts.googleapis.com/css?family=Inter:400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

/* Dark mode default variables */
:root {
  --background-color: #1c1c1c;
  --text-color: #ddd;
  --border-color: #333;
  --primary-color: #f4d35e;
  --accent-bg: rgba(40,40,40,0.94);
  --card-shadow: 0 6px 24px rgba(0,0,0,0.14), 0 1.5px 4px rgba(0,0,0,0.09);
}

/* Light mode overrides */
[data-theme="light"] {
  --background-color: #f5f5f5;
  --text-color: #222;
  --border-color: #e0e0e0;
  --primary-color: #f0c808;
  --accent-bg: #fff;
  --card-shadow: 0 6px 24px rgba(150,150,150,0.08);
}

body {
  font-family: 'Inter', 'Roboto', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 40px 0;
}

.container {
  max-width: 540px;
  margin: 0 auto;
  padding: 42px 36px 38px 36px;
  background: linear-gradient(180deg, var(--accent-bg) 85%, rgba(255,255,255,0.04) 100%);
  box-shadow:
    0 2px 10px 0 rgba(0,0,0,0.10),
    0 8px 32px -4px rgba(0,0,0,0.13),
    0 1.5px 4px rgba(0,0,0,0.09);
  border-radius: 18px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 22px;
  border-bottom: 2.5px solid var(--primary-color);
  padding-bottom: 12px;
  width: 100%;
  text-shadow: 0 2px 8px rgba(0,0,0,0.03), 0 1px 0 rgba(255,255,210,0.08);
}

.dark-mode-toggle {
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
  display: flex;
  width: 100%;
  font-size: 1.2rem;
}

.switch-text {
  margin-left: 18px;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 18px;
  user-select: none;
  vertical-align: middle;
}

/* Modern pill toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #555;
  transition: .4s;
  border-radius: 34px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

input:checked + .slider {
  background-color: var(--primary-color);
}
input:checked + .slider:before {
  transform: translateX(28px);
}

/* End toggle switch styles */

form {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 0;
  margin-bottom: 28px;
  align-items: center;
}

label[for="teamLink"] {
  display: none;
}

input[type="text"] {
  padding: 14px 10px;
  border: 2px solid var(--border-color);
  border-radius: 8px 0 0 8px;
  font-size: 17px;
  outline: none;
  flex: 1 1 320px;
  max-width: 400px;
  background: var(--background-color);
  color: var(--text-color);
  font-family: 'Inter', 'Roboto', sans-serif;
  transition: background 0.23s, color 0.20s, box-shadow 0.18s;
  box-shadow: 0 1px 4px rgba(255,255,210,0.07) inset;
}
input[type="text"]:focus {
  box-shadow:
    0 2px 10px 0 rgba(245,211,94,0.08),
    0 0px 6px rgba(0,0,0,0.10) inset;
  border-color: var(--primary-color);
}

button {
  padding: 14px 28px;
  margin-left: 0px;
  background: linear-gradient(180deg, #ffe595 0%, var(--primary-color) 90%);
  box-shadow:
    0 2px 7px rgba(0,0,0,0.10),
    0 0.75px 2px rgba(255,255,255,0.13) inset;
  color: #222;
  font-weight: 600;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 17px;
  font-family: 'Inter', 'Roboto', sans-serif;
  transition: background 0.21s, box-shadow 0.21s;
}
button:hover {
  background: linear-gradient(180deg, #ffe595 30%, var(--primary-color) 100%);
  box-shadow:
    0 6px 24px rgba(0,0,0,0.16),
    0 2px 8px rgba(255,255,210,0.14) inset;
}

/* Card highlight utility class */
.card-highlight {
  background: linear-gradient(90deg, rgba(255,255,255,0.09) 0%, var(--accent-bg) 80%);
  box-shadow:
    0 1px 16px rgba(255,255,255,0.18) inset,
    0 3px 12px rgba(0,0,0,0.14);
  border-radius: 16px;
}

#results ul {
  background: linear-gradient(90deg, var(--background-color) 80%, rgba(50,50,50,0.065) 100%);
  border-radius: 12px;
  max-width: 480px;
  margin: 24px auto 12px auto;
  padding: 0;
  border: 2.5px solid var(--border-color);
  box-shadow:
    0 1px 10px 0 rgba(0,0,0,0.16),
    0 -2px 8px rgba(255,255,255,0.06) inset;
}

#results li {
  list-style: none;
  padding: 16px 18px;
  border-bottom: 1.5px solid var(--border-color);
  font-size: 1rem;
  transition: background 0.18s, box-shadow 0.18s;
  display: flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 0 60%, var(--background-color) 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
#results li.selected {
  box-shadow:
    0 2px 10px rgba(255,255,210,0.24),
    0 1px 4px rgba(0,0,0,0.10);
  background: linear-gradient(90deg, #fffae4 30%, var(--primary-color) 100%);
}

#results li:last-child {
  border-bottom: none;
}

#results li a {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1rem;
}
#results li a:hover {
  text-decoration: underline;
  color: #ffe595;
}

#results p {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1.16rem;
  color: var(--primary-color);
  font-weight: 600;
  text-align: center;
}

@media (max-width: 700px) {
  .container {
    max-width: 96vw;
    padding: 10vw 4vw;
    min-height: 0;
  }
  input[type="text"] {
    padding: 13px 4px;
    min-width: 0;
    font-size: 15.5px;
  }
  button {
    padding: 13px 18px;
    font-size: 15.5px;
  }
  h1 {
    font-size: 1.2rem;
    padding-bottom: 7px;
  }
}

/* Extra: radio button depth enhancement */
input[type="radio"] {
  accent-color: var(--primary-color);
  box-shadow: 0 1.5px 5px rgba(0,0,0,0.11) inset, 0 2px 7px rgba(255,255,255,0.12) inset;
}
input[type="radio"]:checked {
  outline: 2px solid var(--primary-color);
  box-shadow: 0 2.5px 10px rgba(244,211,94,0.11);
}
