/* ══════════════════════════════════════════
FLORET CASE STUDY — Additional styles
Inherits tokens from style.css + casestudy.css
══════════════════════════════════════════ */

/* ── Hero accent ──────────────────────── */
.floret-hero {
  background: var(--bg);
  position: relative;
}
.floret-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 480px;
  background: radial-gradient(ellipse 70% 60% at 60% 0%,
    rgba(168,85,247,.1) 0%,
    rgba(236,72,153,.05) 50%,
    transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.floret-hero .cs-hero-inner { position: relative; z-index: 1; }
.floret-hero-title {
  background: linear-gradient(120deg, #fff 40%, var(--accent), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section sub ──────────────────────── */
.floret-section-sub {
  font-size: 17px;
  color: #7070a0;
  line-height: 1.75;
  margin-top: 12px;
  max-width: 720px;
}

/* ── Layer stack ──────────────────────── */
.floret-layer-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 32px;
}
.floret-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 22px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-left: 3px solid var(--layer-color);
  transition: background .25s;
}
.floret-layer:hover { background: rgba(255,255,255,.05); }
.floret-layer-label {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  min-width: 110px;
}
.floret-layer-desc {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

/* ── Token grid ───────────────────────── */
.floret-token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
@media(max-width: 900px) { .floret-token-grid { grid-template-columns: 1fr; } }

.floret-token-tier {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px 24px;
  transition: border-color .3s;
}
.floret-token-tier:hover { border-color: rgba(168,85,247,.25); }

.floret-tier-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.2);
  border-radius: 100px;
  padding: 3px 12px;
  margin-bottom: 12px;
}
.floret-tier-badge--2 { color: #c084fc; background: rgba(192,132,252,.08); border-color: rgba(192,132,252,.2); }
.floret-tier-badge--3 { color: #e879f9; background: rgba(232,121,249,.08); border-color: rgba(232,121,249,.2); }

.floret-tier-title {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.floret-tier-desc {
  font-size: 14px;
  color: #7878a0;
  line-height: 1.7;
  margin-bottom: 18px;
}
.floret-token-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.floret-chip {
  font-size: 11px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid;
  letter-spacing: .02em;
}

/* ── Variable categories ──────────────── */
.floret-var-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media(max-width: 900px) { .floret-var-categories { grid-template-columns: 1fr 1fr; } }
@media(max-width: 560px) { .floret-var-categories { grid-template-columns: 1fr; } }

.floret-var-cat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 18px;
  transition: border-color .3s, transform .3s;
}
.floret-var-cat:hover { border-color: rgba(168,85,247,.22); transform: translateY(-3px); }
.floret-var-icon { font-size: 22px; flex-shrink: 0; }
.floret-var-cat h4 {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.floret-var-cat p { font-size: 13px; color: #7070a0; line-height: 1.65; }

/* ── Auto Layout rules ────────────────── */
.floret-al-rules {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 28px;
}
.floret-al-rule {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left .25s;
  cursor: default;
}
.floret-al-rule:first-child { padding-top: 0; }
.floret-al-rule:last-child { border-bottom: none; }
.floret-al-rule:hover { padding-left: 8px; }
.floret-al-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  font-family: "Dela Gothic One", sans-serif;
}
.floret-al-rule h4 {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.floret-al-rule p { font-size: 14px; color: #8080a0; line-height: 1.7; }

/* ── Component categories ─────────────── */
.floret-comp-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.floret-comp-cat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 24px 26px;
  transition: border-color .3s;
}
.floret-comp-cat:hover { border-color: rgba(168,85,247,.25); }
.floret-comp-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.floret-comp-cat-label {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.floret-comp-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.2);
  border-radius: 100px;
  padding: 2px 12px;
}
.floret-comp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.floret-comp-tags span {
  font-size: 12px;
  font-weight: 600;
  color: #7878a0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px;
  padding: 4px 12px;
  transition: color .2s, border-color .2s;
}
.floret-comp-cat:hover .floret-comp-tags span {
  color: #a0a0c0;
  border-color: rgba(255,255,255,.1);
}

/* ── State matrix ─────────────────────── */
.floret-state-matrix {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  margin-top: 8px;
}
.floret-state-matrix-header,
.floret-state-row {
  display: grid;
  grid-template-columns: 120px repeat(7, 1fr);
  align-items: center;
}
.floret-state-matrix-header {
  background: rgba(168,85,247,.08);
  border-bottom: 1px solid var(--border);
  padding: 10px 18px;
}
.floret-state-matrix-header span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.floret-state-matrix-header span:first-child { text-align: left; }
.floret-state-row {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.floret-state-row:last-child { border-bottom: none; }
.floret-state-row:hover { background: rgba(255,255,255,.025); }
.floret-state-comp {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.floret-state-dot {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.floret-state-yes { color: #4ade80; }
.floret-state-no  { color: #3a3a50; }

/* ── Consistency cards ────────────────── */
.floret-consistency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media(max-width: 700px) { .floret-consistency-grid { grid-template-columns: 1fr; } }

.floret-consistency-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px 26px;
  transition: border-color .3s, transform .3s;
}
.floret-consistency-card:hover { transform: translateY(-4px); }
.floret-cc--purple:hover { border-color: rgba(168,85,247,.35); }
.floret-cc--pink:hover   { border-color: rgba(236,72,153,.35); }
.floret-cc--gold:hover   { border-color: rgba(250,204,21,.35); }
.floret-cc--green:hover  { border-color: rgba(74,222,128,.35); }

.floret-cc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.floret-cc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.floret-cc-name {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.floret-consistency-card > p {
  font-size: 14px;
  color: #7878a0;
  line-height: 1.7;
  margin-bottom: 18px;
}
.floret-cc-uses {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.floret-cc-uses span {
  font-size: 11px;
  font-weight: 600;
  color: #6868a0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px;
  padding: 3px 10px;
}

/* ── Learnings ────────────────────────── */
.floret-learnings {
  margin-top: 72px;
  padding-top: 52px;
  border-top: 1px solid var(--border);
}
.floret-learnings-title {
  font-family: "Dela Gothic One", sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 32px;
}
.floret-learnings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media(max-width: 700px) { .floret-learnings-grid { grid-template-columns: 1fr; } }
.floret-learning-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.floret-learning-num {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 2px;
}
.floret-learning-item p {
  font-size: 15px !important;
  color: #8080a0 !important;
  line-height: 1.75 !important;
  margin: 0 !important;
}
