:root {
  --nav-bg: #161925;
  --card-bg: #22232e;
  --canvas-bg: #181921;
  --accent: #2563eb;
  --accent-light: #4f8fff;
  --input-bg: #1a1b24;
  --border: #252740;
  --font-main: 'Inter', Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--font-main);}
body {
  background: var(--canvas-bg);
  color: #fff;
  min-height: 100vh;
}

/* ---- NAVBAR ---- */
.topnav {
  background: var(--nav-bg);
  width: 100vw; min-width: 100vw;
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.11);
}
.topnav-content {
  width: 100%; max-width: 1250px;
  margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; margin-right: 10px; }
.nav-left { display: flex; align-items: center; gap: 8px; }
.logo-text { font-weight: 700; font-size: 1.14em; color: #fff;}
.nav-right { display: flex; align-items: center; gap: 2vw;}
.nav-right a {
  color: #dde7f8;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  transition: 0.17s;
  background: none;
  border: 0;
}
.nav-right a.active {
  background: var(--accent);
  color: #fff;
}
.nav-right a:hover {
  background: #23243b;
  color: var(--accent-light);
}

/* ---- MAIN DASHBOARD/SECTION LAYOUT ---- */
.dashboard-section, .dashboard-row {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 48px auto;
  padding: 40px 26px;
  background: var(--card-bg);
  border-radius: 22px;
  box-shadow: 0 2px 26px rgba(0,0,0,.13);
}
@media (max-width: 700px) {
  .dashboard-section, .dashboard-row { border-radius: 0; padding: 18px 3vw; }
}
.dashboard-section { margin-top: 42px; }

/* ---- HOMEPAGE HERO ---- */
.hero {
  width: 100vw;
  min-height: 420px;
  position: relative;
  background: url('bg.jpg') no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18,20,31,.70);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0 90px 0;
}
.hero h1 {
  font-size: 2.7rem; font-weight: 800; color: #fff;
  letter-spacing: 1.2px; margin-bottom: 10px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 48px;
  color: #e2e7fa;
  font-weight: 500;
  text-shadow: 0 2px 16px #19191966;
  max-width: 800px;
  line-height: 1.5;
}
.hero-buttons {
  display: flex;
  gap: 2vw;
  justify-content: center;
  margin-bottom: 46px;
}
.btn, .btn-blue {
  font-size: 1.12rem; padding: 16px 36px; border-radius: 13px; border: none;
  font-weight: 700; transition: 0.18s; text-decoration: none;
  box-shadow: 0 2px 10px rgba(70,128,255,0.10);
  margin-bottom: 0; cursor: pointer;
}
.btn-blue { background: var(--accent); color: #fff;}
.btn-blue:hover { background: #134dd1;}
.btn-transparent {
  background: rgba(255,255,255,0.10); color: #fff;
  border: 2px solid #e6efff;
}
.btn-transparent:hover { background: rgba(255,255,255,.25); color: #23243b;}
/* Icon grid row (for homepage features) */
.features {
  display: flex;
  gap: 38px; justify-content: center;
  flex-wrap: wrap;
}
.feature-btn {
  width: 230px; height: 155px; border-radius: 18px;
  background: rgba(32,34,52,0.80);
  box-shadow: 0 2px 24px rgba(0,0,0,0.13);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #e3eefe; font-weight: 600; font-size: 1.16rem;
  border: 2px solid #23243b; text-align: center;
  transition: 0.22s; margin-bottom: 25px;
  backdrop-filter: blur(2px);
}
.feature-btn img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 14px;}
.feature-btn:hover {
  background: #171933; color: #5eead4; border-color: var(--accent);
  transform: scale(1.045);
}

/* ---- FLEX/GRID SECTIONS ---- */
.page-header, .card-header, .dashboard-header, .dashboard-row .header {
  text-align: center; margin-bottom: 36px;
}
.page-header h1, .dashboard-header h1 { font-size: 2.15rem; font-weight: 800; margin-bottom: 8px;}
.page-header p, .dashboard-header p { color: #b6c3e1; font-size: 1.1em;}

/* ---- APP-WIDE CARDS/INPUTS ---- */
input, select, textarea {
  font-size: 1.07rem;
  background: var(--input-bg);
  color: #e3eafe;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  margin-bottom: 12px;
  margin-right: 10px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  background: #22223a;
  outline: none;
}
textarea { resize: vertical; min-height: 96px;}
button { font-size: 1.07rem; }

/* ---- MAPS ---- */
.map-container, .dashboard-map-row {
  width: 100%; max-width: 1100px; margin: 0 auto 18px auto; text-align: center;
  display: flex; flex-direction: row; gap: 36px; align-items: flex-start; justify-content: center;
  background: transparent; box-shadow: none;
}
.map-container iframe, .dashboard-map {
  width: 64vw; min-width: 300px; max-width: 650px; height: 400px; border: none; border-radius: 12px; background: #dadcea;
}

/* ---- DASHBOARD CARDS/LISTS ---- */
.dashboard-card, .dashboard-list, .dashboard-panel {
  background: rgba(33,34,48,0.99);
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(0,0,0,.09);
  color: #ece8ff; padding: 24px 26px; margin-bottom: 24px;
}
.dashboard-list { min-width: 250px; max-width: 340px; }
.dashboard-list img { width: 80px; height: 64px; object-fit: cover; border-radius: 10px;}
.dashboard-list .category {
  background: var(--accent); color: #fff;
  border-radius: 8px; font-size: 1em; padding: 3px 11px; margin-left: 10px;
  display: inline-block;
}

/* ---- REGION MATCHER / MOOD CARDS ---- */
.form-row, .special-form, .mood-section, .region-form-row {
  margin: 30px auto 0 auto; padding: 24px 0;
  border-radius: 15px;
  background: var(--card-bg);
}
.mood-buttons button, .region-buttons button {
  background: #323757;
  color: #cee4fa;
  margin: 6px; padding: 13px 18px; border-radius: 10px;
  transition: background 0.17s, color 0.17s;
  border: none; font-weight: 600;
}
.mood-buttons button:hover, .region-buttons button:hover {
  background: var(--accent); color: #fff;
}
.mood-buttons button.selected,
.region-buttons button.active { background: var(--accent); color: #fff; }

/* ---- CARDS/LISTS ---- */
.card, .list, .stats-section {
  background: #1f2029;
  border-radius: 16px;
  padding: 30px 20px;
  margin-bottom: 28px;
}

/* ---- FOOTER ---- */
footer { text-align: center; padding: 24px; color: #6c7faa; font-size: 1em; margin-top: 48px;}

/* ---- IMAGES ---- */
img { max-width: 100%; border-radius: 10px; }


.language-select,
.dashboard-row {
  flex-direction: column !important;
  gap: 16px !important;
  align-items: stretch !important;
}
.text-area-container {
  flex-direction: column !important;
  gap: 14px;
}
.dashboard-section, .translator-container  {
  max-width: 500px !important;
  margin: 52px auto !important;
  padding: 28px 18px !important;
}
textarea, select {
  width: 100% !important;
}

.center-form {
  max-width: 370px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.center-form input,
.center-form button {
  width: 100%;
}

.center-form hr {
  margin: 28px 0;
}

.mood-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mood-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.mood-row button {
  background: #343a50;
  color: #fff;
  border-radius: 10px;
  border: none;
  padding: 20px 30px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  min-width: 120px;
  min-height: 64px;
  text-align: center;
  transition: background 0.18s, color 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mood-row button.selected,
.mood-row button:hover {
  background: #2563eb;
  color: #fff;
}

.mood-results {
  margin-top: 32px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.mood-box {
  background: #2a2b3a;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.09);
  max-width: 700px;
  padding: 28px 18px 34px 18px;
  margin: 0 auto 38px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mood-box h2 {
  text-align: center;
  margin-bottom: 14px;
  font-size: 2em;
}

.mood-row {
  display: flex;
  flex-direction: row;
  gap: 17px;
  justify-content: center;
  flex-wrap: wrap;
}

.mood-row button {
  background: #343a50;
  color: #fff;
  border-radius: 10px;
  border: none;
  padding: 20px 28px;
  font-size: 1.09em;
  font-weight: 600;
  cursor: pointer;
  min-width: 110px;
  min-height: 62px;
  text-align: center;
  transition: background 0.18s, color 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mood-row button.selected,
.mood-row button:hover {
  background: #2563eb;
  color: #fff;
}

.mood-results {
  margin-top: 32px;
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.features-section {
  max-width: 1150px;
  margin: 0 auto 48px auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-header {
  text-align: center;
  margin-bottom: 30px;
}

.features-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.features-header p {
  color: #cdd7eb;
  font-size: 1.14em;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.feature-card {
  background: #222537;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.12);
  padding: 32px 26px 28px 26px;
  max-width: 285px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.feature-card img {
  width: 88px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 12px;
}

.feature-card h3 {
  margin: 12px 0 6px 0;
  font-size: 1.19rem;
  font-weight: 700;
  color: #fff;
}

.feature-card p {
  font-size: 1em;
  color: #c1c8e1;
  margin-bottom: 18px;
}

.feature-card .btn {
  width: 100%;
  padding: 12px 0;
  border-radius: 10px;
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 0;
  margin-top: 4px;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 6px 32px rgba(0,38,110,0.16);
  background: #23293c;
}

.stats-section {
  width: 100%;
  padding: 32px 0;
  background: #20212c;
  border-radius: 18px;
  margin: 0 auto 36px auto;
}

.stats-center {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  gap: 56px;
}

.stats-center > div {
  color: #fff;
  font-size: 1.19em;
  font-weight: 500;
}

.stats-big {
  display: block;
  font-size: 2.05em;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

@media (max-width: 800px) {
  .stats-center { flex-direction: column; gap: 18px; }
}

.feature-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

html {
  scroll-behavior: smooth;
}
