/* ═══════════════════════════════════════════════════════════
   Client Stories Page — Custom Styles
   Glass card layout with accent colors per client
   ═══════════════════════════════════════════════════════════ */

/* ── Floating Dot Nav ── */
.cs-subnav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 100;
}
.cs-subnav a {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  text-indent: -9999px;
  overflow: hidden;
  transition: all .25s;
  position: relative;
}
.cs-subnav a:hover,
.cs-subnav a.active {
  background: var(--accent, #a855f7);
  border-color: var(--accent, #a855f7);
  box-shadow: 0 0 12px rgba(168,85,247,.5);
  transform: scale(1.3);
}
.cs-subnav a:hover::after {
  content: attr(title);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 12px;
  color: var(--text, #e0e0e0);
  background: var(--card-bg, #1a1a2e);
  border: 1px solid var(--border, #333);
  padding: 4px 10px;
  border-radius: 6px;
  text-indent: 0;
  pointer-events: none;
}

/* ── Stats Row ── */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Story Cards ── */
.cs-story {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border, #333);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.cs-story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
  background: var(--story-accent, #a855f7);
  opacity: .6;
}
.cs-story:hover {
  border-color: var(--story-accent, rgba(168,85,247,.4));
  box-shadow: 0 8px 40px rgba(0,0,0,.3), 0 0 40px color-mix(in srgb, var(--story-accent, #a855f7) 10%, transparent);
}

/* Accent colors per client */
.cs-story[data-accent="amber"]  { --story-accent: #f59e0b; }
.cs-story[data-accent="green"]  { --story-accent: #22c55e; }
.cs-story[data-accent="violet"] { --story-accent: #8b5cf6; }
.cs-story[data-accent="blue"]   { --story-accent: #3b82f6; }
.cs-story[data-accent="pink"]   { --story-accent: #ec4899; }
.cs-story[data-accent="cyan"]   { --story-accent: #06b6d4; }
.cs-story[data-accent="orange"] { --story-accent: #f97316; }
.cs-story[data-accent="rose"]   { --story-accent: #f43f5e; }

.cs-client-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text, #e0e0e0);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.cs-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--story-accent, #a855f7);
  background: color-mix(in srgb, var(--story-accent, #a855f7) 12%, transparent);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.cs-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--story-accent, #a855f7);
  margin: 20px 0 8px;
  opacity: .8;
}

.cs-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  margin: 0 0 4px;
  max-width: 720px;
}

.cs-quote {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--story-accent, #a855f7);
  background: rgba(255,255,255,.02);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
}
.cs-quote strong {
  color: rgba(255,255,255,.85);
  font-style: normal;
}

.cs-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.cs-tech span {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.55);
  transition: all .2s;
}
.cs-tech span:hover {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.15);
}

/* ── Tech Grid ── */
.cs-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  max-width: 800px;
  margin: 24px auto 0;
}
.cs-tech-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border, #333);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  transition: all .2s;
}
.cs-tech-card:hover {
  border-color: var(--accent, rgba(168,85,247,.4));
  background: rgba(255,255,255,.06);
  color: var(--text, #e0e0e0);
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cs-subnav { display: none; }
  .cs-story { padding: 28px 20px; }
  .cs-client-name { font-size: 1.4rem; }
  .cs-stats { grid-template-columns: repeat(2, 1fr); }
  .cs-tech-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .cs-stats { grid-template-columns: 1fr; }
  .cs-tech-grid { grid-template-columns: repeat(2, 1fr); }
}
