/**
 * AI Frame thema — /probeer/ CSS v2.0
 *
 * 1:1 uit het aangeleverde standalone design (probeer-standalone v2),
 * gescoped onder #af-try (korte designclassnamen botsen anders met
 * plugin-/thema-CSS). Markup: inc/body-probeer.php · JS: assets/js/probeer.js.
 * Logica: plugin nopriv-AJAX imgx_try_* (imgx-ajax-try.php).
 */

#af-try, #af-try *, #af-try *::before, #af-try *::after { margin: 0; padding: 0; box-sizing: border-box; }
#af-try {
  font-family: 'Manrope', -apple-system, sans-serif;
  background: #FAFAF7; color: #14140F;
  -webkit-font-smoothing: antialiased;
  font-size: 14px; line-height: 1.6;
  min-height: 100vh;
}
#af-try a { color: #C8A24B; text-decoration: none; }
#af-try a:hover { text-decoration: underline; }
#af-try button { font-family: inherit; cursor: pointer; }

/* Page layout */
/* Gedeelde site-header (fixed, 64px) staat boven de funnel — alles zakt mee. */
#af-try { padding-top: 64px; }
#af-try .pg { display: flex; min-height: calc(100vh - 64px); }

/* Dark sidebar */
#af-try .sb { width: 220px; background: #1B1A16; display: flex; flex-direction: column; padding: 18px 14px; gap: 16px; flex-shrink: 0; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; }
#af-try .sb-logo { display: flex; align-items: center; gap: 4px; padding: 2px 4px 14px; border-bottom: 1px solid rgba(244,241,236,0.08); }
#af-try .sb-logo-ai { font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: 0.02em; color: #F4F1EC; }
#af-try .sb-logo-frame { position: relative; font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: 0.02em; padding: 3px 8px; color: #F4F1EC; }
#af-try .sb-logo-frame span { position: absolute; width: 8px; height: 8px; }
#af-try .sb-logo-frame .tl { top:0;left:0;border-top:2.5px solid #C8A24B;border-left:2.5px solid #C8A24B; }
#af-try .sb-logo-frame .tr { top:0;right:0;border-top:2.5px solid #C8A24B;border-right:2.5px solid #C8A24B; }
#af-try .sb-logo-frame .bl { bottom:0;left:0;border-bottom:2.5px solid #C8A24B;border-left:2.5px solid #C8A24B; }
#af-try .sb-logo-frame .br { bottom:0;right:0;border-bottom:2.5px solid #C8A24B;border-right:2.5px solid #C8A24B; }
#af-try .sb-label { font-family: 'Space Mono', monospace; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #C8A24B; padding: 0 6px; font-weight: 700; }
#af-try .sb-item { display: flex; align-items: center; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13px; color: rgba(244,241,236,0.5); border-left: 3px solid transparent; text-decoration: none; transition: all 0.15s; }
#af-try .sb-item:hover { background: rgba(244,241,236,0.04); color: rgba(244,241,236,0.7); text-decoration: none; }
#af-try .sb-item.on { font-weight: 600; color: #C8A24B; background: rgba(200,162,75,0.1); border-left-color: #C8A24B; }

/* Topbar */

/* Content */
#af-try .ct { flex: 1; display: flex; flex-direction: column; }
#af-try .bd { padding: 32px; max-width: 100%; }

/* Steps indicator */
#af-try .steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 32px; }
#af-try .dot { width: 40px; height: 4px; border-radius: 2px; background: #E6E4DD; transition: background 0.3s; }
#af-try .dot.on { background: #C8A24B; }
#af-try .dot.dn { background: #C8A24B; opacity: 0.35; }

/* Hero card */
#af-try .hero-card { background: #fff; border: 1px solid #E6E4DD; border-radius: 16px; padding: 36px; position: relative; overflow: hidden; margin-bottom: 28px; text-align: center; }
#af-try .hero-glow { position: absolute; right: -80px; bottom: -100px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(200,162,75,0.07), transparent 60%); }
#af-try .hero-inner { position: relative; z-index: 1; }
#af-try .kicker { display: inline-flex; align-items: center; gap: 8px; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #C8A24B; background: rgba(200,162,75,0.08); padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(200,162,75,0.15); margin-bottom: 18px; }
#af-try .kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: #C8A24B; }
#af-try .h1 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(32px, 5vw, 52px); line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 14px; }
#af-try .h1 em { font-style: italic; color: #7A5C1A; }
#af-try .lede { font-size: 15px; color: #5C5A52; max-width: 500px; margin: 0 auto; line-height: 1.6; }

