/* ============================================================
   COLOR SHADES — Page Styles
   HtmlColor.Codes · color-shades.css
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --brand: #e8400a;
  --brand-bg: rgba(232,64,10,.09);
  --brand-border: rgba(232,64,10,.22);
  --bg: #ffffff;
  --bg2: #f7f7f7;
  --bg3: #efefef;
  --border: #e0e0e0;
  --text: #111111;
  --text2: #444444;
  --muted: #777777;
  --card: #ffffff;
  --nav-bg: rgba(255,255,255,.96);
  --shadow: 0 2px 14px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 36px rgba(0,0,0,.13);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.18);
  --radius: 12px;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', sans-serif;
  --fs-nav: 16px;
  --fs-body: 21px;
  --fs-small: 16px;
  --fs-h1: 50px;
  --fs-h2: 40px;
  --fs-h3: 24px;
}

html.dark {
  --bg: #111111;
  --bg2: #1a1a1a;
  --bg3: #252525;
  --border: #333333;
  --text: #eeeeee;
  --text2: #cccccc;
  --muted: #888888;
  --card: #1a1a1a;
  --nav-bg: rgba(17,17,17,.96);
  --shadow: 0 2px 14px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 36px rgba(0,0,0,.6);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.7);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
}
code {
  font-family: var(--mono);
  font-size: .84em;
  background: var(--bg3);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--brand);
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 62px;
  box-shadow: var(--shadow); gap: 12px;
}
.nav-logo { font-weight: 700; font-size: 1.1rem; letter-spacing: -.5px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-logo .hash { color: var(--brand); font-size: 1.35rem; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 8px;
  font-size: var(--fs-nav); font-weight: 600; color: var(--text2);
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--bg3); color: var(--brand); }
.nav-links svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: flex; align-items: center; background: var(--bg3); border: 1.5px solid var(--border); border-radius: 50px; padding: 3px; gap: 2px; }
.tbtn { width: 30px; height: 30px; border-radius: 50px; border: none; background: transparent; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: background .2s; color: var(--muted); }
.tbtn.act { background: var(--brand); color: #fff; }

/* ── BREADCRUMB ── */
.breadcrumb { max-width: 1100px; margin: 0 auto; padding: 14px 24px 0; font-size: var(--fs-small); color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--brand); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── HERO ── */
.page-hero { max-width: 1100px; margin: 0 auto; padding: 52px 24px 44px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-bg); color: var(--brand); border: 1px solid var(--brand-border); border-radius: 50px; padding: 4px 14px; font-size: var(--fs-small); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 18px; }
.page-hero h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -.04em; margin-bottom: 16px; max-width: 780px; }
.page-hero h1 em { color: var(--brand); font-style: normal; }
.page-hero .lead { font-size: var(--fs-body); color: var(--text2); max-width: 680px; margin-bottom: 28px; line-height: 1.72; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .n { font-size: 1.5rem; font-weight: 700; color: var(--brand); letter-spacing: -.04em; }
.hero-stat .l { font-size: var(--fs-small); color: var(--muted); font-weight: 600; margin-top: 1px; }

/* ── DIVIDER ── */
.hr { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── TOOL SHELL ── */
.tool-section { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; }
.tool-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── COLOR INPUT ROW ── */
.input-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow); margin-bottom: 24px;
}
.color-input-wrap {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px;
}
.color-swatch-input {
  width: 46px; height: 46px; border-radius: 9px; border: 2px solid var(--border);
  cursor: pointer; flex-shrink: 0; overflow: hidden; padding: 0;
  background: none;
}
.color-swatch-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-swatch-input::-webkit-color-swatch { border: none; border-radius: 7px; }
.hex-input {
  flex: 1; background: var(--bg3); border: 1.5px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 9px 13px;
  font-family: var(--mono); font-size: .9rem; font-weight: 600;
  transition: border-color .2s; min-width: 0;
}
.hex-input:focus { outline: none; border-color: var(--brand); }
.input-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }
.options-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.opt-label { font-size: var(--fs-small); font-weight: 700; color: var(--muted); white-space: nowrap; }
.steps-select {
  background: var(--bg3); border: 1.5px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 8px 12px; font-size: var(--fs-small);
  font-weight: 600; font-family: var(--sans); cursor: pointer;
}
.generate-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand); color: white; border: none;
  padding: 10px 22px; border-radius: 9px; font-weight: 700;
  font-size: var(--fs-small); font-family: var(--sans);
  cursor: pointer; transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.generate-btn:hover { opacity: .88; transform: translateY(-1px); }
.random-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg3); color: var(--text2); border: 1.5px solid var(--border);
  padding: 9px 16px; border-radius: 9px; font-weight: 700;
  font-size: var(--fs-small); font-family: var(--sans); cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.random-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ── SHADE TYPES TAB ROW ── */
