/* === VARIABLES === */
:root {
  --bg:         #6B2B2B;
  --bg-dark:    #4a1e1e;
  --bg-panel:   rgba(25, 8, 8, 0.97);
  --text:       #f5f0f0;
  --text-muted: #c9b0b0;
  --border:     rgba(255, 255, 255, 0.15);
  --accent:     #e8c4a0;
  --nav-width:  300px;
  --radius:     8px;
  --transition: 0.3s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* === HAMBURGER BUTTON === */
#hamburger {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 900;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* === NAV OVERLAY === */
#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 950;
}
#nav-overlay.visible { display: block; }

/* === NAV PANEL === */
#nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--nav-width);
  height: 100%;
  background: var(--bg-panel);
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 1000;
  padding: 1.5rem;
  overflow-y: auto;
  border-left: 1px solid var(--border);
}
#nav-panel.open { transform: translateX(0); }

#nav-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  margin-bottom: 2rem;
  display: block;
  line-height: 1;
}
#nav-close:hover { color: var(--text); }

#nav-panel ul { list-style: none; }
#nav-panel ul li { border-bottom: 1px solid var(--border); }
#nav-panel ul li a {
  display: block;
  padding: 0.9rem 0.25rem;
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
#nav-panel ul li a:hover { color: var(--accent); text-decoration: none; }

/* === HOMEPAGE === */
.home-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.home-logo { width: min(420px, 85vw); }

/* === PAGE LAYOUT === */
.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.page h1 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: 0.02em; }
.page h2 { font-size: 1.25rem; margin-bottom: 0.75rem; margin-top: 2rem; }

/* === SIMPLE LIST (recepten, links) === */
.simple-list { list-style: none; }
.simple-list li { border-bottom: 1px solid var(--border); }
.simple-list li a {
  display: block;
  padding: 0.75rem 0.25rem;
  color: var(--text);
  font-size: 1rem;
  transition: padding var(--transition), color var(--transition);
}
.simple-list li a:hover { color: var(--accent); text-decoration: none; padding-left: 0.5rem; }

/* === ADRESJES MAP === */
.map-container { border-radius: var(--radius); overflow: hidden; margin-top: 1.5rem; }
.map-container iframe { width: 100%; height: 480px; border: none; display: block; }

/* === FORMS === */
.form-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 400px;
  margin: 0 auto;
}
.form-card h1 { text-align: center; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { min-height: 100px; resize: vertical; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: opacity var(--transition);
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--accent); color: #2a0a0a; font-weight: 600; }
.btn-danger  { background: #c0392b; color: #fff; }
.btn-sm      { padding: 0.3rem 0.8rem; font-size: 0.85rem; }

.alert-error {
  background: rgba(192, 57, 43, 0.25);
  border: 1px solid rgba(192, 57, 43, 0.5);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-success {
  background: rgba(39, 174, 96, 0.2);
  border: 1px solid rgba(39, 174, 96, 0.4);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* === ADMIN TABLE === */
.admin-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.admin-table th,
.admin-table td { padding: 0.65rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.admin-table th { color: var(--text-muted); font-weight: 500; }

/* === BREATHWORK === */
.breathwork-wrap { display: flex; flex-direction: column; align-items: center; gap: 2rem; padding: 2rem 0; }

.breath-circle-wrap { position: relative; width: 220px; height: 220px; }
.breath-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--accent);
  transition: transform 0.8s ease, opacity 0.8s ease;
}
.breath-ring.inhale  { transform: scale(1.15); opacity: 1; }
.breath-ring.hold    { transform: scale(1.15); opacity: 0.7; }
.breath-ring.exhale  { transform: scale(0.85); opacity: 0.5; }
.breath-ring.rest    { transform: scale(0.85); opacity: 0.3; }

.breath-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.breath-label .countdown { font-size: 2rem; font-weight: 300; }
.breath-label .phase     { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

.breath-controls { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.breath-settings {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
  max-width: 420px;
}
.breath-settings h3 { margin-bottom: 1rem; font-size: 1rem; color: var(--text-muted); }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .page { padding: 2rem 1rem 3rem; }
  .page h1 { font-size: 1.4rem; }
  .map-container iframe { height: 300px; }
  .settings-grid { grid-template-columns: 1fr; }
  #nav-panel { width: 100%; }
  .admin-table th:last-child,
  .admin-table td:last-child { display: none; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .page { padding: 2.5rem 1.5rem 3.5rem; }
}

.page--auth { padding-top: 4rem; }