/* Form card */
#af-try .form-card { background: #fff; border: 1px solid #E6E4DD; border-radius: 16px; padding: 28px; max-width: 480px; margin: 0 auto 32px; box-shadow: 0 4px 16px rgba(20,20,15,0.04); }
#af-try .field { margin-bottom: 16px; }
#af-try .lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
#af-try .inp { width: 100%; height: 46px; padding: 0 16px; background: #F5F4F0; border: 1px solid #E6E4DD; border-radius: 10px; font: inherit; font-size: 14px; color: #14140F; outline: none; transition: border-color 0.15s; }
#af-try .inp::placeholder { color: #8A887E; }
#af-try .inp:focus { background: #fff; border-color: #C8A24B; box-shadow: 0 0 0 3px rgba(200,162,75,0.12); }
#af-try .inp[readonly] { opacity: 0.6; }
#af-try .terms { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; }
#af-try .terms input { width: 18px; height: 18px; margin-top: 2px; accent-color: #C8A24B; cursor: pointer; flex-shrink: 0; }
#af-try .terms label { font-size: 13px; color: #5C5A52; line-height: 1.5; cursor: pointer; }
#af-try .btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; background: #14140F; color: #FAFAF7; transition: all 0.2s; }
#af-try .btn:hover { background: #2B2A24; }
#af-try .btn-gold { background: #C8A24B; color: #14140F; }
#af-try .btn-gold:hover { background: #d4af5a; }
#af-try .note { font-size: 11px; color: #8A887E; text-align: center; margin-top: 12px; }
#af-try .err { color: #dc2626; font-size: 13px; margin-top: 8px; }

/* Section */
#af-try .sec { background: #fff; border: 1px solid #E6E4DD; border-radius: 16px; overflow: hidden; margin-bottom: 24px; }
#af-try .sec-head { padding: 16px 22px; border-bottom: 1px solid #E6E4DD; display: flex; align-items: center; gap: 12px; }
#af-try .sec-title { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 18px; }
#af-try .sec-meta { font-size: 12px; color: #8A887E; }
#af-try .sec-body { padding: 22px; }

/* Step grid */
#af-try .sg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
#af-try .sc { background: #F5F4F0; border: 1px solid #E6E4DD; border-radius: 12px; padding: 22px 18px; transition: border-color 0.15s; }
#af-try .sc:hover { border-color: #C8A24B; }
#af-try .sc-num { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
#af-try .sc-num-gold { background: #C8A24B; color: #14140F; }
#af-try .sc-num-dark { background: #14140F; color: #FAFAF7; }
#af-try .sc h3 { font-family: 'Archivo', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
#af-try .sc p { font-size: 12px; color: #5C5A52; line-height: 1.6; }

/* Get grid */
#af-try .gg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
#af-try .gc { background: #F5F4F0; border: 1px solid #E6E4DD; border-radius: 12px; padding: 24px; text-align: center; }
#af-try .gc-num { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 36px; color: #C8A24B; line-height: 1; }
#af-try .gc-title { font-size: 13px; font-weight: 600; margin-top: 8px; }
#af-try .gc-sub { font-size: 11px; color: #8A887E; margin-top: 2px; }

/* Stats strip */
#af-try .ss { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
#af-try .sk { background: #fff; border: 1px solid #E6E4DD; border-radius: 12px; padding: 18px; text-align: center; }
#af-try .sk-num { font-family: 'Space Mono', monospace; font-size: 22px; font-weight: 700; color: #C8A24B; }
#af-try .sk-lbl { font-size: 11px; color: #8A887E; margin-top: 4px; }

/* Uploads */
#af-try .ups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
#af-try .drop { position: relative; border: 2px dashed #D9D6CC; border-radius: 14px; background: #F5F4F0; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: all 0.2s; overflow: hidden; padding: 20px; text-align: center; }
#af-try .drop:hover { border-color: #C8A24B; background: rgba(200,162,75,0.03); }
#af-try .drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#af-try .drop-badge { position: absolute; top: 10px; left: 10px; background: rgba(20,20,15,0.75); color: #fff; font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; padding: 4px 10px; border-radius: 6px; letter-spacing: 0.06em; text-transform: uppercase; }
#af-try .drop-title { font-size: 14px; font-weight: 600; }
#af-try .drop-sub { font-size: 11px; color: #8A887E; }

