/* ============================================================
   HiBlack – isdevisaldood.nl – Stijlblad
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* ── Variabelen ─────────────────────────────────────────────── */
:root {
  --ocean-deep:   #0d3b5e;
  --ocean-mid:    #1a6b8a;
  --ocean-light:  #2596be;
  --teal:         #f07c2a;   /* oranje – HiBlack's kleur */
  --teal-hover:   #e8621a;
  --foam:         #d6eaf8;
  --sand:         #fdf6ec;
  --text:         #1e2d3d;
  --text-light:   #5a7a94;
  --danger:       #c0392b;
  --danger-light: #fdecea;
  --gold:         #f0c040;
  --radius:       12px;
  --shadow:       0 4px 20px rgba(13,59,94,.10);
  --shadow-hover: 0 8px 32px rgba(13,59,94,.18);
}

/* ── Reset & basis ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--sand);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--ocean-mid); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal); }

img { max-width: 100%; display: block; }

/* ── Kopteksten ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

/* ── Banner "vis is dood" ───────────────────────────────────── */
.dead-banner {
  background: var(--danger);
  color: #fff;
  text-align: center;
  padding: .75rem 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .03em;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 60%, var(--ocean-light) 100%);
  color: #fff;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
}

.site-logo .fish-icon { font-size: 1.8rem; }

.site-logo span.tagline {
  font-size: .75rem;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  opacity: .8;
  display: block;
  letter-spacing: .04em;
}

.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 400;
  transition: color .2s;
}
.site-nav a:hover { color: var(--teal); }
.site-nav a.nav-cta {
  background: var(--teal);
  color: #fff;
  padding: .4rem 1rem;
  border-radius: 20px;
  font-weight: 700;
}
.site-nav a.nav-cta:hover { background: var(--teal-hover); color: #fff; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 60px;
  background: var(--sand);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-fish { font-size: 5rem; margin-bottom: 1rem; animation: swim 4s ease-in-out infinite; }
.hero-fish-img { width: 260px; height: auto; margin: 0 auto 1.25rem; display: block; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); }
@keyframes swim {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-12px) rotate(3deg); }
}

.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .5rem; }
.hero .subtitle {
  font-size: 1.1rem;
  opacity: .8;
  max-width: 520px;
  margin: 0 auto 2rem;
  font-weight: 300;
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.25rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
}
.status-badge.alive  { background: rgba(240,124,42,.15); color: var(--teal); border: 2px solid var(--teal); }
.status-badge.dead   { background: rgba(192,57,43,.2);  color: #e74c3c;      border: 2px solid #e74c3c; }
.status-badge .dot   { width: 10px; height: 10px; border-radius: 50%; }
.status-badge.alive .dot { background: var(--teal); animation: pulse 1.5s infinite; }
.status-badge.dead  .dot { background: #e74c3c; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.3); }
}

/* ── Pagina-inhoud container ────────────────────────────────── */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  flex: 1;
}

.section-title {
  font-size: 1.7rem;
  color: var(--ocean-deep);
  margin-bottom: 1.75rem;
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--teal);
  display: inline-block;
}

/* ── Blog kaartjes ──────────────────────────────────────────── */
.post-grid { display: grid; gap: 1.5rem; }

.post-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.post-card-body { padding: 1.5rem; flex: 1; }

.post-meta {
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.post-card h2 {
  font-size: 1.3rem;
  color: var(--ocean-deep);
  margin-bottom: .75rem;
}

.post-excerpt {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--foam);
  display: flex;
  justify-content: flex-end;
}

.btn-read {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ocean-mid);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.btn-read:hover { color: var(--teal); }

/* ── Detail-bericht ─────────────────────────────────────────── */
.post-header {
  margin-bottom: 2rem;
}
.post-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--ocean-deep);
  margin-bottom: .5rem;
}

.post-body {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-wrap;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* ── Nieuwsbrief blok ───────────────────────────────────────── */
.newsletter-box {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-light));
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.newsletter-box h3 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

.newsletter-box p {
  opacity: .85;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}

