/* ==============================================================
   Viking Education Modern Theme
   Author: Reprospace / Ingemar Anderson
   Updated: 2025
   ============================================================== */

/* ---------- Root & Globals ---------- */
:root {
  --viking-green: #4CAF50;
  --viking-dark: #2b6a34;
  --viking-light: #e8f5e9;
  --accent: #00994c;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.12);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s ease-in-out;
}


/* More breathing room in the profile form */
form { display: grid; grid-template-columns: 1fr; row-gap: 1.6rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; row-gap: 1.6rem; }
@media (max-width: 880px) { .row { grid-template-columns: 1fr; } }
label { margin-bottom: .55rem; }
input, textarea, select { padding: 1rem 1.1rem; }


body, html {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background-color: #f9fafb;
  color: #222;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--viking-dark);
}

/* ---------- Header ---------- */
header {
  background: linear-gradient(90deg, var(--viking-dark), var(--viking-green));
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: 0.5px;
}
nav a {
  color: #fff;
  margin-left: 1rem;
  font-weight: 500;
  position: relative;
}
nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: #fff;
  transition: width 0.25s ease-in-out;
}
nav a:hover::after {
  width: 100%;
}

/* ---------- Buttons ---------- */
.btn {
  background: var(--viking-green);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-weight: 600;
  transition: var(--transition);
}
.btn:hover {
  background: var(--viking-dark);
  box-shadow: var(--shadow-hover);
}
.btn.alt {
  background: #fff;
  color: var(--viking-dark);
  border: 1px solid var(--viking-green);
}
.btn.alt:hover {
  background: var(--viking-light);
  color: var(--viking-dark);
}

/* ---------- Cards & Containers ---------- */
.glass-card, .card, .card-lg {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: var(--transition);
}
.card:hover, .card-lg:hover, .glass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1.5rem;
}

/* ---------- Forms ---------- */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
input, select, textarea {
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 1rem;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(76,175,80,0.2);
}
input:hover, select:hover, textarea:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* ---------- Sections ---------- */
section {
  margin: 0 auto;
  padding: 3rem 1.5rem;
  max-width: 1200px;
}
section h2, section h3 {
  font-family: 'Playfair Display', serif;
  color: var(--viking-dark);
  text-align: center;
  margin-bottom: 1rem;
}

/* ---------- Alerts ---------- */
.alert {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem auto;
  box-shadow: var(--shadow);
  font-weight: 500;
}
.alert-error { background: #ffecec; color: #b91c1c; border-left: 5px solid #f87171; }
.alert-warning { background: #fffbea; color: #92400e; border-left: 5px solid #fbbf24; }
.alert-success { background: #e8f5e9; color: #166534; border-left: 5px solid #22c55e; }

/* ---------- Footer ---------- */
footer {
  background: var(--viking-dark);
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 3rem;
  font-size: 0.95rem;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.2);
}
footer a {
  color: #fff;
  font-weight: 600;
}
footer a:hover {
  text-decoration: underline;
}

/* ---------- Animations & Subtle Interactions ---------- */
button, a.btn, .card, input, select, textarea {
  transition: var(--transition);
}
::selection {
  background: var(--viking-green);
  color: #fff;
}
@media (max-width: 768px) {
  header { flex-direction: column; align-items: flex-start; }
  nav { margin-top: .5rem; }
  section { padding: 2rem 1rem; }
}
