/*
Theme Name: F&F Event Portal
Theme URI: https://ff.jfdesigns.nl
Author: JF Designs / ChatGPT
Description: Festivalwaardige WordPress portal-theme voor Friends & Festivals aanmeldingen. v0.4.0 met login-gating, brede content en verbeterde plugin-layout.
Version: 0.4.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ff-event-portal
*/

:root {
  --ffep-bg: #070b09;
  --ffep-bg-2: #10130f;
  --ffep-ink: #191714;
  --ffep-muted: #615a4d;
  --ffep-cream: #fffaf0;
  --ffep-cream-2: #f7efdf;
  --ffep-orange: #f26522;
  --ffep-orange-2: #ff7d32;
  --ffep-gold: #f6be4a;
  --ffep-line: rgba(255, 250, 240, 0.16);
  --ffep-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --ffep-radius: 28px;
  --ffep-max: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 10%, rgba(242, 101, 34, 0.23), transparent 30rem),
    radial-gradient(circle at 83% 22%, rgba(246, 190, 74, 0.16), transparent 24rem),
    linear-gradient(135deg, #050806 0%, #0d120e 42%, #17130a 100%);
  color: var(--ffep-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(242, 101, 34, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(246, 190, 74, 0.045) 0 1px, transparent 1px 100%);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 65%);
}

a { color: var(--ffep-gold); }
a:hover { color: var(--ffep-orange-2); }

img { max-width: 100%; height: auto; }

.ffep-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ffep-header-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 250, 240, 0.13);
  background: rgba(7, 11, 9, 0.86);
  backdrop-filter: blur(18px);
}

.admin-bar .ffep-header-wrap { top: 32px; }

.ffep-header {
  width: min(var(--ffep-max), calc(100% - 36px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.ffep-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ffep-cream);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.ffep-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 28%, var(--ffep-gold), var(--ffep-orange) 56%, #111 58%);
  color: var(--ffep-cream);
  border: 2px solid rgba(255, 250, 240, 0.85);
  box-shadow: 0 0 0 5px rgba(242, 101, 34, 0.16), 0 0 36px rgba(242, 101, 34, 0.35);
  font-size: 0.9rem;
  line-height: 1;
}

.ffep-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.ffep-brand-title { font-size: 1.05rem; }
.ffep-brand-sub { color: var(--ffep-gold); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }

.ffep-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.ffep-nav a {
  color: rgba(255, 250, 240, 0.92);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.ffep-nav a:hover,
.ffep-nav a.is-active {
  color: var(--ffep-ink);
  background: var(--ffep-gold);
  border-color: rgba(255, 250, 240, 0.25);
}

.ffep-nav a.ffep-nav-cta {
  color: var(--ffep-cream);
  background: linear-gradient(135deg, var(--ffep-orange), #d94c11);
  box-shadow: 0 12px 30px rgba(242, 101, 34, 0.25);
}

.ffep-nav a.ffep-nav-cta:hover { color: var(--ffep-cream); transform: translateY(-1px); }

.ffep-main {
  flex: 1;
  width: min(var(--ffep-max), calc(100% - 36px));
  margin: 0 auto;
  padding: 58px 0 72px;
}

.ffep-page-shell {
  width: 100%;
  max-width: var(--ffep-max);
  margin: 0 auto;
}

.ffep-page-header {
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 250, 240, 0.18);
}

.ffep-kicker,
.wp-block-heading.ffep-kicker {
  color: var(--ffep-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0 0 12px;
}

.ffep-page-title,
.ffep-content h1 {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  margin: 0 0 18px;
  color: var(--ffep-cream);
  text-wrap: balance;
}

.ffep-page-intro,
.ffep-content > p:first-child {
  color: rgba(255, 250, 240, 0.88);
  max-width: 760px;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.ffep-content h2 {
  font-size: clamp(1.75rem, 3vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
  color: var(--ffep-cream);
}

.ffep-content h3 {
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--ffep-cream);
}

.ffep-content p { margin-top: 0; }

.ffep-content .wp-block-group,
.ffep-content .wp-block-columns,
.ffep-content .wp-block-query {
  margin-top: 28px;
  margin-bottom: 28px;
}

.ffep-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 38px;
  padding: clamp(34px, 5vw, 70px);
  border-radius: 38px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  background:
    radial-gradient(circle at 78% 18%, rgba(246, 190, 74, 0.28), transparent 23rem),
    radial-gradient(circle at 15% 80%, rgba(242, 101, 34, 0.24), transparent 22rem),
    linear-gradient(135deg, rgba(20, 20, 14, 0.98), rgba(6, 10, 8, 0.98));
  box-shadow: var(--ffep-shadow);
}

.ffep-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -210px;
  width: 560px;
  height: 560px;
  border: 64px solid rgba(242, 101, 34, 0.88);
  border-radius: 50%;
  opacity: 0.9;
}

.ffep-hero::before {
  content: "✦";
  position: absolute;
  right: 135px;
  top: 82px;
  color: var(--ffep-gold);
  font-size: 76px;
  text-shadow: 0 0 34px rgba(246, 190, 74, 0.45);
  transform: rotate(-10deg);
}

.ffep-hero > * { position: relative; z-index: 2; }

.ffep-hero-title,
.ffep-hero h1 {
  font-size: clamp(3.6rem, 9vw, 8.2rem);
  line-height: 0.86;
  letter-spacing: -0.085em;
  margin: 0 0 24px;
  color: var(--ffep-cream);
}

.ffep-hero-lead,
.ffep-hero p {
  max-width: 650px;
  color: rgba(255, 250, 240, 0.9);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.ffep-hero-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.09);
  border: 1px solid rgba(255, 250, 240, 0.16);
}

.ffep-mini-stat {
  padding: 18px;
  border-radius: 22px;
  background: rgba(7, 11, 9, 0.55);
  border: 1px solid rgba(255, 250, 240, 0.13);
}

.ffep-mini-stat strong { color: var(--ffep-gold); display: block; font-size: 1.1rem; }
.ffep-mini-stat span { color: rgba(255, 250, 240, 0.76); font-size: 0.95rem; }

.ffep-button-row,
.wp-block-buttons.ffep-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ffep-btn,
.wp-block-button__link,
.ffep-content .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--ffep-orange), #cf4c12);
  color: var(--ffep-cream) !important;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 15px 34px rgba(242, 101, 34, 0.26);
}

