/* Foto-opdracht — stijl afgeleid van het Classical-ontwerpsysteem uit het
   prototype. Alles hangt onder .fw-app zodat het WordPress-thema niet wordt
   aangetast. Kleuren aanpassen? Wijzig de variabelen hieronder. */

.fw-app {
	--fw-bg: #f3f2f2;
	--fw-surface: #eae9e9;
	--fw-text: #201f1d;
	--fw-accent: #b68235;
	--fw-accent-100: #fff3e4;
	--fw-accent-400: #e1ad66;
	--fw-accent-700: #7d5411;
	--fw-accent-800: #5a3b0a;
	--fw-neutral-100: #f8f4f4;
	--fw-neutral-300: #d7d3d3;
	--fw-neutral-600: #7d7979;
	--fw-neutral-700: #605d5d;
	--fw-neutral-800: #444141;
	--fw-divider: color-mix(in srgb, #201f1d 16%, transparent);
	--fw-heading: "Cormorant Garamond", Georgia, serif;
	--fw-body: "Lora", Georgia, serif;
	--fw-grid-min: 320px;

	background: var(--fw-bg);
	color: var(--fw-text);
	font-family: var(--fw-body);
	font-size: 15px;
	line-height: 1.55;
	padding: 40px clamp(16px, 3vw, 28px) 64px;
	max-width: 1180px;
	margin: 0 auto;
	box-sizing: border-box;
}
.fw-app.fw-layout-compact { --fw-grid-min: 250px; }
.fw-app *, .fw-app *::before, .fw-app *::after { box-sizing: border-box; }
.fw-app h1, .fw-app h2, .fw-app h3, .fw-app h6 {
	font-family: var(--fw-heading); font-weight: 600; line-height: 1.12;
	letter-spacing: -0.015em; margin: 0 0 9px; color: var(--fw-text);
}
.fw-app h3 { font-size: 25px; }
.fw-app p { margin: 0 0 14px; }
.fw-app a { color: var(--fw-accent-700); text-underline-offset: 3px; }
.fw-app img { display: block; max-width: 100%; height: auto; }
.fw-app figure { margin: 0; }
.fw-app :focus-visible { outline: 2px solid var(--fw-accent); outline-offset: 2px; }

.fw-kicker { font-size: 13px !important; letter-spacing: .08em !important; text-transform: uppercase; color: var(--fw-accent-700) !important; margin-bottom: 12px !important; }
.fw-display { font-size: clamp(38px, 6vw, 58px) !important; font-weight: 400 !important; }
.fw-muted { color: var(--fw-neutral-700); max-width: 620px; }
.fw-small { font-size: 12.5px; color: var(--fw-neutral-700); }
.fw-accent-text { color: var(--fw-accent-700); }
.fw-num { font-variant-numeric: tabular-nums; }
.fw-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fw-hr { height: 1px; background: var(--fw-divider); }
.fw-hr-big { margin: 32px 0; }
.fw-intro { max-width: 640px; margin-bottom: 36px; }

/* Knoppen en labels */
.fw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	font: inherit; font-size: 14px; line-height: 1.2; padding: 9px 16px;
	border: 1px solid transparent; border-radius: 4px; background: transparent;
	color: var(--fw-text); cursor: pointer; text-decoration: none !important;
	transition: background .15s;
}
.fw-btn-primary { color: var(--fw-accent-700); border-color: var(--fw-accent); }
.fw-btn-primary:hover { background: color-mix(in srgb, var(--fw-accent) 12%, transparent); }
.fw-btn-ghost { color: var(--fw-accent-700); padding-inline: 6px; }
.fw-btn-ghost:hover { background: color-mix(in srgb, var(--fw-accent) 10%, transparent); }
.fw-btn-sm { font-size: 12px; padding: 3px 6px; }
.fw-back { margin-bottom: 20px; }
.fw-tag { display: inline-block; font-size: 11px; letter-spacing: .04em; padding: 3px 9px; border-radius: 2px; line-height: 1.4; }
.fw-tag-accent { background: var(--fw-accent-100); color: var(--fw-accent-800); }
.fw-tag-neutral { background: var(--fw-neutral-100); color: var(--fw-neutral-800); }
.fw-tag-outline { border: 1px solid var(--fw-accent); color: var(--fw-accent-700); background: var(--fw-bg); }

/* Ingelogd als */
.fw-userbar { display: flex; justify-content: flex-end; gap: 6px; margin: -16px 0 24px; padding-bottom: 10px; border-bottom: 1px solid var(--fw-divider); }
.fw-userbar strong { color: var(--fw-text); font-weight: 600; }
.fw-saved { color: var(--fw-accent-700); margin-left: 6px; }

/* Meldingen */
.fw-notice { border: 1px solid var(--fw-accent); color: var(--fw-accent-800); padding: 10px 14px; border-radius: 4px; font-size: 14px; margin-bottom: 24px; }
.fw-notice-error, .fw-client-error { border: 1px solid var(--fw-accent-700); color: var(--fw-accent-800); padding: 10px 14px; border-radius: 4px; font-size: 13px; margin-bottom: 14px; }

/* Overzicht */
.fw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.fw-card {
	display: flex; flex-direction: column; gap: 12px; padding: 24px;
	border: 1px solid var(--fw-divider); border-radius: 4px; color: inherit !important;
	text-decoration: none !important; transition: border-color .15s;
}
.fw-card:hover { border-color: var(--fw-accent); }
.fw-card-title { font-size: 34px !important; font-weight: 400 !important; margin: 4px 0 0 !important; }
.fw-card-body { font-size: 13px; opacity: .8; flex: 1; margin: 0 !important; }
.fw-card .fw-btn { align-self: flex-start; margin-top: 4px; }

