/* ============================================================
   CASE STUDIES – cs.css
   Sdílí CSS proměnné z ../styles.css
   ============================================================ */

/* ── Obecné ─────────────────────────────────────────────────── */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-3);
  font-size: .9rem;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color .2s;
}
.cs-back:hover { color: var(--purple-l); }

.cs-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
  font-size: .85rem;
  color: var(--text-3);
  flex-wrap: wrap;
}
.cs-breadcrumb a { color: var(--text-3); text-decoration: none; transition: color .2s; }
.cs-breadcrumb a:hover { color: var(--purple-l); }
.cs-breadcrumb span:last-child { color: var(--text-2); }

/* ── OVERVIEW HERO ──────────────────────────────────────────── */
.cs-hero {
  padding: 10rem 0 5rem;
  text-align: center;
}
.cs-hero .section-label { margin-bottom: 1rem; }
.cs-hero__title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 40%, var(--purple-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.2rem;
}
.cs-hero__sub {
  color: var(--text-2);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── GRID ────────────────────────────────────────────────────── */
.cs-grid-section { padding: 4rem 0 8rem; }
.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

/* ── CARD ────────────────────────────────────────────────────── */
.cs-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
  cursor: pointer;
}
.cs-card:hover { border-color: rgba(124,58,237,.4); }

.cs-card__top {
  padding: 2.5rem 2rem 2rem;
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cs-card__top--dgs {
  background: linear-gradient(135deg, #1a0533 0%, #3b0764 50%, #1e1b4b 100%);
}
.cs-card__top--vinum {
  background: linear-gradient(135deg, #1a0a00 0%, #4a1900 50%, #2d1b00 100%);
}

.cs-card__cat {
  display: inline-block;
  padding: .3rem .9rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  width: fit-content;
}

.cs-card__metrics {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.cs-metric__val {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.cs-metric__label {
  display: block;
  font-size: .72rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .25rem;
}

.cs-card__body { padding: 1.8rem 2rem 2rem; }
.cs-card__date { font-size: .8rem; color: var(--text-3); display: block; margin-bottom: .6rem; }
.cs-card__title { font-size: 1.4rem; font-weight: 700; margin-bottom: .3rem; color: var(--text-1); }
.cs-card__sub { font-size: .9rem; color: var(--purple-l); font-weight: 500; margin-bottom: 1rem; }
.cs-card__excerpt { color: var(--text-2); font-size: .92rem; line-height: 1.68; margin-bottom: 1.5rem; }
.cs-card__link {
  color: var(--purple-l);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap .2s;
}
.cs-card__link:hover { gap: .6rem; }

/* ── ARTICLE HERO ────────────────────────────────────────────── */
.cs-article-hero {
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.cs-article-hero--dgs {
  background: linear-gradient(160deg, #0d0d14 0%, #1a0533 40%, #0d0d14 100%);
}
.cs-article-hero--vinum {
  background: linear-gradient(160deg, #0d0d14 0%, #2d0d00 40%, #0d0d14 100%);
}
.cs-article-hero--montecarlo {
  background: linear-gradient(160deg, #0d0d14 0%, #0a1a3a 40%, #0d0d14 100%);
}
.cs-article-hero--toolkit {
  background: linear-gradient(160deg, #0d0d14 0%, #0a2a1a 40%, #0d0d14 100%);
}
.cs-article-hero--taxassist {
  background: linear-gradient(160deg, #0d0d14 0%, #1a1500 40%, #0d0d14 100%);
}
.cs-article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(124,58,237,.12) 0%, transparent 70%);
  pointer-events: none;
}

.cs-article-hero .cs-card__cat { margin-bottom: 1.2rem; }
.cs-article-hero__title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  max-width: 720px;
  margin-bottom: .6rem;
}
.cs-article-hero__client {
  font-size: 1rem;
  color: var(--purple-l);
  font-weight: 600;
  margin-bottom: .4rem;
}

/* ── STATS ROW ───────────────────────────────────────────────── */
.cs-stats-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.cs-stat {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.cs-stat__val {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.cs-stat__label {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .07em;
  max-width: 120px;
}

/* ── ARTICLE BODY ────────────────────────────────────────────── */
.cs-article { padding: 5rem 0; }
.cs-article__inner { max-width: 760px; margin: 0 auto; }

.cs-section { margin-bottom: 3.5rem; }
.cs-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-1);
}
.cs-section p { color: var(--text-2); line-height: 1.75; margin-bottom: .8rem; }
.cs-section strong { color: var(--text-1); }

.cs-list {
  list-style: none;
  padding: 0;
  margin: .8rem 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.cs-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--text-2);
  line-height: 1.65;
}
.cs-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple-l);
  font-weight: 700;
}
.cs-list--future li::before { content: '◦'; }

/* Tech stack */
.cs-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0 1.5rem;
}
.cs-tech {
  padding: .35rem .9rem;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--purple-l);
}

/* Pillars */
.cs-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.cs-pillar {
  display: flex;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  align-items: flex-start;
  transition: border-color .25s;
}
.cs-pillar:hover { border-color: rgba(124,58,237,.3); }
.cs-pillar__icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; margin-top: .1rem; }
.cs-pillar h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: var(--text-1); }
.cs-pillar p { color: var(--text-2); font-size: .9rem; line-height: 1.65; margin: 0; }

/* Results */
.cs-results {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin: 1rem 0;
}
.cs-result {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: .9rem 1.2rem;
  background: rgba(124,58,237,.06);
  border-left: 3px solid var(--purple-l);
  border-radius: 0 10px 10px 0;
  color: var(--text-2);
  font-size: .92rem;
  line-height: 1.6;
}
.cs-result__icon { flex-shrink: 0; }
.cs-result strong { color: var(--text-1); }

/* Quote */
.cs-quote {
  margin: 3rem 0;
  padding: 2rem 2.5rem;
  background: var(--glass);
  border: 1px solid rgba(124,58,237,.3);
  border-left: 4px solid var(--purple-l);
  border-radius: 0 16px 16px 0;
  position: relative;
}
.cs-quote::before {
  content: '"';
  position: absolute;
  top: -.4rem;
  left: 1.5rem;
  font-size: 5rem;
  font-weight: 900;
  color: var(--purple-l);
  opacity: .25;
  line-height: 1;
  pointer-events: none;
}
.cs-quote p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-1);
  line-height: 1.7;
  margin-bottom: .8rem;
}
.cs-quote cite {
  font-size: .85rem;
  color: var(--purple-l);
  font-style: normal;
  font-weight: 600;
}

