/* ===== Google Font ===== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* ===== Reset ===== */

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

:root {
  --bg: #090909;
  --card: #141414;
  --card-hover: #1b1b1b;

  --border: #2a2a2a;

  --primary: #4f8cff;
  --green: #34d399;

  --text: #ffffff;
  --text-secondary: #9ca3af;
}

body {
  font-family: "Inter", sans-serif;

  background: var(--bg);
  color: var(--text);

  min-height: 100vh;

  overflow-x: hidden;
}

/* ========================= */

.background-grid {
  position: fixed;
  inset: 0;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);

  background-size: 40px 40px;

  pointer-events: none;

  z-index: -1;
}

/* ========================= */

.navbar {
  width: 100%;

  padding: 22px 60px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(10px);
}

.logo h2 {
  font-size: 24px;
}

.logo span {
  color: var(--text-secondary);

  font-size: 14px;
}

.server-status {
  display: flex;

  align-items: center;

  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: var(--green);

  box-shadow: 0 0 10px var(--green);
}

/* ========================= */

.container {
  width: min(1300px, 95%);

  margin: auto;

  padding: 60px 0;
}

/* ========================= */

.hero {
  margin-bottom: 60px;
}

.hero h1 {
  font-size: 52px;

  margin-bottom: 14px;
}

.hero p {
  color: var(--text-secondary);

  font-size: 18px;

  max-width: 700px;

  line-height: 1.6;
}

/* ========================= */

.stats-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

  gap: 20px;

  margin-bottom: 45px;
}

.card {
  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 18px;

  padding: 24px;

  transition: 0.25s;
}

.card:hover {
  background: var(--card-hover);

  transform: translateY(-4px);
}

.card h3 {
  color: var(--text-secondary);

  font-size: 15px;

  margin-bottom: 16px;
}

.value {
  font-size: 38px;

  font-weight: 700;

  margin-bottom: 8px;
}

.card small {
  color: var(--text-secondary);
}

/* ========================= */

.section-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 26px;
}

button {
  border: none;

  background: var(--primary);

  color: white;

  padding: 12px 20px;

  border-radius: 10px;

  cursor: pointer;

  font-size: 15px;

  transition: 0.2s;
}

button:hover {
  opacity: 0.9;

  transform: translateY(-2px);
}

/* ========================= */

.endpoint-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

  gap: 20px;

  margin-bottom: 50px;
}

.endpoint-card {
  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 18px;

  padding: 24px;

  transition: 0.25s;
}

.endpoint-card:hover {
  background: var(--card-hover);

  transform: translateY(-4px);
}

.endpoint-card h3 {
  margin-bottom: 12px;
}

.endpoint-card p {
  color: var(--text-secondary);

  line-height: 1.6;

  margin-bottom: 22px;
}

.load-btn {
  width: 100%;
}

/* ========================= */

.response-section {
  margin-top: 10px;
}

pre {
  background: #101010;

  border: 1px solid var(--border);

  border-radius: 18px;

  padding: 25px;

  overflow-x: auto;

  white-space: pre-wrap;

  word-break: break-word;

  color: #7dd3fc;

  line-height: 1.6;

  font-size: 14px;

  min-height: 350px;
}

/* ========================= */

.footer {
  border-top: 1px solid var(--border);

  margin-top: 70px;

  padding: 30px;

  text-align: center;

  color: var(--text-secondary);
}

/* ========================= */

@media (max-width: 768px) {
  .navbar {
    padding: 20px;

    flex-direction: column;

    gap: 15px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-header {
    flex-direction: column;

    align-items: flex-start;

    gap: 15px;
  }
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #888;
    transition: .25s;
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, .8);
}

.status-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, .8);
}

.value.success {
  color: #22c55e;
}

.value.error {
  color: #ef4444;
}

.value.warning {
  color: #f59e0b;
}

.endpoint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.endpoint-card {
  display: block;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: .25s ease;
}

.endpoint-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(79, 140, 255, .15);
}

.endpoint-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border-radius: 14px;
  background: rgba(79, 140, 255, .12);
  margin-bottom: 18px;
}

.endpoint-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.endpoint-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.endpoint-link {
  color: var(--primary);
  font-weight: 600;
}