/* Voorbeeldfoto */
.fw-example { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.fw-example img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.fw-app .fw-example-page { margin: 4px 0 18px; }
.fw-example-page img { aspect-ratio: auto; max-height: 420px; object-fit: contain; background: var(--fw-surface); }
.fw-example-page a { cursor: zoom-in; }

/* Opdrachtpagina */
.fw-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: end; }
.fw-comp-title { margin: 14px 0 10px !important; }
.fw-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fw-step { border-top: 1px solid var(--fw-divider); padding-top: 10px; }
.fw-step.is-done { border-top-color: var(--fw-accent-400); }
.fw-step.is-current { border-top: 2px solid var(--fw-accent); }
.fw-step-label { font-family: var(--fw-heading); font-weight: 600; font-size: 17px; color: var(--fw-neutral-600); }
.fw-step.is-done .fw-step-label { color: var(--fw-text); }
.fw-step.is-current .fw-step-label { color: var(--fw-accent-700); }
.fw-admin-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 24px; padding: 12px 16px; border: 1px dashed var(--fw-divider); border-radius: 4px; }
.fw-admin-bar form { margin: 0; }
.fw-admin-bar .fw-small { flex: 1 1 260px; }

/* Insturen */
.fw-upload { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px; margin-bottom: 40px; }
.fw-upload-form { display: flex; flex-direction: column; gap: 14px; }
.fw-dropzone {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 8px; min-height: 200px; border: 1px dashed var(--fw-accent); border-radius: 4px;
	cursor: pointer; text-align: center; padding: 24px; color: var(--fw-accent);
}
.fw-dropzone:hover { background: color-mix(in srgb, var(--fw-accent) 7%, transparent); }
.fw-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fw-dropzone-title { font-family: var(--fw-heading); font-weight: 600; font-size: 18px; color: var(--fw-accent-700); }
.fw-preview img { width: 100%; max-height: 340px; object-fit: contain; background: var(--fw-surface); margin-bottom: 6px; }
.fw-field { display: flex; flex-direction: column; gap: 6px; }
.fw-field label { font-size: 12px; letter-spacing: .04em; color: var(--fw-neutral-700); }
.fw-input { font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--fw-divider); border-radius: 4px; background: transparent; color: var(--fw-text); width: 100%; }
.fw-input:focus-visible { border-color: var(--fw-accent); outline-offset: 0; }
.fw-upload-form button[type=submit] { align-self: flex-start; }
.fw-mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 14px; }
.fw-mine figure { display: flex; flex-direction: column; gap: 6px; }
.fw-mine img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.fw-mine form { margin: 0; }

/* Plaatjes als ingeplakte prenten */
.fw-plate { filter: sepia(.22) saturate(.82) contrast(1.05); border: 6px solid var(--fw-surface); outline: 1px solid var(--fw-divider); }

/* Stemmen */
.fw-votebar { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.fw-votebar > div:first-child { max-width: 560px; }
.fw-votebar p { margin: 0; }
.fw-progress-wrap { min-width: 260px; flex: 0 1 340px; }
.fw-progress { height: 3px; background: var(--fw-divider); border-radius: 2px; margin-top: 8px; }
.fw-progress div { height: 3px; background: var(--fw-accent); border-radius: 2px; }

/* Uitslag */
.fw-results { margin-bottom: 40px; }
.fw-podium-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--fw-divider); }
.fw-rank { font-family: var(--fw-heading); font-size: 30px; color: var(--fw-accent); }

/* Fotoraster */
.fw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--fw-grid-min)), 1fr)); gap: 28px; }
.fw-photo { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--fw-divider); border-radius: 4px; scroll-margin-top: 80px; }
.fw-photo.is-voted { border-color: var(--fw-accent-400); }
.fw-photo.is-own { border-style: dashed; }
.fw-photo-img { position: relative; display: block; cursor: zoom-in; }
.fw-photo-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.fw-photo.is-own .fw-photo-img img { opacity: .75; }
.fw-photo-img .fw-tag { position: absolute; top: 14px; left: 14px; }
.fw-photo-img .fw-tag-neutral { background: var(--fw-neutral-100); }
.fw-photo-title { font-family: var(--fw-heading); font-weight: 600; font-size: 18px; }
.fw-status { min-height: 24px; }
.fw-status form, .fw-admin-del { margin: 0; }
.fw-stars { display: flex; margin: 0; }
.fw-star { background: none !important; border: 0 !important; padding: 1px !important; margin: 0; cursor: pointer; font-size: 21px; line-height: 1; color: var(--fw-neutral-300); box-shadow: none !important; }
.fw-star.is-on { color: var(--fw-accent); }
.fw-stars:hover .fw-star { color: var(--fw-accent); }
.fw-stars .fw-star:hover ~ .fw-star { color: var(--fw-neutral-300); }

/* Vergroting */
.fw-lightbox { position: fixed; inset: 0; z-index: 99999; background: color-mix(in srgb, #1b1a19 88%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: zoom-out; padding: 16px; }
.fw-lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border: 6px solid #2d2b2b; }
.fw-lightbox figcaption { color: #f8f4f4; font-family: var(--fw-heading); font-size: 16px; text-align: center; }
