@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #1d428a;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  width: 100%;
  max-width: 820px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 190px;
  max-height: 80vh;
  background-color: #fff;
  border-radius: 12px;
  padding: 1rem;
}

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #888;
}

.team-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.team-list::-webkit-scrollbar {
  width: 4px;
}

.team-list::-webkit-scrollbar-track {
  background: transparent;
}

.team-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.team-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  color: #111;
}

.team-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-item:hover {
  background-color: #f0f0f0;
}

.team-item.active {
  background-color: #c8102e;
  color: #fff;
  font-weight: 700;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 520px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  body {
    align-items: flex-start;
    padding-top: 3.5rem;
  }

  .page {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 1.25rem;
  }

  .sidebar {
    width: 100%;
    max-width: none;
    max-height: 200px;
  }

  .container {
    width: 100%;
    max-width: none;
  }

  .top-nav {
    top: 0.75rem;
    right: 1rem;
  }
}

.logo-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c8102e;
}

h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.btn {
  background-color: #fff;
  color: #1d428a;
  border: none;
  border-radius: 999px;
  padding: 1rem 3rem;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn:hover {
  background-color: #dce8ff;
}

.btn:active {
  transform: scale(0.97);
}

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

/* ── Stat card ── */
.card {
  background-color: #c8102e;
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

.card .title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.card .value {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  word-break: break-word;
}

.card .description {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.9;
}

.card .footer {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.65;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.75rem;
}

/* ── Loading state ── */
.loading {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Error state ── */
.error-card {
  background-color: #8b0000;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

.error-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

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

/* ── Nav ── */
.top-nav {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #fff;
}

/* ── About page ── */
.about-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.about-nav {
  position: fixed;
  top: 1.25rem;
  left: 1.5rem;
}

.about-card {
  background-color: #fff;
  color: #111;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.about-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #1d428a;
}

.about-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}
