@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:ital,wght@1,400;1,500&family=Outfit:wght@700;800;900&display=swap');

:root {
  --bg: #f6f2ea;
  --shell: #fbfaf7;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #52606d;
  --accent: #14532d;
  --accent-soft: #dcefe3;
  --border: #d9e2ec;
  --danger: #8f1d1d;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(20, 83, 45, 0.08), transparent 32%),
    linear-gradient(180deg, #f8f4ec 0%, #f1f5f9 100%);
  color: var(--text);
}

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

.page-shell {
  width: min(100%, 30rem);
  margin: 0 auto;
  padding: 1rem 0.9rem 2.5rem;
}

.card {
  background: var(--card);
  border: 1px solid rgba(217, 226, 236, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-header {
  padding: 1.2rem 1rem;
  margin-bottom: 1rem;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 3rem);
  line-height: 1;
}

.tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}

.top-nav a,
.ghost-button {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
}

.inline-form {
  display: inline;
}

.flash {
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.96rem;
}

.flash-success {
  border-color: #b7e4c7;
  background: #edfdf2;
}

.flash-error {
  border-color: #fecaca;
  background: #fff1f2;
}

.feed-stack {
  display: grid;
  gap: 1rem;
}

.form-card,
.post-card,
.empty-state {
  padding: 1rem;
}

.form-card h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.helper-text,
.post-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.stack-form {
  display: grid;
  gap: 1rem;
}

.stack-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

.stack-form span {
  font-size: 0.98rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
  background: #fcfdfd;
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 10rem;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(20, 83, 45, 0.18);
  border-color: rgba(20, 83, 45, 0.4);
}

button {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.03);
}

.danger-button {
  background: var(--danger);
}

.inline-error {
  margin-bottom: 0.95rem;
  padding: 0.95rem 1rem 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 247, 247, 0.96), rgba(255, 243, 243, 0.92));
  border: 1px solid rgba(248, 180, 180, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #8f2323;
}

.inline-error-title,
.inline-error-copy {
  margin: 0;
}

.inline-error-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #7f1d1d;
}

.inline-error-copy {
  margin-top: 0.3rem;
  font-size: 1rem;
  line-height: 1.45;
}

.post-body {
  white-space: pre-wrap;
  line-height: 1.65;
  margin-top: 0;
  margin-bottom: 1rem;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-image {
  border-radius: 18px;
  object-fit: cover;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .page-shell {
    padding-top: 1.6rem;
  }
}


/* Serrayai font refresh */
:root {
  --font-title: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-subtitle: "Lora", Georgia, "Times New Roman", serif;
}

html,
body,
button,
input,
textarea,
select {
  font-family: var(--font-body);
}

body {
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-title,
.brand-title,
.logo-title,
.app-title,
.header-title,
.page-title,
header h1 {
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.86;
  font-size: clamp(3.8rem, 14vw, 6.4rem);
  margin: 0;
  color: #202834;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.site-subtitle,
.brand-subtitle,
.logo-subtitle,
.app-subtitle,
.header-subtitle,
.tagline,
.subtitle,
header p em,
header em {
  font-family: var(--font-subtitle);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-size: clamp(1.25rem, 5vw, 1.8rem);
  line-height: 1.1;
  color: #4f5d6b;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

header,
.site-header,
.brand,
.logo,
.hero {
  border-color: transparent;
}

nav,
nav a {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card,
.post,
.post-card,
form,
label,
textarea,
input,
.post-body,
.post-date {
  font-family: var(--font-body);
}

textarea,
input {
  font-size: 1rem;
  line-height: 1.5;
}

button,
.button,
.btn {
  font-family: var(--font-body);
  font-weight: 700;
}

/* Behoud duidelijke focus op interactieve elementen */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 3px;
}
/* End Serrayai font refresh */

/* Serrayai visual polish */
:root {
  --bg: #f3efe6;
  --card: rgba(255, 255, 255, 0.96);
  --text: #1f2937;
  --muted: #5b6776;
  --accent: #185c37;
  --accent-soft: #eef7f0;
  --border: rgba(203, 213, 225, 0.78);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.06);
  --radius: 28px;
}

body {
  background:
    radial-gradient(circle at top, rgba(24, 92, 55, 0.08), transparent 34%),
    linear-gradient(180deg, #f6f1e7 0%, #eef3f8 100%);
  color: var(--text);
}

.page-shell {
  width: min(100%, 32rem);
  padding: 1.1rem 1rem 3rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.site-header {
  padding: 1.35rem 1.15rem 1.2rem;
  margin-bottom: 1.2rem;
}

.brand-link,
.brand-link:focus,
.brand-link:hover,
.brand-link * {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
}

.site-header h1 {
  font-size: clamp(3.7rem, 14vw, 6rem);
  line-height: 0.84;
}

.tagline {
  margin-top: 0.45rem;
  font-size: clamp(1.2rem, 5vw, 1.7rem);
}

.top-nav {
  gap: 1.05rem;
  margin-top: 1.25rem;
}

.top-nav a,
.ghost-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 700;
}

.flash {
  padding: 1rem 1.1rem;
  margin-bottom: 1.15rem;
  border-radius: 22px;
}

.feed-stack {
  gap: 1.15rem;
}

.form-card,
.post-card,
.empty-state {
  padding: 1.25rem;
}

.form-card h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(2.1rem, 8vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.helper-text,
.post-meta {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.stack-form {
  gap: 1.15rem;
}

.stack-form label {
  gap: 0.55rem;
}

.stack-form span {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  border-radius: 20px;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(252, 253, 253, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

textarea {
  min-height: 12rem;
}

button {
  min-height: 3.35rem;
  padding: 0.95rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.post-card {
  overflow: hidden;
}

.post-body {
  font-size: 1rem;
  line-height: 1.72;
}

.post-image,
.video-frame {
  border-radius: 22px;
}

.post-footer {
  margin-top: 1.05rem;
}

.empty-state p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.cta-card,
.filter-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
  margin-bottom: 1rem;
}

.cta-card h2,
.filter-card h3 {
  margin: 0 0 0.45rem;
}

.primary-link-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.primary-link-button {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.secondary-button {
  background: rgba(24, 92, 55, 0.1);
  color: var(--accent);
}

.inline-flash {
  margin-bottom: 1rem;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.word-counter {
  margin: -0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.counter-over-limit {
  color: #b42318;
}

.stacky-footer {
  align-items: flex-start;
  flex-direction: column;
}

.post-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.filter-row,
.filter-links,
.cleanup-form {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-row {
  justify-content: space-between;
}

.filter-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.filter-links .active-filter {
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.post-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
  margin: 1rem 0 0;
}

.post-details dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.post-details dd {
  margin: 0.15rem 0 0;
  font-size: 0.96rem;
}

@media (min-width: 720px) {
  .page-shell {
    padding-top: 1.7rem;
    padding-bottom: 3.4rem;
  }

  .site-header {
    padding-inline: 1.35rem;
  }

  .form-card,
  .post-card,
  .empty-state {
    padding: 1.5rem;
  }
}
/* End Serrayai visual polish */
