/* ──────────────────────────────── */
/* Variables & Themes                   */
/* ──────────────────────────────── */
:root {
  --btn-h: 56px;
  --top-offset: 60px;
  --bottom-offset: 60px;

  /* Color Variables */
  --bg: #f5f7fa;
  --fg: #222;
  --card: #fff;
  --primary: #007aff;

  /* Shadow & Radius Variables */
  --radius: 16px;
  --shadow-light: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-strong: 0 8px 24px rgba(0,0,0,0.2);
}

[data-theme="dark"] {
  --bg: #121212;
  --fg: #eee;
  --card: #1e1e1e;
  --primary: #0a84ff;
  --shadow-light: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-strong: 0 8px 24px rgba(0,0,0,0.5);
}

/* ──────────────────────────────── */
/* Reset & Base                          */
/* ──────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg) !important;
  color: var(--fg) !important;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ──────────────────────────────── */
/* App Container                        */
/* ──────────────────────────────── */
#app {
  position: absolute;
  top: var(--top-offset);
  bottom: var(--bottom-offset);
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: 1;
}

/* ──────────────────────────────── */
/* Swipe Card                            */
/* ──────────────────────────────── */
#card-container {
  position: relative;
  width: 90%;
  max-width: 400px;
  height: 100%;
  margin: 0 auto;
}

.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  bottom: calc(var(--btn-h) + var(--bottom-offset));
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease-out, opacity .3s ease-out;
}