.shade-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px;
}
.shade-tab {
  padding: 7px 16px; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--card); font-size: var(--fs-small); font-weight: 700;
  color: var(--text2); cursor: pointer; transition: all .15s; font-family: var(--sans);
}
.shade-tab:hover { border-color: var(--brand); color: var(--brand); }
.shade-tab.active { background: var(--brand); color: white; border-color: var(--brand); }

/* ── SHADE STRIP (main display) ── */
.shade-strip-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.shade-strip { display: flex; height: 100px; }
.shade-cell {
  flex: 1; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; padding-bottom: 8px;
  transition: flex .3s ease; position: relative; overflow: hidden;
}
.shade-cell:hover { flex: 2.2; }
.shade-cell .sc-hex {
  font-family: var(--mono); font-size: .46rem; color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,.7); opacity: 0;
  transition: opacity .2s; pointer-events: none; font-weight: 600;
  letter-spacing: .02em;
}
.shade-cell:hover .sc-hex { opacity: 1; }
.shade-cell .sc-label {
  font-size: .38rem; color: rgba(255,255,255,.7); text-shadow: 0 1px 3px rgba(0,0,0,.6);
  opacity: 0; transition: opacity .2s; pointer-events: none; margin-top: 1px;
}
.shade-cell:hover .sc-label { opacity: 1; }

/* ── SHADE CARDS GRID ── */
.shade-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.shade-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.shade-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.sc-swatch { height: 56px; transition: height .2s; }
.shade-card:hover .sc-swatch { height: 68px; }
.sc-info { padding: 8px 10px; }
.sc-name { font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.sc-val { font-family: var(--mono); font-size: .74rem; color: var(--brand); font-weight: 600; }
.sc-copy-row { display: flex; gap: 3px; margin-top: 5px; }
.sc-cp {
  flex: 1; padding: 3px 0; border-radius: 4px; border: 1px solid var(--border);
  background: var(--bg3); font-size: .58rem; font-weight: 700; cursor: pointer;
  color: var(--muted); transition: all .15s; font-family: var(--sans); text-align: center;
}
.sc-cp:hover { background: var(--brand); color: white; border-color: var(--brand); }

/* ── EXPORT ROW ── */
.export-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-top: 8px; box-shadow: var(--shadow);
}
.export-label { font-size: var(--fs-small); font-weight: 700; color: var(--muted); }
.export-btn {
  padding: 7px 14px; border-radius: 7px; border: 1.5px solid var(--border);
  background: var(--bg3); font-size: var(--fs-small); font-weight: 700;
  color: var(--text2); cursor: pointer; transition: all .15s; font-family: var(--sans);
}
.export-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-bg); }

/* ── COLOR INFO PANEL ── */
.color-info-panel {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 12px; margin-top: 12px;
}
.cip-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.cip-title { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cip-swatch { height: 44px; border-radius: 8px; margin-bottom: 10px; border: 1px solid var(--border); }
.cip-vals { display: flex; flex-direction: column; gap: 5px; }
.cip-row { display: flex; align-items: center; gap: 8px; }
.cip-row label { width: 36px; font-size: .7rem; font-weight: 700; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; flex-shrink: 0; }
.cip-row input { flex: 1; background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 5px 8px; font-family: var(--mono); font-size: .72rem; min-width: 0; }
.cip-cp {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg3); cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--muted); transition: all .15s; flex-shrink: 0;
}
.cip-cp:hover { background: var(--brand); border-color: var(--brand); color: white; }
.cip-cp svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── PRESET COLORS ── */
.presets-section { margin-top: 28px; }
.presets-title { font-size: var(--fs-small); font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.presets-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.preset-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--card); font-size: var(--fs-small); font-weight: 700;
  color: var(--text2); cursor: pointer; transition: all .15s; font-family: var(--sans);
}
.preset-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.preset-dot { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; }

/* ── CONTENT SECTIONS ── */
.content-section { max-width: 1100px; margin: 0 auto; padding: 60px 24px; }
.content-section h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.04em; margin-bottom: 16px; }
.section-intro { font-size: var(--fs-body); color: var(--text2); max-width: 760px; line-height: 1.75; margin-bottom: 36px; }

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.f-icon { width: 46px; height: 46px; border-radius: 11px; background: var(--brand-bg); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.f-icon svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: var(--fs-body); font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: var(--fs-small); color: var(--muted); line-height: 1.66; }

