/* ==========================================================================
   Çözümler — page styles
   Scoped under .sol-* (page-only classes). Core components (.filters,
   .case-grid, .case-card, .client-list, .demo-note, .chip--demo) are only
   adjusted inside these scopes.
   ========================================================================== */

/* ---------- Hero ---------- */
.sol-hero__lead { max-width: 44ch; color: var(--ink-2); }
.sol-hero__note { margin-top: clamp(24px, 2.6vw, 36px); max-width: 58ch; }
.sol-nowrap { white-space: nowrap; }

/* ---------- Filter bar: group label on the left, chips on the right ---------- */
.sol-filter { border-top: 1px solid var(--line-strong); }
.sol-filter__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 12px;
  align-items: baseline;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.sol-filter__row > * { grid-column: 1 / -1; }
.sol-filter__label {
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.3;
}
.sol-filter__status {
  padding-top: 14px;
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sol-filter .filter-btn { white-space: nowrap; }
.sol-filter .filter-btn sup { font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  .sol-filter__label { grid-column: 1 / span 3; }
  .sol-filter__row .filters { grid-column: 4 / -1; }
}

/* When a group needs two lines, split it evenly (4 + 3) instead of leaving
   one chip alone on the second line: chips become inline atoms in a
   balanced line box. font-size: 0 removes the whitespace between them. */
@media (min-width: 700px) {
  .sol-filter__row .filters {
    display: block;
    font-size: 0;
    line-height: 0;
    text-wrap: balance;
    margin-bottom: -8px;
  }
  .sol-filter__row .filter-btn {
    display: inline-block;
    margin: 0 8px 8px 0;
  }
}

/* Phones: each group becomes one swipeable rail that runs to the screen edge */
@media (max-width: 699px) {
  .sol-filter__row { padding-block: 14px; row-gap: 10px; }
  .sol-filter__label { color: var(--muted); }
  .sol-filter__row .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .sol-filter__row .filters::-webkit-scrollbar { display: none; }
  .sol-filter__row .filter-btn { flex: none; }
}

/* ---------- Demo grid ---------- */
.sol-grid { margin-top: clamp(40px, 5vw, 80px); }
/* The core stagger counts every card, hidden or not. Once a filter hides some,
   re-stagger over the visible ones so the second column always sits lower. */
@media (min-width: 760px) {
  .sol-grid.case-grid--offset:has(> .is-filtered-out) > .case-card { margin-top: 0; }
  .sol-grid.case-grid--offset:has(> .is-filtered-out) > .case-card:nth-child(even of .case-card:not(.is-filtered-out)) {
    margin-top: clamp(0px, 8vw, 140px);
  }
}

/* Card foot: the "Konsept demo" tag leads, the hypothetical company and
   platforms follow on the same line. */
.sol-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 8px;
}
.sol-card__foot .case-card__tags { margin-top: 0; }
.sol-card__foot .chip { padding: 5px 11px; font-size: 0.75rem; }
.sol-card:hover .chip--demo { border-color: var(--ink-2); }

/* ---------- Empty state ---------- */
.sol-empty {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}
.sol-empty__mark { flex: none; color: var(--ink); opacity: 0.18; }
.sol-empty__text { display: grid; gap: 10px; max-width: 52ch; }
.sol-empty__title {
  font-family: var(--font-sans);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-wrap: balance;
}
.sol-empty__text p:not(.sol-empty__title) { color: var(--ink-2); }
@media (min-width: 900px) {
  /* Keep the copy on the split grid (column 4), like the filter chips above:
     25% of the container + a quarter gap = start of column 4. The mark sits
     in the label column. */
  .sol-empty {
    position: relative;
    display: block;
    padding-block: clamp(40px, 4.5vw, 64px);
    padding-left: calc(25% + var(--col-gap) / 4);
  }
  .sol-empty__mark { position: absolute; left: clamp(28px, 4vw, 56px); top: clamp(40px, 4.5vw, 64px); }
}
@media (max-width: 699px) {
  /* stack the mark above the copy so the text gets the full width */
  .sol-empty { flex-direction: column; gap: 20px; }
  .sol-empty__mark { --size: 32px !important; }
}

/* ---------- Other solution areas ---------- */
.sol-areas__title { max-width: 30ch; }
.sol-areas__list { margin-top: clamp(48px, 5.5vw, 88px); row-gap: clamp(36px, 4.5vw, 64px); }
.sol-areas .sol-area { gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); --mark: rgba(11, 11, 12, 0.2); }
.sol-areas .sol-area > .label { margin-bottom: 4px; font-size: var(--fs-micro); letter-spacing: 0.02em; }
.sol-areas__note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  margin-top: clamp(56px, 6vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.sol-areas__note p { color: var(--ink-2); font-size: 1.0625rem; }
.sol-areas__note .link--arrow { font-size: var(--fs-small); }

@media (max-width: 639px) {
  .sol-areas__list { row-gap: 32px; }
  .sol-areas .sol-area { padding-top: 16px; }
  .sol-areas__note { margin-top: 48px; }
}
