/* ============================================================
   RandomlyGenerated.org — Stylesheet
   Fonts: Fraunces (display) + Outfit (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,800;1,9..144,500&family=Outfit:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #faf8fc;
  --bg-sidebar:   #ede5f8;
  --bg-white:     #ffffff;
  --text:         #1a1625;
  --text-muted:   #6b6080;
  --border:       #d8d0ea;
  --accent:       #6b3fa0;
  --accent-hover: #5a3088;
  --accent-light: #f0eaf9;
  --result-bg:    #f0eaf9;
  --header-bg:    #f7f2ff;
  --radius:       4px;
  --sidebar-w:    224px;
  --header-h:     50px;
  --font:         'Outfit', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --mono:         'Courier New', Courier, monospace;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 15px; line-height: 1.65; color: var(--text); background: var(--bg); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 200; height: var(--header-h); background: var(--header-bg); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 20px; max-width: 1280px; margin: 0 auto; }
.logo { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.3px; white-space: nowrap; font-style: italic; }
.logo .logo-accent { color: var(--accent); font-style: normal; }
.header-nav { display: flex; gap: 20px; }
.header-nav a { font-size: 13.5px; color: var(--text-muted); text-decoration: none; }
.header-nav a:hover { color: var(--accent); }

/* ---- Sidebar toggle ---- */
.sidebar-toggle { display: none; align-items: center; gap: 6px; margin: 10px 16px 0; padding: 6px 12px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13.5px; font-family: var(--font); cursor: pointer; color: var(--text); }
.sidebar-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Layout ---- */
.layout { display: flex; min-height: calc(100vh - var(--header-h)); }

/* ---- Sidebar ---- */
.sidebar { width: var(--sidebar-w); min-width: var(--sidebar-w); background: var(--bg-sidebar); border-right: 1px solid var(--border); position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; flex-shrink: 0; }
.sidebar-nav { padding: 16px 0 24px; }
.sidebar-heading { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); padding: 0 16px 8px; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav ul li a { display: block; padding: 7px 16px 7px 14px; border-left: 3px solid transparent; font-size: 13.5px; color: var(--text); text-decoration: none; line-height: 1.4; }
.sidebar-nav ul li a:hover { background: rgba(107,63,160,0.12); color: var(--accent); }
.sidebar-nav ul li a.active { border-left-color: var(--accent); background: rgba(107,63,160,0.12); color: var(--accent); font-weight: 600; }

/* ---- Main content ---- */
.main-content { flex: 1; min-width: 0; padding: 28px 32px 48px; max-width: 840px; }

/* ---- Tool header ---- */
.tool-header { margin-bottom: 18px; }
.tool-header h1 { font-family: var(--font-display); font-size: 1.65rem; font-weight: 800; line-height: 1.2; margin-bottom: 4px; color: var(--text); }
.tool-tagline { font-size: 14px; color: var(--text-muted); }

/* ---- Tool section ---- */
.tool-section { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }

/* ---- Result box (always visible, fixed height — never changes size) ---- */
.result-box {
  background: transparent;
  border: none;
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  border-radius: 0;
  padding: 14px 0;
  margin-bottom: 12px;
  height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  text-align: left;
  flex-shrink: 0;
}

.result-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  word-break: break-all;
  line-height: 1.15;
  text-align: left;
  width: 100%;
}
.result-value.is-placeholder::before {
  content: 'Click Generate to see a result';
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-muted);
  font-style: italic;
}
.result-value.result-mono { font-family: var(--font); font-size: 1.15rem; font-weight: 600; font-style: normal; }
.result-value.result-large-list { font-family: var(--font); font-size: 0.95rem; font-weight: 400; color: var(--text); }

.result-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.copy-feedback { font-size: 12.5px; color: var(--accent); font-weight: 600; }

/* ---- History ---- */
.history-section { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.history-section h3 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 8px; }
.history-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.history-list li { font-size: 12.5px; color: var(--text-muted); background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2px 8px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Generate button (full-width primary) ---- */
.btn-generate { margin-bottom: 16px; }

/* ---- Options layout ---- */
.basic-options { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 14px; }
.advanced-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  color: var(--text-muted);
  padding: 6px 0;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.advanced-toggle:hover { color: var(--accent); }
.advanced-toggle .adv-arrow { display: inline-block; transition: transform 0.18s ease; font-size: 11px; }
.advanced-toggle[aria-expanded="true"] .adv-arrow { transform: rotate(180deg); }
.advanced-panel { display: none; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding-top: 12px; border-top: 1px solid var(--border); margin-top: 4px; }
.advanced-panel.open { display: flex; }

/* ---- Form controls ---- */
.control-group { display: flex; flex-direction: column; gap: 5px; }
.control-group label { font-size: 12px; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.4px; }
.control-group input[type="text"],
.control-group input[type="number"],
.control-group input[type="date"],
.control-group input[type="time"],
.control-group select {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 10px;
  font-size: 14px; font-family: var(--font); color: var(--text); background: var(--bg-white); height: 34px;
}
.control-group textarea { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; font-size: 14px; font-family: var(--font); color: var(--text); background: var(--bg-white); width: 100%; min-height: 120px; resize: vertical; line-height: 1.5; }
.control-group input[type="number"] { width: 88px; }
.control-group input[type="date"]   { width: 155px; }
.control-group input[type="time"]   { width: 130px; }
.control-group select               { min-width: 148px; }
.control-group input:focus, .control-group select:focus, .control-group textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.control-full { width: 100%; }

.check-group { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.check-label { display: flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; user-select: none; }
.check-label input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 18px; border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; font-weight: 500; font-family: var(--font); cursor: pointer; line-height: 1; white-space: nowrap; transition: background 0.1s, color 0.1s, border-color 0.1s; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: var(--bg-white); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); }
.btn-sm { padding: 5px 12px; font-size: 13px; }