.ffep-btn:hover,
.wp-block-button__link:hover { transform: translateY(-1px); }

.ffep-btn.secondary,
.is-style-outline .wp-block-button__link {
  color: var(--ffep-cream) !important;
  background: rgba(255, 250, 240, 0.08) !important;
  border: 1px solid rgba(255, 250, 240, 0.22) !important;
  box-shadow: none;
}

.ffep-grid,
.ffep-content .wp-block-columns.ffep-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ffep-card,
.ffep-content .ffep-card {
  position: relative;
  overflow: hidden;
  padding: 25px;
  border-radius: var(--ffep-radius);
  background: var(--ffep-cream);
  color: var(--ffep-ink);
  box-shadow: var(--ffep-shadow);
  border: 1px solid rgba(255, 250, 240, 0.22);
}

.ffep-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(to bottom, var(--ffep-orange), var(--ffep-gold));
}

.ffep-card * { color: inherit; }
.ffep-card h2,
.ffep-card h3 { color: var(--ffep-ink); margin-top: 0; }
.ffep-card p { color: #514a3f; }
.ffep-card a { color: #b84209; font-weight: 900; }

.ffep-card.dark {
  background:
    radial-gradient(circle at 82% 18%, rgba(242, 101, 34, 0.18), transparent 14rem),
    linear-gradient(135deg, #11150f, #090c08);
  color: var(--ffep-cream);
  border-color: rgba(255, 250, 240, 0.15);
}
.ffep-card.dark h2,
.ffep-card.dark h3,
.ffep-card.dark p { color: var(--ffep-cream); }
.ffep-card.dark p { opacity: 0.84; }
.ffep-card.dark a { color: var(--ffep-gold); }

.ffep-section {
  margin: 42px 0;
}

.ffep-section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.ffep-section-title-row h2 { margin: 0; }
.ffep-section-title-row p { max-width: 520px; color: rgba(255, 250, 240, 0.78); margin: 0; }

.ffep-plugin-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: clamp(22px, 3vw, 38px);
  border-radius: var(--ffep-radius);
  background: var(--ffep-cream);
  color: var(--ffep-ink);
  box-shadow: var(--ffep-shadow);
  border: 1px solid rgba(255, 250, 240, 0.16);
}

.ffep-plugin-shell *:not(a):not(button):not(.button):not(input):not(select):not(textarea):not(option):not(svg):not(path) {
  color: var(--ffep-ink) !important;
}

.ffep-plugin-shell a { color: #b84209 !important; font-weight: 800; }
.ffep-plugin-shell button,
.ffep-plugin-shell .button,
.ffep-plugin-shell input[type="submit"] {
  background: #0d120e !important;
  color: var(--ffep-cream) !important;
  border-radius: 999px !important;
  border: 0 !important;
  padding: 12px 18px !important;
  font-weight: 900 !important;
}

.ffep-plugin-shell input,
.ffep-plugin-shell select,
.ffep-plugin-shell textarea {
  width: 100%;
  max-width: 100%;
  color: var(--ffep-ink) !important;
  background: #fff !important;
  border: 1px solid #ded3bd !important;
  border-radius: 14px !important;
  padding: 11px 13px !important;
}

.ffep-plugin-shell table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: var(--ffep-ink);
  overflow: hidden;
  border-radius: 18px;
}
.ffep-plugin-shell th,
.ffep-plugin-shell td {
  border-bottom: 1px solid #eadfca;
  padding: 12px;
  text-align: left;
}
.ffep-plugin-shell th { background: #f1e4cd; }

.ffep-updates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.ffep-update-card {
  min-height: 190px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 250, 240, 0.09);
  border: 1px solid rgba(255, 250, 240, 0.15);
  color: var(--ffep-cream);
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.ffep-update-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 250, 240, 0.13);
}

.ffep-update-card time {
  color: var(--ffep-gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ffep-update-card h3 {
  margin: 12px 0 9px;
  color: var(--ffep-cream);
}
.ffep-update-card p { color: rgba(255, 250, 240, 0.72); font-size: 0.96rem; }

.ffep-footer {
  border-top: 1px solid rgba(255, 250, 240, 0.13);
  background: rgba(4, 7, 5, 0.68);
}

.ffep-footer-inner {
  width: min(var(--ffep-max), calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.95rem;
}

.ffep-footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ffep-footer a { color: var(--ffep-gold); font-weight: 800; text-decoration: none; }

.ffep-notice {
  border-left: 7px solid var(--ffep-orange);
  padding: 18px 20px;
  background: rgba(246, 190, 74, 0.12);
  border-radius: 18px;
}

.ffep-content ul,
.ffep-content ol { padding-left: 1.25em; }
.ffep-content li { margin: 0.35rem 0; }

.wp-block-separator {
  border: 0;
  border-top: 1px solid rgba(255, 250, 240, 0.18);
  margin: 32px 0;
}



/* v0.4.0 - Plugin layout stabilisatie */
.ffep-plugin-shell,
.ffep-plugin-shell * {
  box-sizing: border-box;
}

.ffep-plugin-shell > * {
  max-width: 100%;
}

.ffep-plugin-shell form,
.ffep-plugin-shell fieldset,
.ffep-plugin-shell .ff-card,
.ffep-plugin-shell .ff-panel,
.ffep-plugin-shell .ff-section,
.ffep-plugin-shell [class*="card"],
.ffep-plugin-shell [class*="panel"],
.ffep-plugin-shell [class*="section"] {
  min-width: 0;
  max-width: 100%;
}

.ffep-plugin-shell [class*="grid"],
.ffep-plugin-shell [class*="row"],
.ffep-plugin-shell [class*="columns"],
.ffep-plugin-shell [class*="cols"] {
  min-width: 0;
}

.ffep-plugin-shell form [class*="grid"],
.ffep-plugin-shell form [class*="row"],
.ffep-plugin-shell form [class*="columns"],
.ffep-plugin-shell form [class*="cols"] {
  gap: 22px !important;
}

.ffep-plugin-shell label,
.ffep-plugin-shell input,
.ffep-plugin-shell select,
.ffep-plugin-shell textarea {
  min-width: 0;
}

.ffep-plugin-shell input + button,
.ffep-plugin-shell input + .button,
.ffep-plugin-shell input + input[type="submit"],
.ffep-plugin-shell textarea + button,
.ffep-plugin-shell textarea + .button,
.ffep-plugin-shell textarea + input[type="submit"] {
  margin-top: 16px !important;
}

.ffep-plugin-shell .delete,
.ffep-plugin-shell .danger,
.ffep-plugin-shell [class*="delete"],
.ffep-plugin-shell [class*="danger"] {
  margin-top: 18px;
}

.ffep-plugin-shell table {
  table-layout: auto;
}

.ffep-plugin-shell th,
.ffep-plugin-shell td {
  vertical-align: top;
}

.ffep-page-mijn-ff .ffep-plugin-shell table th:nth-child(4),
.ffep-page-mijn-ff .ffep-plugin-shell table td:nth-child(4),
.ffep-page-mijn-ff .ffep-plugin-shell table th:nth-child(5),
.ffep-page-mijn-ff .ffep-plugin-shell table td:nth-child(5),
.ffep-page-mijn-ff .ffep-plugin-shell table th:nth-child(6),
.ffep-page-mijn-ff .ffep-plugin-shell table td:nth-child(6) {
  display: none !important;
}

.ffep-locked-card {
  margin-top: 42px;
  padding: clamp(26px, 4vw, 46px);
  border-radius: var(--ffep-radius);
  color: var(--ffep-ink);
  background: linear-gradient(135deg, var(--ffep-cream), #fff3dc);
  border: 1px solid rgba(255, 250, 240, 0.24);
  box-shadow: var(--ffep-shadow);
}

.ffep-locked-card h2 {
  margin-top: 0;
  color: var(--ffep-ink);
}

.ffep-locked-card p {
  color: #514a3f;
  max-width: 760px;
}

@media (max-width: 860px) {
  .ffep-plugin-shell form [class*="grid"],
  .ffep-plugin-shell form [class*="columns"],
  .ffep-plugin-shell form [class*="cols"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 980px) {
  .ffep-header { align-items: flex-start; flex-direction: column; padding: 15px 0; }
  .ffep-nav { justify-content: flex-start; }
  .ffep-hero { grid-template-columns: 1fr; min-height: auto; }
  .ffep-grid,
  .ffep-content .wp-block-columns.ffep-grid,
  .ffep-updates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .admin-bar .ffep-header-wrap { top: 0; }
  .ffep-header,
  .ffep-main,
  .ffep-footer-inner { width: min(100% - 24px, var(--ffep-max)); }
  .ffep-main { padding-top: 32px; }
  .ffep-brand-title { font-size: 0.95rem; }
  .ffep-brand-sub { font-size: 0.65rem; }
  .ffep-nav { width: 100%; gap: 6px; }
  .ffep-nav a { font-size: 0.84rem; padding: 8px 10px; }
  .ffep-hero { padding: 28px; border-radius: 28px; }
  .ffep-hero::after { width: 320px; height: 320px; border-width: 38px; right: -130px; bottom: -120px; }
  .ffep-hero::before { right: 44px; top: 40px; font-size: 44px; }
  .ffep-grid,
  .ffep-content .wp-block-columns.ffep-grid,
  .ffep-updates { grid-template-columns: 1fr; }
  .ffep-footer-inner { flex-direction: column; align-items: flex-start; }
}

/* v0.4.0 - extra fallback wanneer shortcodes niet in ffep-plugin-shell staan */
.ffep-page-mijn-ff table th:nth-child(4),
.ffep-page-mijn-ff table td:nth-child(4),
.ffep-page-mijn-ff table th:nth-child(5),
.ffep-page-mijn-ff table td:nth-child(5),
.ffep-page-mijn-ff table th:nth-child(6),
.ffep-page-mijn-ff table td:nth-child(6) {
  display: none !important;
}

.ffep-page-mijn-ff input + button,
.ffep-page-mijn-ff input + .button,
.ffep-page-mijn-ff input + input[type="submit"],
.ffep-page-mijn-ff textarea + button,
.ffep-page-mijn-ff textarea + .button,
.ffep-page-mijn-ff textarea + input[type="submit"] {
  margin-top: 16px !important;
}

.ffep-page-mijn-ff input,
.ffep-page-mijn-ff select,
.ffep-page-mijn-ff textarea {
  max-width: 100%;
  box-sizing: border-box;
}