/* ── HOW TO STEPS ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.step-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: white; font-weight: 700; font-size: var(--fs-body); display: flex; align-items: center; justify-content: center; font-family: var(--sans); margin-bottom: 14px; }
.step-card h3 { font-size: var(--fs-body); font-weight: 700; margin-bottom: 7px; }
.step-card p { font-size: var(--fs-small); color: var(--muted); line-height: 1.65; }

/* ── USE CASES ── */
.use-cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.use-case { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.uc-icon { font-size: 1.7rem; margin-bottom: 10px; }
.use-case h3 { font-size: var(--fs-body); font-weight: 700; margin-bottom: 7px; }
.use-case p { font-size: var(--fs-small); color: var(--muted); line-height: 1.62; }

/* ── THEORY DEMO ── */
.theory-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.theory-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.theory-card h3 { font-size: var(--fs-body); font-weight: 700; margin-bottom: 10px; }
.theory-strip { display: flex; height: 40px; border-radius: 8px; overflow: hidden; margin: 10px 0; box-shadow: var(--shadow); }
.ts-cell { flex: 1; cursor: pointer; transition: flex .25s; }
.ts-cell:hover { flex: 2; }
.theory-card p { font-size: var(--fs-small); color: var(--muted); line-height: 1.65; }

/* ── TIPS ── */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tip-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.tip-card h3 { font-size: var(--fs-body); font-weight: 700; margin-bottom: 8px; }
.tip-card p { font-size: var(--fs-small); color: var(--muted); line-height: 1.65; }
.tip-card ul { font-size: var(--fs-small); color: var(--muted); line-height: 1.8; padding-left: 18px; margin-top: 6px; }
.tip-card li { margin-bottom: 3px; }

/* ── PROSE ── */
.prose { max-width: 820px; }
.prose h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.04em; margin-bottom: 14px; margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-body); font-weight: 700; margin: 28px 0 8px; color: var(--brand); }
.prose p { font-size: var(--fs-body); color: var(--text2); margin-bottom: 16px; line-height: 1.79; }
.prose ul, .prose ol { font-size: var(--fs-body); color: var(--text2); padding-left: 22px; line-height: 1.82; margin-bottom: 16px; }
.prose li { margin-bottom: 5px; }
.prose strong { color: var(--text); font-weight: 700; }
.callout { background: var(--brand-bg); border-left: 4px solid var(--brand); border-radius: 0 9px 9px 0; padding: 16px 20px; margin: 22px 0; font-size: var(--fs-body); color: var(--text2); line-height: 1.72; }
.callout strong { color: var(--brand); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 9px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 17px 20px; font-size: var(--fs-body); font-weight: 700; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: background .15s; font-family: var(--sans); }
.faq-q:hover { background: var(--bg2); }
.faq-arr { font-size: .85rem; color: var(--muted); transition: transform .25s; flex-shrink: 0; }
.faq-q.open .faq-arr { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 16px; font-size: var(--fs-body); color: var(--text2); line-height: 1.76; }
.faq-a.show { display: block; }

/* ── RELATED ── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 14px; }
.related-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--brand); }
.rc-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rc-icon svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.related-card h4 { font-size: var(--fs-nav); font-weight: 700; margin-bottom: 2px; }
.related-card p { font-size: var(--fs-small); color: var(--muted); }

/* ── FOOTER ── */
.ft-wrap { border-top: 1px solid var(--border); background: var(--bg2); }
footer { padding: 44px 24px 28px; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; }
footer h4 { font-size: var(--fs-small); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 7px; }
footer ul li a { font-size: var(--fs-small); color: var(--muted); transition: color .15s; font-weight: 500; }
footer ul li a:hover { color: var(--brand); }
.ft-brand p { font-size: var(--fs-small); color: var(--muted); margin-top: 7px; max-width: 210px; line-height: 1.55; }
.ft-bottom { border-top: 1px solid var(--border); padding: 16px 24px; text-align: center; font-size: var(--fs-small); color: var(--muted); max-width: 1100px; margin: 0 auto; }

/* ── TOAST ── */
#toast { position: fixed; bottom: 22px; right: 22px; z-index: 9999; background: var(--text); color: var(--bg); border-radius: 9px; padding: 10px 16px; font-size: var(--fs-small); font-weight: 600; transform: translateY(60px); opacity: 0; transition: .28s; pointer-events: none; font-family: var(--sans); }
#toast.show { transform: translateY(0); opacity: 1; }

/* ── AD SLOT ── */
.ad-slot { max-width: 1100px; margin: 40px auto; padding: 0 24px; text-align: center; }
.ad-inner { min-height: 90px; background: var(--bg2); border: 1px dashed var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: var(--fs-small); color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .theory-demo { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .color-info-panel { grid-template-columns: 1fr; }
  .shade-cards { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  :root { --fs-h1: 36px; --fs-h2: 28px; --fs-body: 18px; }
}
@media (max-width: 560px) {
  nav { padding: 0 16px; }
  .content-section { padding: 44px 16px; }
  .page-hero { padding: 36px 16px 32px; }
  .hero-stats { gap: 16px; }
  .input-row { flex-direction: column; align-items: stretch; }
  .color-input-wrap { min-width: unset; }
  .shade-cards { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 7px; }
  :root { --fs-h1: 30px; --fs-h2: 24px; }
}