/* ---- Results list (multi-item inside result-box) ---- */
.results-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0;
}
.results-list li {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.results-list li .item-num { display: none; }

/* ---- Color preview ---- */
.color-preview-swatch { display: block; width: 72px; height: 72px; border: 1px solid var(--border); border-radius: var(--radius); margin: 0; flex-shrink: 0; }
.color-result-row { display: flex; align-items: center; gap: 16px; justify-content: flex-start; }
.color-codes { font-size: 14px; line-height: 1.8; text-align: left; }
.color-codes strong { display: block; font-family: var(--font); font-size: 1.6rem; font-weight: 600; color: var(--text); }

/* ---- Team grid ---- */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 10px; }
.team-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.team-card-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); margin-bottom: 8px; }
.team-card ul { list-style: none; }
.team-card ul li { font-size: 13.5px; padding: 3px 0; border-bottom: 1px solid var(--border); }
.team-card ul li:last-child { border-bottom: none; }

/* ---- Yes/No ---- */
.yesno-result { font-family: var(--font-display); font-size: 3.5rem; font-weight: 800; line-height: 1; margin-bottom: 10px; text-align: center; }
.yesno-result.answer-yes   { color: #1a7a46; }
.yesno-result.answer-no    { color: #b32d2d; }
.yesno-result.answer-maybe { color: var(--accent); }

/* ---- Ad slots ---- */
.ad-slot { display: flex; align-items: center; justify-content: center; min-height: 90px; border: 1px dashed var(--border); background: #faf8fc; border-radius: var(--radius); margin-bottom: 20px; }
.ad-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: #bbb0cc; }

/* ---- Content blocks ---- */
.content-sections { border-top: 1px solid var(--border); }
.content-block { padding: 20px 0; border-bottom: 1px solid var(--border); }
.content-block:last-child { border-bottom: none; }
.content-block h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.content-block p { margin-bottom: 10px; }
.content-block p:last-child { margin-bottom: 0; }
.content-block ul, .content-block ol { padding-left: 20px; }
.content-block ul li, .content-block ol li { margin-bottom: 5px; }
.faq-section dt { font-weight: 600; margin-top: 14px; margin-bottom: 3px; }
.faq-section dt:first-child { margin-top: 0; }
.faq-section dd { color: var(--text-muted); margin-left: 0; }

/* ---- Hub grid ---- */
.hub-intro { margin-bottom: 24px; }
.hub-intro h1 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; font-style: italic; }
.hub-intro p { color: var(--text-muted); max-width: 560px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 24px; }
.tool-card { display: block; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--text); transition: border-color 0.1s, background 0.1s; }
.tool-card:hover { border-color: var(--accent); background: var(--accent-light); color: var(--text); }
.tool-card-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.tool-card-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

/* ---- Static pages ---- */
.static-page { max-width: 680px; }
.static-page h1 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.static-page h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin: 20px 0 8px; }
.static-page p { margin-bottom: 12px; }
.static-page ul { padding-left: 20px; margin-bottom: 12px; }
.static-page ul li { margin-bottom: 5px; }
.contact-form .control-group { margin-bottom: 14px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; font-size: 14px; font-family: var(--font); color: var(--text); background: var(--bg-white); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-white); padding: 20px 32px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-nav a { font-size: 13px; color: var(--text-muted); text-decoration: none; margin-left: 16px; }
.footer-nav a:first-child { margin-left: 0; }
.footer-nav a:hover { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 800px) {
  .sidebar { position: fixed; top: var(--header-h); left: 0; z-index: 150; height: calc(100vh - var(--header-h)); transform: translateX(-100%); transition: transform 0.2s ease; box-shadow: 2px 0 8px rgba(0,0,0,0.08); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .main-content { padding: 16px 16px 40px; }
  .header-nav { display: none; }
  .result-value { font-size: 1.8rem; }
  .yesno-result { font-size: 2.5rem; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .teams-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