.newsletter-form {
  display: flex;
  gap: .75rem;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input[type=email] {
  flex: 1;
  padding: .7rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: .95rem;
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.4rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-hover); color: #fff; }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-secondary { background: var(--foam); color: var(--ocean-deep); }
.btn-secondary:hover { background: #b8d8f0; }

/* ── Flash berichten ────────────────────────────────────────── */
.flash-list { list-style: none; margin-bottom: 1.5rem; }
.flash {
  padding: .85rem 1.2rem;
  border-radius: 8px;
  margin-bottom: .5rem;
  font-size: .95rem;
  border-left: 4px solid;
}
.flash.success { background: #fef3ec; border-color: var(--teal); color: #a04a10; }
.flash.error   { background: var(--danger-light); border-color: var(--danger); color: var(--danger); }
.flash.info    { background: var(--foam); border-color: var(--ocean-mid); color: var(--ocean-deep); }
.flash.warning { background: #fef9e7; border-color: var(--gold); color: #9a6800; }

/* ── Archief ────────────────────────────────────────────────── */
.archive-list { list-style: none; }
.archive-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .9rem 1.2rem;
  border-radius: 8px;
  transition: background .2s;
}
.archive-item:hover { background: var(--foam); }
.archive-date { font-size: .8rem; color: var(--text-light); min-width: 100px; }
.archive-title { font-size: 1rem; font-family: 'Playfair Display', serif; }

/* ── Abonneer pagina ────────────────────────────────────────── */
.subscribe-card {
  max-width: 500px;
  margin: 3rem auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  text-align: center;
}
.subscribe-card .fish-big { font-size: 4rem; margin-bottom: 1rem; }
.subscribe-card h1 { font-size: 1.8rem; color: var(--ocean-deep); margin-bottom: .75rem; }
.subscribe-card p  { color: var(--text-light); margin-bottom: 1.5rem; font-size: .95rem; }

.subscribe-form { display: flex; flex-direction: column; gap: .75rem; }
.subscribe-form input[type=email] {
  padding: .75rem 1rem;
  border: 2px solid var(--foam);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color .2s;
  outline: none;
}
.subscribe-form input[type=email]:focus { border-color: var(--teal); }

/* ── Modal pop-up ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,59,94,.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0,0,0,.25);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  text-align: center;
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-icon    { font-size: 3rem; margin-bottom: .75rem; }
.modal-title   { font-size: 1.5rem; color: var(--ocean-deep); margin-bottom: .75rem; }
.modal-message { color: var(--text); margin-bottom: .75rem; line-height: 1.6; }
.modal-hint    { font-size: .82rem; color: var(--text-light); margin-bottom: 1.25rem; }
.modal-close   { width: 100%; justify-content: center; }

.modal-box.modal-success { border-top: 4px solid var(--teal); }
.modal-box.modal-success .modal-title { color: #1a6b4a; }
.modal-box.modal-error   { border-top: 4px solid var(--danger); }
.modal-box.modal-error   .modal-title { color: var(--danger); }
.modal-box.modal-info    { border-top: 4px solid var(--ocean-mid); }
.modal-box.modal-info    .modal-title { color: var(--ocean-mid); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--ocean-deep);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 1.5rem;
  font-size: .85rem;
  margin-top: auto;
}
footer a { color: var(--teal); }

/* ── Admin ──────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 230px;
  background: var(--ocean-deep);
  color: #fff;
  padding: 1.5rem 1rem;
  flex-shrink: 0;
}
.admin-sidebar .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
  color: #fff;
}
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .75rem;
  border-radius: 6px;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  margin-bottom: .25rem;
  transition: background .2s, color .2s;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.admin-sidebar nav a.danger { color: #e74c3c; }
.admin-sidebar nav a.danger:hover { background: rgba(231,76,60,.2); color: #e74c3c; }

.admin-main { flex: 1; background: #f4f7fb; overflow: auto; }

.admin-topbar {
  background: #fff;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e0e9f4;
  font-size: .9rem;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-topbar h1 { font-size: 1.3rem; color: var(--ocean-deep); }

.admin-content { padding: 2rem; }

/* Admin tabel */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: .9rem;
}
.admin-table th {
  background: var(--ocean-deep);
  color: #fff;
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
}
.admin-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--foam);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fbff; }

/* Formulier */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem 1rem;
  border: 2px solid #dce8f4;
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { min-height: 260px; resize: vertical; }

.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 700px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}
.badge-green  { background: #d5f5e3; color: #1e8449; }
.badge-grey   { background: #eaecee; color: #7f8c8d; }
.badge-red    { background: #fdecea; color: var(--danger); }

/* Statistieken kaartjes */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  text-align: center;
}
.stat-card .stat-num { font-size: 2rem; font-weight: 700; color: var(--ocean-deep); }
.stat-card .stat-label { font-size: .8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .05em; }

/* Toggle schakelaar */
.toggle-container { display: flex; align-items: center; gap: .75rem; }
input[type=checkbox].toggle { appearance: none; width: 42px; height: 22px; background: #dce8f4; border-radius: 11px; position: relative; cursor: pointer; transition: background .2s; }
input[type=checkbox].toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
input[type=checkbox].toggle:checked { background: var(--teal); }
input[type=checkbox].toggle:checked::after { left: 23px; }

/* Login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-mid));
}
.login-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.login-card .fish { font-size: 3.5rem; margin-bottom: .75rem; }
.login-card h1 { font-size: 1.5rem; color: var(--ocean-deep); margin-bottom: .25rem; }
.login-card .hint { font-size: .85rem; color: var(--text-light); margin-bottom: 1.5rem; }

/* Responsive */
@media (max-width: 640px) {
  .site-nav .nav-label { display: none; }
  .newsletter-form { flex-direction: column; }
  .admin-sidebar { display: none; }
  .post-body { padding: 1.5rem; }
}
