/* Kaha Chalen? – minimalist shared theme
   One stylesheet for all pages */
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

:root {
  --bg: #050816;
  --bg-elevated: #06091a;
  --border: #1f2937;
  --accent: #2563eb;
  --accent-soft: rgba(37,99,235,0.12);
  --accent-strong: #1d4ed8;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 40px rgba(15,23,42,0.7);
  --nav-height: 60px;
  --max-width: 1120px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  --bg: #f3f4f6;
  --bg-elevated: #ffffff;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-soft: rgba(37,99,235,0.08);
  --accent-strong: #1d4ed8;
  --text-main: #020617;
  --text-muted: #4b5563;
  --shadow-soft: 0 8px 20px rgba(15,23,42,0.08);
}

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

html, body {
  height: 100%;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at top left, #111827, #020617 50%, #000);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(15,23,42,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,0.9);
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.12s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(148,163,184,0.18);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--text-main);
  background: var(--accent-soft);
}

.nav-btn {
  border: 1px solid var(--accent);
}

.theme-toggle {
  margin-left: 0.1rem;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

.theme-toggle:hover {
  background: rgba(15,23,42,0.9);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* LAYOUT */
.main-layout {
  flex: 1;
  max-width: var(--max-width);
  margin: 1.4rem auto 2rem;
  padding: 0 1rem;
  display: flex;
  gap: 1.4rem;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.column-left  { flex: 1.1; }
.column-middle{ flex: 1.5; }
.column-right { flex: 1.3; }

.column-right .card {
  transition: transform 0.25s ease;
}

.column-right .card:hover {
  transform: translateY(-4px);
}
/* CARDS & TEXT */
.card {
  background: radial-gradient(
    circle at 20% 10%,
    rgba(148, 163, 184, 0.22),
    rgba(37, 99, 235, 0.12) 30%,
    rgba(15, 23, 42, 1) 85%
  );
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.8),
    0 0 35px rgba(37, 99, 235, 0.18);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    circle at top left,
    rgba(110, 231, 183, 0.28),
    rgba(244, 114, 182, 0.22) 35%,
    transparent 75%
  );
  opacity: 0.18;
  filter: blur(12px);
  transition: 0.3s ease;
}

.card:hover::before {
  opacity: 0.42;
  filter: blur(22px);
}

.section-title {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-card { padding: 1.2rem 1.3rem; }
.quiz-title {
  font-size: 1.3rem;
  font-weight: 700;
  background-image: linear-gradient(135deg, #a855f7, #f472b6);
  -webkit-background-clip: text;
  color: transparent;
}
.quiz-features {
  margin: 0.8rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-item {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.2rem;
}

.feature-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #f472b6);
}
.hero-card {
  padding: 2rem 1.8rem;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(168, 85, 247, 0.25),
    rgba(37, 99, 235, 0.15),
    rgba(15, 23, 42, 1) 80%
  );
}
.app-title {
  font-size: 2rem;
  background-image: linear-gradient(135deg, #6a11cb, #a855f7, #f472b6, #2563eb);
  -webkit-background-clip: text;
  color: transparent;
}
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.search-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.search-row .input {
  flex: 1;
}

.search-row .primary-btn {
  white-space: nowrap;
}
.card:hover {
  transform: translateY(-3px);
}
.app-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* MAP & SLIDESHOW */
#map,
#results-map {
  height: 230px;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.slideshow {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.slide {
  display: none;
  position: relative;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.slide.active {
  display: block;
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.slide-caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.slide-dots {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.55rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148,163,184,0.5);
}

.dot.active {
  background: var(--accent);
}

/* BUTTONS & INPUTS */
.primary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  background-image: linear-gradient(135deg, #6a11cb, #a855f7, #f472b6, #2563eb);
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.35);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(37, 99, 235, 0.45);
}

.primary-btn.full-width { width: 100%; }
.primary-btn.small { font-size: 0.8rem; padding-inline: 0.8rem; }

.primary-btn.secondary {
  background: var(--accent-strong);
}

.primary-btn.outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15,23,42,0.6);
}

.input,
textarea,
select {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.58rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
  font-size: 0.9rem;
}

textarea {
  border-radius: var(--radius-md);
  min-height: 90px;
}

/* FOOTER */
.footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* RESULTS PAGE */
.results-header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.results-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.results-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.tag-pill {
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  padding: 1.4rem 1.4rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.highlight-card {
  padding: 1.8rem 1.6rem;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(168, 85, 247, 0.25);
}
.place-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.place-img-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.place-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-category-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(15,23,42,0.92);
  color: var(--text-muted);
}

.place-body {
  padding: 0.85rem 1rem 1rem;
}

.place-name {
  font-size: 1rem;
  font-weight: 600;
}

.place-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.45rem;
}

.place-tag {
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  font-size: 0.7rem;
  border: 1px solid rgba(148,163,184,0.6);
  color: var(--text-muted);
}

.map-section {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  padding: 0 1.4rem;
}

.map-section-title {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  padding-bottom: 2.3rem;
}

.no-results {
  text-align: center;
  padding: 2.4rem 1rem;
  color: var(--text-muted);
}

.no-results-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

/* QUIZ */
#quiz-box {
  margin-top: 1rem;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

#question-text {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}
.quiz-features p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

#options-area {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.option-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 900px) {
  .main-layout {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    gap: 0.35rem;
    height: auto;
  }
}

.slideshow-card .section-subtitle {
  margin-bottom: 0.8rem;
}
.column-left .card {
  margin-bottom: 0.3rem;
}
.nav-link.active {
  background: var(--accent-soft);
  color: var(--text-main);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}
.primary-btn:active {
  transform: scale(0.97);
}