/**
 * DomainHost — Kuponlar sayfası
 */

.cp-hero {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 1.25rem;
  background:
    radial-gradient(700px 280px at 90% -10%, rgba(15, 118, 110, 0.14), transparent 60%),
    radial-gradient(500px 220px at 10% 0%, rgba(14, 165, 233, 0.1), transparent 55%),
    linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

.cp-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem !important;
  font-size: 0.85rem;
}

.cp-breadcrumb a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 650;
}

.cp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 0.55rem;
}

.cp-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.15;
}

.cp-hero p {
  margin: 0;
  max-width: 40rem;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
}

.cp-hero__grid {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.5rem;
  align-items: end;
}

.cp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.cp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 0.65rem;
}

.cp-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  text-align: center;
  min-width: 96px;
}

.cp-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f766e;
  letter-spacing: -0.02em;
}

.cp-stat span {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 650;
}

.cp-section {
  padding: 1.5rem 0 3rem;
}

.cp-toolbar {
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.cp-search {
  position: relative;
}

.cp-search i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.cp-search .form-control {
  padding-left: 2.4rem !important;
  min-height: 46px;
  border-radius: 12px !important;
}

.cp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cp-chip {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  min-height: 40px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cp-chip em {
  font-style: normal;
  opacity: 0.65;
  margin-left: 0.25rem;
}

.cp-chip:hover,
.cp-chip.is-active {
  background: #ecfdf5;
  border-color: #99f6e4;
  color: #0f766e;
}

.cp-sort .form-select {
  min-height: 46px;
  min-width: 150px;
  border-radius: 12px !important;
}

.cp-live {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 1rem;
}

.cp-live strong {
  color: #0f766e;
}

.cp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  overflow: hidden;
}

.cp-card:hover {
  border-color: #99f6e4;
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.1);
  transform: translateY(-2px);
}

.cp-card--featured {
  border-color: #5eead4;
  background: linear-gradient(165deg, #f0fdfa 0%, #fff 45%);
}

.cp-card__ribbon {
  position: absolute;
  top: 0.85rem;
  right: -0.2rem;
  background: #0f766e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px 0 0 999px;
}

.cp-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding-right: 4.5rem;
}

.cp-card--featured .cp-card__top {
  padding-right: 5.5rem;
}

.cp-card__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.cp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  flex: 0 0 auto;
}

.cp-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.cp-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 650;
}

.cp-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
}

.cp-badge {
  flex: 0 0 auto;
  background: #0f766e;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  line-height: 1.2;
  text-align: center;
  max-width: 7.5rem;
}

.cp-card__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.cp-code {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 0.4rem 0.45rem 0.4rem 0.75rem;
}

.cp-code code {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #0f172a;
  display: flex;
  align-items: center;
  background: transparent;
  padding: 0;
}

.cp-copy {
  appearance: none;
  border: 0;
  background: #0f766e;
  color: #fff;
  font-weight: 750;
  font-size: 0.82rem;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  min-height: 40px;
  transition: background 0.15s ease;
}

.cp-copy:hover {
  background: #0d9488;
}

.cp-copy.is-copied {
  background: #059669;
}

.cp-card__scope {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.45;
}

.cp-card__scope i {
  color: #0f766e;
  margin-top: 0.15rem;
}

.cp-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.cp-btn {
  min-height: 40px !important;
  padding: 0.45rem 0.85rem !important;
  font-size: 0.85rem !important;
}

.cp-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 650;
  padding-top: 0.35rem;
  border-top: 1px solid #f1f5f9;
}

.cp-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
  border: 1px dashed #e2e8f0;
  border-radius: 16px;
  background: #fff;
  margin-top: 0.5rem;
}

.cp-empty i {
  font-size: 1.5rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.cp-howto {
  margin-top: 2.25rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.cp-howto h2 {
  margin: 0 0 1.1rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.cp-howto__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.cp-step {
  padding: 1rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.cp-step__n {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ecfdf5;
  color: #0f766e;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
}

.cp-step h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.cp-step p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

.cp-howto__note {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
}

.cp-howto__note a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.cp-howto__note a:hover {
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .cp-hero__grid {
    grid-template-columns: 1fr;
  }

  .cp-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .cp-toolbar {
    grid-template-columns: 1fr;
  }

  .cp-howto__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .cp-grid {
    grid-template-columns: 1fr;
  }

  .cp-card__top {
    padding-right: 0;
    flex-wrap: wrap;
  }

  .cp-card--featured .cp-card__top {
    padding-right: 0;
  }

  .cp-card__ribbon {
    position: static;
    align-self: flex-start;
    border-radius: 999px;
    margin-bottom: -0.25rem;
  }

  .cp-code {
    flex-direction: column;
  }

  .cp-copy {
    width: 100%;
    justify-content: center;
  }
}

[data-theme="dark"] .cp-hero {
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  border-color: #1e293b;
}

[data-theme="dark"] .cp-hero h1,
[data-theme="dark"] .cp-card__title,
[data-theme="dark"] .cp-howto h2,
[data-theme="dark"] .cp-step h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .cp-stat,
[data-theme="dark"] .cp-card,
[data-theme="dark"] .cp-howto,
[data-theme="dark"] .cp-step,
[data-theme="dark"] .cp-chip,
[data-theme="dark"] .cp-empty {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

[data-theme="dark"] .cp-card--featured {
  background: linear-gradient(165deg, rgba(15, 118, 110, 0.2) 0%, #0f172a 50%);
  border-color: #0d9488;
}

[data-theme="dark"] .cp-code {
  background: #0b1220;
  border-color: #334155;
}

[data-theme="dark"] .cp-code code {
  color: #e2e8f0;
}

[data-theme="dark"] .cp-tag {
  background: #1e293b;
  color: #94a3b8;
}
