/* countrycode.xyz — Global Styles */
:root {
  --bg: #0f0f14;
  --surface: #1a1a24;
  --surface2: #242436;
  --border: #2a2a3e;
  --text: #e8e8f0;
  --text2: #9898b0;
  --accent: #6c5ce7;
  --accent2: #a29bfe;
  --green: #00cec9;
  --pink: #fd79a8;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

nav .logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent2);
  text-decoration: none;
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--surface2);
  border-radius: 8px;
  padding: 3px;
}

.lang-switch button {
  background: none;
  border: none;
  color: var(--text2);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.lang-switch button.active {
  background: var(--accent);
  color: white;
}

.lang-switch button:hover:not(.active) {
  color: var(--text);
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent2), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero p {
  color: var(--text2);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* Test Cards Grid */
.tests {
  max-width: 800px;
  margin: -20px auto 60px;
  padding: 0 24px;
  display: grid;
  gap: 16px;
}

.test-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.test-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.test-card h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.test-card .en-title {
  color: var(--text2);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.test-card p {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.5;
}

.test-card .meta {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text2);
}

.test-card .meta span {
  background: var(--surface2);
  padding: 3px 10px;
  border-radius: 6px;
}

.test-card .tag-new {
  color: var(--green);
}
.test-card .tag-hot {
  color: var(--pink);
}

/* Footer */
footer {
  text-align: center;
  padding: 32px;
  color: var(--text2);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 48px 20px 40px; }
  nav { padding: 12px 16px; }
  .tests { padding: 0 16px; }
}