/* ── CTA SECTION ─────────────────────────────────────────────── */
.cs-cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(124,58,237,.08) 0%, transparent 60%);
  border-top: 1px solid var(--border);
}
.cs-cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.cs-cta-inner .section-label { margin-bottom: .8rem; }
.cs-cta-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-1);
}
.cs-cta-inner p { color: var(--text-2); line-height: 1.7; margin-bottom: 2rem; }
.cs-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn--outline {
  padding: .85rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-2);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn--outline:hover { border-color: var(--purple-l); color: var(--purple-l); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cs-hero { padding: 8rem 0 4rem; }
  .cs-grid { grid-template-columns: 1fr; }
  .cs-stats-row { gap: 1.5rem; }
  .cs-stat__val { font-size: 1.7rem; }
  .cs-article-hero { padding: 8rem 0 3.5rem; }
  .cs-article-hero__title { font-size: 1.9rem; }
  .cs-pillar { flex-direction: column; gap: .8rem; }
  .cs-quote { padding: 1.5rem 1.5rem; }
}

/* ── DISCLAIMER ──────────────────────────────────────────────── */
.disclaimer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.disclaimer__box {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.2rem 1.6rem;
  background: rgba(255,200,0,.05);
  border: 1px solid rgba(255,200,0,.2);
  border-radius: 12px;
  color: var(--text-3);
  font-size: .85rem;
  line-height: 1.65;
}

.disclaimer__label { color: var(--text-2); }