/* ──────────────────────────────── */
/* Photo Section                         */
/* ──────────────────────────────── */
.photo-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}
.photo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
@media (min-aspect-ratio: 4/3) {
  .photo {
    width: 100%;
    height: auto;
  }
}
.photo-container .photo-toggle,
.photo-container .heart-toggle {
  position: absolute;
  top: 8px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .2s, color .2s;
}
.photo-container .photo-toggle { left: 8px; }
.photo-container .heart-toggle { right: 8px; color: #aaa; }
.photo-container .heart-toggle:hover { background: rgba(255,255,255,1); }
.photo-container .heart-toggle.favorited { color: #e74c3c; }

/* Photo default & zoomed */
.card .photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f0f0f0;
  transition: object-fit .2s ease;
}
.card .photo.zoomed {
  object-fit: cover;
}

/* ──────────────────────────────── */
/* Info Below Photo                     */
/* ──────────────────────────────── */
.info {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 120px;
}
.info .logo { height: 80px; }
.info .text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.info .title   { font-size: 1.2rem; font-weight: bold; }
.info .categorie,
.info .location { font-size: 0.95rem; color: #555; }
.info .price   { margin-top:6px; font-size:1.1rem; color: #28a745; font-weight:bold; }
.logo-link .logo { transition: filter .2s, transform .2s; }
.logo-link:hover .logo { filter: brightness(1.2); transform: scale(1.05); }

/* ──────────────────────────────── */
/* Action Buttons (Bottom)               */
/* ──────────────────────────────── */
.buttons {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  display: flex;
  justify-content: space-between;
}
.buttons button {
  flex: 1;
  margin: 0 4px;
  height: var(--btn-h);
  border: none;
  border-radius: calc(var(--radius) * 1.75);
  box-shadow: var(--shadow-light);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: box-shadow .2s, transform .1s;
}
.buttons button:hover { filter: brightness(1.1); }
.buttons button:active {
  box-shadow: var(--shadow-strong);
  transform: translateY(1px);
}
#skip  { background: #d9534f; }
#share { background: #25D366; }
#like  { background: var(--primary); }

/* ──────────────────────────────── */
/* Header & Menu                        */
/* ──────────────────────────────── */
.header-bar {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row-reverse;
  z-index: 1001;
}
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger .line {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: background-color .2s;
}
.hamburger:hover .line { background-color: var(--primary); }
.menu {
  position: fixed;
  top: 0; right: -100%;
  width: 200px; height: 100vh;
  background: var(--card);
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: right .3s;
  padding-top: 60px;
  z-index: 1000;
}
.menu.open { right: 0; }
.menu ul { list-style:none; padding:0 20px; }
.menu ul li { margin:20px 0; }
.menu ul li a {
  text-decoration:none;
  color:#333;
  font-size:1rem;
  transition: color .2s;
}
.menu ul li a:hover { color: var(--primary); }

/* ──────────────────────────────── */
/* Profile Avatar                       */
/* ──────────────────────────────── */
.profile-wrapper {
  position: relative;
  width:44px; height:44px;
  padding:2px;
  border-radius:50%;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-left:8px;
  z-index:1002;
}
.profile-wrapper .profile-thumb {
  width:40px; height:40px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid #003366;
}

/* ──────────────────────────────── */
/* Onboarding, Responsive, Switch, etc.  */
/* ──────────────────────────────── */
/* overige zaken ongewijzigd linken */



/* ──────────────────────────────── */
/* Onboarding Overlay              */
/* ──────────────────────────────── */
#onboarding-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.75);
  color: #fff;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.onboarding-content {
  background: #007aff;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  color: #fff;
}
.onboarding-content h2 {
  margin-bottom: 12px;
}
#onboarding-ok {
  margin-top: 20px;
  padding: 10px 18px;
  background: #fff;
  color: #007aff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
#onboarding-ok:hover {
  background: #e6f0ff;
}

/* ──────────────────────────────── */
/* Mobiele aanpassing kaart         */
/* ──────────────────────────────── */
@media (max-width: 768px) {
  :root { --top-offset: 80px; }
  #card-container { margin-top: 20px; }
}

/* ──────────────────────────────── */
/* Responsive profiel layout       */
/* ──────────────────────────────── */
.page-profile main.profile-page-wrapper {
  position: absolute;
  top: var(--top-offset);
  bottom: var(--bottom-offset);
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  background: #f5f7fa;
  overflow: visible;
}
.page-profile .card {
  margin: 0;
}
.page-profile .profile-circle {
  border: 4px solid #007aff;
}
.page-profile .input-group input {
  background: #fafafa;
}
/* Toggle switch styling */
.theme-switch {
  display: inline-block;
  position: relative;
  width: 50px;
  height: 26px;
  margin-left: 8px;
}
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.theme-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 26px;
}
.theme-switch .slider:before {
  position: absolute;
  content: "";
  height: 22px; width: 22px;
  left: 2px; bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
.theme-switch input:checked + .slider {
  background-color: var(--primary);
}
.theme-switch input:checked + .slider:before {
  transform: translateX(24px);
}

/* Light/dark theme variables */
:root {
  /* light theme colors */
  --bg: #f5f7fa;
  --fg: #222;
  --card: #fff;
  --shadow: rgba(0,0,0,.1);
  --primary: #007aff;
}
[data-theme="dark"] {
  --bg: #121212;
  --fg: #eee;
  --card: #1e1e1e;
  --shadow: rgba(0,0,0,.5);
  --primary: #0a84ff;
}
/* apply */
html, body {
  background: var(--bg) !important;
  color: var(--fg) !important;
}
.card {
  background: var(--card);
  box-shadow: 0 8px 24px var(--shadow);
}
.btn-save, .primary {
  background: var(--primary) !important;
}


.menu ul li.theme-item {
  display: flex;
  align-items: center;
  /* optioneel: maak 'm net iets hoger als je wil */
  /* height: 48px; */
}

/* schuif de hele inhoud van dat rijtje 4px naar beneden */
.menu ul li.theme-item > * {
  transform: translateY(80px);
}

/* reset voor de switch zelf, zodat z'n eigen translate niet dubbel telt */
.menu ul li.theme-item .theme-switch {
  transform: translateY(80px); /* precies dezelfde nudge */
}


:root {
  --color-skip:   #FF8C69;  /* warm koraal */
  --color-share:  #4DD0E1;  /* fris turquoise */
  --color-like:   #5cb85c;  /* zacht gedempt groen */
}

/* Buttons toepassen */
#skip  { background: var(--color-skip); }
#share { background: var(--color-share); }
#like  { background: var(--color-like); }

/* Optioneel: subtiel hover-effect */
#skip:hover,
#share:hover,
#like:hover {
  filter: brightness(0.9);
}

.buttons button {
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  font-weight: 600;
}

:root {
  --btn-skip: #FF8C69;
  --btn-share: #4DD0E1;
  --btn-like: #5CB85C;
  --btn-text: #ffffff;
}
#skip  { background: var(--btn-skip); color: var(--btn-text); }
/* … */

.buttons button {
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.buttons button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.buttons button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.info .title { margin-bottom: 4px; }
.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.info .categorie,
.info .location {
  color: rgba(0,0,0,0.6);
  font-style: italic;
}
.info .price {
  background: rgba(40,167,69,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
#card-container {
  padding-bottom: 80px; /* maakt ruimte voor buttons */
}
.card {
  margin-bottom: -28px; /* laat kaart licht overknippen */
}
.photo-container {
  height: 60vh;
  max-height: 600px;
}
.buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 32px;
  height: var(--btn-h);
  border-radius: 28px;
}
.card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

