/* ============================================================
   Dikkemensen.nl - stylesheet
   Palette: crème achtergrond, marineblauw tekst, warm oranje accent
   ============================================================ */

:root {
  --cream:      #FBF7EF;
  --cream-2:    #F3EEE1;
  --navy:       #1B2340;
  --navy-2:     #2A3358;
  --orange:     #F4823A;
  --orange-dark:#E06A21;
  --border:     #E7E0CF;
  --text:       #2B2B2B;
  --muted:      #6B6B6B;
  --green:      #4CAF50;
  --white:      #FFFFFF;
  --radius:     14px;
  --shadow:     0 2px 10px rgba(27,35,64,0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
h1, h2, h3 { color: var(--navy); margin: 0 0 12px; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--orange);
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-sub {
  font-family: 'Segoe UI', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--navy);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--navy);
}
.main-nav a { display: flex; align-items: center; gap: 6px; font-size: 0.95rem; }
.main-nav a:hover { color: var(--orange); }
.icon { font-size: 1rem; }
.has-badge { position: relative; }
.badge {
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
}
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.cta-link {
  background: var(--orange);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 999px;
}
.cta-link:hover { background: var(--orange-dark); color: var(--white) !important; }
.logout-link { color: var(--muted); font-weight: 500; }

/* ---------- Layout ---------- */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  min-height: 60vh;
}
.flash {
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-weight: 600;
}
.flash-success { background: #E4F5E4; color: #2C6B2F; border: 1px solid #BFE4BF; }
.flash-error   { background: #FBE6E1; color: #A23B22; border: 1px solid #F3C6B8; }

/* ---------- Cards / grid ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* profile browse card */
.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.profile-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(27,35,64,0.12); }
.profile-card .photo-wrap { position: relative; aspect-ratio: 1/1; background: var(--cream-2); }
.profile-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.online-dot {
  position: absolute; top: 10px; right: 10px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--white);
}
.profile-card .info { padding: 12px 14px; }
.profile-card .name { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.profile-card .meta { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.profile-card .tagline { font-size: 0.85rem; margin-top: 6px; color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }
.btn-block { width: 100%; margin-bottom: 12px; }
.btn-small { width: auto; padding: 8px 16px; font-size: 0.85rem; }
.btn-danger { background: #fff; color: #B23A22; border-color: #F3C6B8; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; margin: 14px 0 6px; color: var(--navy); }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-narrow { max-width: 480px; margin: 0 auto; }
.hint { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
fieldset { border: none; padding: 0; margin: 0; }

/* ---------- Auth pages ---------- */
.auth-wrap { max-width: 420px; margin: 40px auto; }
.auth-wrap h1 { text-align: center; }
.auth-links { text-align: center; margin-top: 16px; color: var(--muted); }

/* ---------- Profile detail page ---------- */
.profile-detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
@media (max-width: 900px) { .profile-detail { grid-template-columns: 1fr; } }

.main-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; background: var(--cream-2); }
.main-photo img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.thumb-row img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.thumb-row img.active { border-color: var(--orange); }

.detail-panel h1 { font-size: 1.7rem; display: flex; align-items: center; gap: 8px; }
.dot-online { width: 10px; height: 10px; background: var(--green); border-radius: 50%; display: inline-block; }
.sub-meta { color: var(--muted); margin-bottom: 16px; }
.about-block { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 18px 0; }
.spec-item { font-size: 0.9rem; }
.spec-item .label { color: var(--muted); display: block; font-size: 0.78rem; }
.spec-item .value { font-weight: 600; color: var(--navy); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.tag { background: var(--cream-2); color: var(--navy); padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }

.interests-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 10px; }
.interest-item { text-align: center; font-size: 0.82rem; color: var(--navy); width: 70px; }
.interest-item .emoji { font-size: 1.5rem; display: block; margin-bottom: 4px; }

.side-card { margin-bottom: 16px; }
.member-since { font-size: 0.9rem; }
.member-since b { color: var(--navy); }

/* ---------- Messages / conversation ---------- */
.conv-list { display: flex; flex-direction: column; gap: 10px; }
.conv-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
}
.conv-item img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.conv-item .name { font-weight: 700; color: var(--navy); }
.conv-item .preview { color: var(--muted); font-size: 0.88rem; }
.conv-item .time { color: var(--muted); font-size: 0.78rem; margin-left: auto; white-space: nowrap; }
.conv-item.unread { border-color: var(--orange); background: #FFF8F1; }

.chat-window { display: flex; flex-direction: column; height: 60vh; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.chat-header img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg-bubble { max-width: 65%; padding: 10px 14px; border-radius: 16px; font-size: 0.92rem; }
.msg-mine { align-self: flex-end; background: var(--orange); color: var(--white); border-bottom-right-radius: 4px; }
.msg-theirs { align-self: flex-start; background: var(--cream-2); color: var(--text); border-bottom-left-radius: 4px; }
.msg-time { font-size: 0.68rem; opacity: 0.7; margin-top: 4px; display: block; }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); }
.chat-form textarea { flex: 1; min-height: 44px; }
.chat-form button { width: auto; padding: 0 22px; }

/* ---------- Search filters ---------- */
.filter-bar { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 24px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; align-items: end; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 34px 20px;
  margin-top: 40px;
}
.footer-tagline { font-family: Georgia, serif; font-style: italic; font-size: 1.3rem; margin-bottom: 16px; }
.footer-tagline .accent { color: var(--orange); }
.footer-points { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; font-size: 0.85rem; opacity: 0.9; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
}
