/*
Theme Name: Naga Hymnals
Version: 5.0
*/

:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --hover-bg: #111827;
  --hover-text: #ffffff;
}

body.dark {
  --bg: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #1e293b;
  --hover-bg: #f8fafc;
  --hover-text: #111827;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.6;
}

/* HERO */
.hero {
  text-align: center;
  padding: 50px 20px 30px;
}

.hero .label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400; /* lighter */
  line-height: 1.2;
  margin: 0 auto;
  max-width: 1000px;
}

.hero p {
  margin: 18px auto 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 15px;
}

/* Section */
.section-title {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Grid - Desktop 4 Columns */
.language-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Cards */
.language-card {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.language-card h3 {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
}

.language-card .arrow {
  font-size: 14px;
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hover */
.language-card:hover {
  background: var(--hover-bg);
  color: var(--hover-text);
}

.language-card:hover .arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Toggle Switch */
.switch {
  position: relative;
  width: 42px;
  height: 22px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: var(--border);
  border-radius: 50px;
  width: 100%;
  height: 100%;
  transition: 0.3s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background-color: #111827;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Responsive */
@media (max-width: 900px) {
  .language-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .language-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on mobile */
  }
}