/* 4devs.eu - sponsor ad-placement mockup + Make Yours customizer styles */

/* ============================================================
   ADS PAGE - sponsor-placement showcase + no-signup creative
   customizer. Ported in from the ads.4devs.eu subdomain build so it
   lives in this one file; same design tokens as the rest of the page,
   only new component classes below (no collisions with anything above).
   ============================================================ */
.page{padding:40px 0 90px}
.showcase-callouts{display:flex;flex-direction:column;gap:16px;margin-top:22px}
.showcase-callout{display:flex;gap:14px;align-items:flex-start}
.showcase-callout .tier-num{flex:none;width:26px;height:26px;border-radius:50%;background:var(--sea);color:var(--paper);font-family:var(--mono);font-size:.74rem;font-weight:700;display:flex;align-items:center;justify-content:center}
.showcase-callout h3{margin-bottom:2px}
.showcase-callout p{font-family:var(--serif);font-size:.9rem;color:var(--muted);line-height:1.55}

.vscode-mock{margin-top:26px;border-radius:10px;overflow:hidden;background:#1e1e1e;border:1px solid rgba(0,0,0,.35);box-shadow:0 18px 44px rgba(18,38,43,.22);
  --d-surface:rgba(255,255,255,.06);--d-surface-hover:rgba(255,255,255,.1);--d-border:rgba(255,255,255,.14);--d-accent:#0e639c;--d-accent-fg:#ffffff;
  --d-accent-hover:#1177bb;--d-accent-soft:rgba(14,99,156,.28);--d-accent-border:rgba(14,99,156,.55);
  --d-text-dim:rgba(204,204,204,.75);--d-text-faint:rgba(204,204,204,.5);--d-link:#3ea6ff;--d-mono:ui-monospace,'SF Mono',Consolas,monospace;
}
.vscode-titlebar{display:flex;align-items:center;gap:8px;padding:10px 14px;background:#323233}
.vscode-dot{width:11px;height:11px;border-radius:50%;flex:none}
.vscode-dot.red{background:#ec6a5e}.vscode-dot.yellow{background:#f4bf4f}.vscode-dot.green{background:#61c454}
.vscode-titlebar-label{margin-left:8px;font-family:var(--display);font-size:.74rem;color:#b3b3b3}
.vscode-body{display:flex;min-height:460px}
.ext-panel{flex:none;width:270px;background:#181818;border-right:1px solid #000;display:flex;flex-direction:column}
.ext-panel-top{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.06)}
.ext-icon-btn,.ext-menu-btn,.ext-tool-btn,.ext-send-btn{font:inherit;-webkit-appearance:none;appearance:none;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,opacity .15s ease}
.ext-icon-btn{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#9a9a9a;background:none;border:0;border-radius:5px}
.ext-icon-btn:hover{background:rgba(255,255,255,.08);color:#cfcfcf}
.ext-menu-btn{display:flex;align-items:center;gap:5px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:100px;padding:5px 11px;font-family:var(--display);font-size:.68rem;font-weight:600;color:#cfcfcf}
.ext-menu-btn:hover,.ext-menu-btn.active{background:rgba(255,255,255,.12)}
.ext-avatar{width:24px;height:24px;border-radius:50%;background:#181818;border:1px solid rgba(255,255,255,.14)}
.ext-chat{flex:1;padding:16px 14px;display:flex;flex-direction:column;gap:12px;overflow:hidden}
.ext-msg-user{align-self:flex-end;max-width:88%;background:rgba(255,255,255,.07);color:#e2e2e2;font-family:var(--display);font-size:.76rem;line-height:1.5;padding:8px 12px;border-radius:10px 10px 2px 10px}
.ext-inputbar{border-top:1px solid rgba(255,255,255,.06);padding:12px 14px 14px}
.ext-input-box{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:10px 12px;font-family:var(--display);font-size:.76rem;color:#767676}
.ext-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px}
.ext-tool-btn{display:flex;align-items:center;gap:5px;max-width:96px;overflow:hidden;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:100px;padding:5px 9px;font-family:var(--display);font-size:.64rem;color:#c7c7c7;white-space:nowrap;text-overflow:ellipsis}
.ext-tool-btn:hover,.ext-tool-btn.active{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.22)}
.ext-tool-dot{width:6px;height:6px;border-radius:50%;background:#e0a526;flex:none}
.ext-send-btn{margin-left:auto;flex:none;width:28px;height:28px;border-radius:50%;background:#2b7fd1;color:#fff;display:flex;align-items:center;justify-content:center;border:0}
.ext-send-btn:hover{background:#3a8fe0}
.ext-send-btn.sent{animation:sendPulse .35s ease}
@keyframes sendPulse{0%{transform:scale(1)}50%{transform:scale(.82)}100%{transform:scale(1)}}
.vscode-editor{flex:1;background:#1e1e1e;color:#d4d4d4;padding:18px 24px 18px 40px;font-family:var(--mono);font-size:.8rem;line-height:1.8;min-width:0;overflow:auto;white-space:pre-wrap}
.vscode-editor[contenteditable="true"]{outline:none;caret-color:#fff;cursor:text}
@media (max-width:760px){
  .vscode-body{flex-direction:column;min-height:0}
  .ext-panel{width:100%;border-right:0;border-bottom:1px solid #000}
  .vscode-editor{padding:16px 18px;font-size:.74rem;max-height:200px}
}

.thinking{display:flex;align-items:center;gap:8px;font-size:11.5px;color:var(--d-text-faint);flex-wrap:wrap}
.dot-pulse{width:7px;height:7px;border-radius:50%;background:var(--d-accent);animation:adsPulse 1.1s ease-in-out infinite;flex:none}
@keyframes adsPulse{0%,100%{opacity:.3;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}
.thinking-sponsor{display:inline-flex;align-items:center;gap:6px;margin-left:4px;padding:3px 9px 3px 4px;border-radius:100px;background:var(--d-surface);border:1px solid var(--d-accent-border);color:var(--d-text-dim);text-decoration:none;font-size:10.5px;max-width:100%;overflow:hidden;cursor:pointer}
.thinking-sponsor-k{flex:none;font-family:var(--d-mono);font-size:8.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--d-link);background:var(--d-accent-soft);border-radius:100px;padding:2px 6px}
.thinking-sponsor-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#cccccc}
.sponsor{flex:none;padding:12px 13px;border-radius:12px;background:var(--d-surface);border:1px solid var(--d-accent-border);max-width:320px;display:block;text-decoration:none;cursor:pointer}
.sponsor-head{display:flex;align-items:center;justify-content:space-between}
.sponsor-k{font-family:var(--d-mono);font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--d-link)}
.sponsor-headline{margin-top:7px;font-size:12.5px;font-weight:700;color:#cccccc}
.sponsor-name{margin-top:3px;font-size:11px;color:var(--d-text-faint)}
.sponsor-cta{display:inline-block;margin-top:10px;padding:6px 13px;border-radius:8px;background:var(--d-accent);color:var(--d-accent-fg);font-size:11px;font-weight:700;text-decoration:none}
.sponsor-cta:hover{background:var(--d-accent-hover)}
/* Both .thinking-sponsor and .sponsor set their own `display`, which beats
   the browser's default [hidden] rule at equal specificity - without this,
   the expand/collapse toggle below leaves both ad forms visible at once. */
.thinking-sponsor[hidden],.sponsor[hidden]{display:none}

/* One ad slot that can show as either tier - a small control swaps which
   form is visible, instead of showing both placements at once. */
.ad-slot{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.sponsor-expand-btn{font:inherit;-webkit-appearance:none;appearance:none;cursor:pointer;background:none;border:0;padding:0;font-family:var(--d-mono);font-size:9.5px;letter-spacing:.04em;color:var(--d-link);text-decoration:underline;text-underline-offset:2px}
.sponsor-expand-btn:hover{color:#fff}

.customizer-tabs{display:flex;gap:8px;margin-top:22px}
.customizer-tab{font:inherit;-webkit-appearance:none;appearance:none;cursor:pointer;font-family:var(--display);font-weight:600;font-size:.85rem;padding:9px 18px;border-radius:100px;border:1px solid var(--rule-strong);background:var(--paper);color:var(--muted);transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.customizer-tab:hover{border-color:var(--sea);color:var(--ink)}
.customizer-tab.active{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.customizer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,360px);gap:32px;margin-top:18px;align-items:start}
.customizer[hidden]{display:none}
@media (max-width:860px){.customizer{grid-template-columns:1fr}}
.customizer-preview{background:#1e1e1e;border-radius:10px;padding:40px 24px;display:flex;align-items:center;justify-content:center;min-height:260px;position:sticky;top:80px}
@media (max-width:860px){.customizer-preview{position:static}}
.custom-controls{display:flex;flex-direction:column;gap:16px;min-width:0}
.custom-group{display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--rule-strong);border-top:3px solid var(--ink);border-radius:10px;overflow:hidden}
.custom-group-toggle{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:16px 20px;cursor:pointer}
.custom-group-toggle:hover .custom-group-title{color:var(--sea)}
.custom-group-toggle:focus-visible{outline:2px solid var(--sea);outline-offset:-2px}
.custom-group-title{margin:0;font-family:var(--display);font-size:.95rem;font-weight:700;letter-spacing:-.005em;color:var(--ink);transition:color .15s ease}
.custom-group-chevron{flex:none;color:var(--muted);transition:transform .2s ease}
.custom-group-toggle[aria-expanded="true"] .custom-group-chevron{transform:rotate(180deg)}
.custom-group-body{display:flex;flex-direction:column;gap:14px;padding:2px 20px 20px}
.custom-group-body[hidden]{display:none}
.custom-field label.lab{margin-bottom:6px}
.custom-field .checkline{display:flex;align-items:center;gap:8px;font-family:var(--display);font-size:.85rem;color:var(--ink);cursor:pointer}
.checkline{display:flex;align-items:center}
.checkline label{display:flex;align-items:center;gap:8px;font-family:var(--display);font-size:.85rem;color:var(--ink);cursor:pointer}
.checkline input[type=checkbox]{width:16px;height:16px;accent-color:var(--sea);cursor:pointer}
.range-input{width:100%;accent-color:var(--sea);height:36px;cursor:pointer}
.custom-row{display:flex;flex-wrap:wrap;gap:10px}
.custom-row>*{flex:1 1 140px;min-width:0}
.color-input{-webkit-appearance:none;appearance:none;width:100%;height:38px;border:1px solid var(--rule-strong);border-radius:6px;padding:3px;background:var(--paper);cursor:pointer}
.color-input::-webkit-color-swatch{border:none;border-radius:4px}
.color-input::-moz-color-swatch{border:none;border-radius:4px}
.upload-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
/* The real file inputs are triggered programmatically by the "Add
   image"/"Add font file" buttons - never shown themselves, wherever they
   sit in the markup (a couple ended up as siblings of .upload-row rather
   than inside it, so this can't be scoped to .upload-row alone without
   leaving the native "Choose File / no file chosen" text visible). */
.custom-field input[type=file]{display:none}
.customizer-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.customizer-actions .btn{flex:0 0 auto}
.custom-card{width:300px;max-width:100%;border-radius:var(--cc-radius,12px);background:var(--cc-bg,#232323);color:var(--cc-fg,#e8e8e8);overflow:hidden;position:relative;box-shadow:0 10px 26px rgba(0,0,0,.35);display:block;text-decoration:none}
.custom-card-img{width:100%;height:130px;object-fit:cover;display:block}
.custom-card-body{padding:16px 18px}
.custom-card-k{font-family:var(--mono);font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;opacity:.65}
.custom-card-headline{margin-top:8px;font-family:var(--display);font-size:var(--cc-headline-size,14px);font-weight:700}
.custom-card-cta{display:inline-block;margin-top:12px;padding:7px 15px;border-radius:8px;background:var(--cc-fg,#e8e8e8);color:var(--cc-bg,#232323);font-family:var(--display);font-size:11.5px;font-weight:700;text-decoration:none;border:2px solid transparent}
.custom-card-cta.outline{background:transparent!important;border-color:var(--cc-accent,#e8e8e8)}
.custom-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 12px 5px 6px;border-radius:100px;background:var(--cc-bg,#232323);color:var(--cc-fg,#e8e8e8);box-shadow:0 10px 26px rgba(0,0,0,.35);max-width:260px;text-decoration:none}
.custom-chip-k{flex:none;font-family:var(--mono);font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--cc-fg,#e8e8e8);background:rgba(255,255,255,.16);border-radius:100px;padding:2px 7px}
.custom-chip-text{font-family:var(--display);font-size:var(--cc-text-size,12px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Extra whitespace + a rule so the "Make yours" teaser under the mockup
   doesn't crowd it - was sitting right under the mockup with nothing
   separating them. */
.ads-teaser{margin-top:64px;padding-top:40px;border-top:1px solid var(--rule)}

.font-upload-name{font-family:var(--mono);font-size:.72rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:160px}

/* Card style variants - default (no data-style) keeps the original
   always-on shadow for back-compat; explicit variants below override it. */
.custom-card{box-shadow:0 10px 26px rgba(0,0,0,.35);border:0}
.custom-card[data-style="flat"]{box-shadow:none}
.custom-card[data-style="bordered"]{box-shadow:none;border:var(--cc-border-width,2px) solid var(--cc-border-color,#fff)}
.custom-card[data-style="shadow"]{box-shadow:0 22px 50px rgba(0,0,0,.5)}
.custom-card[data-align="center"] .custom-card-body{text-align:center}
.custom-card[data-align="center"] .custom-card-cta{margin-left:auto;margin-right:auto;display:table}

.custom-chip{box-shadow:0 10px 26px rgba(0,0,0,.35);border:0}
.custom-chip[data-style="flat"]{box-shadow:none}
.custom-chip[data-style="bordered"]{box-shadow:none;border:var(--cc-border-width,2px) solid var(--cc-border-color,#fff)}
.custom-chip[data-style="shadow"]{box-shadow:0 22px 50px rgba(0,0,0,.5)}