/* Magic */
#af-try .magic { text-align: center; padding: 20px 0; }
#af-try .orb-wrap { width: 90px; height: 90px; margin: 0 auto 24px; position: relative; }
#af-try .orb { width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(from 0deg, #C8A24B, #E6E4DD, #C8A24B); animation: spin 2s linear infinite; }
#af-try .orb::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
#af-try .orb-ring { position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(200,162,75,0.2); animation: spin 4s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
#af-try .magic h2 { font-family: 'Archivo', sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
#af-try .magic .sub { font-size: 13px; color: #5C5A52; margin-bottom: 20px; }
#af-try .prog { height: 4px; background: #E6E4DD; border-radius: 3px; overflow: hidden; max-width: 360px; margin: 0 auto 24px; }
#af-try .prog-bar { height: 100%; width: 65%; background: linear-gradient(90deg, #C8A24B, #d4af5a); border-radius: 3px; transition: width 0.6s; }
#af-try .stream { max-width: 380px; margin: 0 auto; text-align: left; font-family: 'Space Mono', monospace; font-size: 11.5px; display: flex; flex-direction: column; gap: 6px; }
#af-try .sl { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: #5C5A52; }
#af-try .sl .ch { flex-shrink: 0; }
#af-try .sl .done { color: #3A7D44; }
#af-try .sl .pend { color: #C8A24B; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* Result */
#af-try .cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
#af-try .cmp figure { margin: 0; }
#af-try .cmp img { width: 100%; border-radius: 12px; aspect-ratio: 1; object-fit: cover; background: #F5F4F0; border: 1px solid #E6E4DD; }
#af-try .cmp figcaption { font-family: 'Space Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: #8A887E; text-align: center; margin-top: 8px; }
#af-try .disc { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 10px; background: rgba(200,162,75,0.04); border: 1px solid rgba(200,162,75,0.12); font-size: 12px; color: #7A5C1A; line-height: 1.6; margin-bottom: 20px; }
#af-try .perks { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
#af-try .perks li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
#af-try .pk-i { width: 24px; height: 24px; border-radius: 6px; background: rgba(58,125,68,0.1); display: grid; place-items: center; flex-shrink: 0; color: #3A7D44; }

/* Screens */
#af-try .scr { display: none; }
#af-try .scr.on { display: block; animation: fade 0.4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 768px) {
  #af-try .pg { flex-direction: column; }
  #af-try .sb { width: 100%; height: auto; position: static; flex-direction: row; overflow-x: auto; padding: 10px; gap: 8px; }
  #af-try .sg { grid-template-columns: repeat(2, 1fr); }
  #af-try .gg, #af-try .ss { grid-template-columns: repeat(2, 1fr); }
  #af-try .ups, #af-try .cmp { grid-template-columns: 1fr; }
}

/* ── Inline design-styles → classes (no-mixed regel) ── */
#af-try .sb-spacer { flex: 1; }
#af-try .sb-card {
  padding: 14px; border: 1px solid rgba(200,162,75,0.15);
  border-radius: 8px; background: rgba(200,162,75,0.04);
}
#af-try .sb-card-label {
  font-family: 'Space Mono', monospace; font-size: 10px; color: #C8A24B;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px;
}
#af-try .sb-card-sub { font-size: 12px; color: rgba(244,241,236,0.45); line-height: 1.5; }
#af-try .sb-foot {
  padding: 8px 6px; border-top: 1px solid rgba(244,241,236,0.08);
  display: flex; align-items: center; gap: 8px;
}
#af-try .sb-foot span { font-size: 12px; color: rgba(244,241,236,0.4); }
#af-try .sb-foot a { font-size: 12px; color: #C8A24B; font-weight: 500; }
#af-try .fc-640 { max-width: 640px; }
#af-try .fc-560 { max-width: 560px; }
#af-try .fc-600 { max-width: 600px; }
#af-try .disc svg { flex-shrink: 0; margin-top: 1px; }

/* ── Flow-states (uit de werkende AJAX-flow) ── */
#af-try .drop-preview {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
#af-try .drop.has-img .drop-title,
#af-try .drop.has-img .drop-sub,
#af-try .drop.has-img svg { visibility: hidden; }
#af-try .drop .drop-badge { z-index: 2; }
#af-try .drop.uploading { border-color: #C8A24B; }
#af-try .drop.uploading::after {
  content: "Uploaden…";
  position: absolute; inset: auto 0 12px 0; z-index: 2;
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: #7A5C1A;
  background: rgba(250,250,247,0.85); padding: 4px 0; text-align: center;
}
#af-try .btn:disabled { opacity: 0.45; cursor: not-allowed; }
#af-try .err:empty { display: none; }

/* Mobiel: sidebar-kaart en footer verbergen in de horizontale balk */
@media (max-width: 768px) {
  #af-try .sb-card, #af-try .sb-foot, #af-try .sb-spacer { display: none; }
  #af-try .sb-label { display: none; }
  #af-try .sb-item { flex-shrink: 0; border-left: none; border-bottom: 3px solid transparent; }
  #af-try .sb-item.on { border-left: none; border-bottom-color: #C8A24B; }
  #af-try .bd { padding: 20px 16px; }
}
