/* Site butonları — home-hero__badge-wrap kapsayıcı tasarımı (birebir) */

:root {
  --btn-glow: rgba(92, 176, 255, 0.72);
  --btn-glow-soft: rgba(92, 176, 255, 0.22);
  --btn-shell-border: rgba(126, 196, 255, 0.42);
  --btn-shell-shadow:
    0 0 24px rgba(26, 120, 190, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  --btn-shell-pad: 0.35rem;
  --btn-shell-glow-w: clamp(2.75rem, 7vw, 4.25rem);
  --btn-shell-glow-h: clamp(1rem, 2.5vw, 1.45rem);
  --btn-face-bg: rgba(4, 12, 20, 0.52);
  --clip-card-shape-fold: polygon(
    2.5% 0%,
    38% 0%,
    41.5% 1%,
    58.5% 1%,
    62% 0%,
    97.5% 0%,
    100% 1.5%,
    100% 29%,
    99.35% 32%,
    99.35% 68%,
    100% 71%,
    100% 98.5%,
    97.5% 100%,
    62% 100%,
    58.5% 99%,
    41.5% 99%,
    38% 100%,
    2.5% 100%,
    0% 98.5%,
    0% 71%,
    0.65% 68%,
    0.65% 32%,
    0% 29%,
    0% 1.5%
  );
}

/* badge-wrap — glow çerçevesi (clip dışında) */
.btn-wrap {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  max-width: 100%;
  padding: 0 var(--btn-shell-pad) var(--btn-shell-pad) 0;
}

.btn-wrap::before,
.btn-wrap::after {
  content: '';
  position: absolute;
  pointer-events: none;
  background: var(--btn-glow);
  box-shadow: 0 0 14px var(--btn-glow-soft);
}

.btn-wrap::before {
  right: 0;
  bottom: 0;
  width: var(--btn-shell-glow-w);
  height: 1px;
}

.btn-wrap::after {
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
}

.btn-corner {
  position: absolute;
  right: var(--btn-shell-glow-w);
  bottom: 0;
  width: 1px;
  height: var(--btn-shell-glow-h);
  pointer-events: none;
  background: linear-gradient(0deg, var(--btn-glow), transparent);
  transform-origin: bottom right;
  transform: rotate(-38deg);
  box-shadow: 0 0 12px var(--btn-glow-soft);
}

/* badge — buton yüzeyi */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.65rem;
  font: 600 0.875rem/1 var(--font, 'Inter', system-ui, sans-serif);
  letter-spacing: 0.03em;
  color: #fff;
  border: 1px solid var(--btn-shell-border);
  border-radius: 0;
  background: var(--btn-face-bg);
  box-shadow: var(--btn-shell-shadow);
  clip-path: var(--clip-card-shape-fold);
  -webkit-clip-path: var(--clip-card-shape-fold);
  cursor: pointer;
  overflow: visible;
  isolation: isolate;
  text-decoration: none;
  white-space: nowrap;
  appearance: none;
  font-family: inherit;
  z-index: 1;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--brand-light, #1a5278);
  outline-offset: 4px;
}

.btn-wrap:hover .btn,
.btn:hover {
  transform: translateY(-2px);
}

.btn-wrap:active .btn,
.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.btn-brand,
.btn-lime,
.btn-dark {
  --btn-face-bg: rgba(17, 56, 89, 0.92);
  color: #fff;
}

.btn-brand:hover,
.btn-lime:hover,
.btn-dark:hover {
  --btn-face-bg: rgba(26, 82, 120, 0.96);
}

.btn-brand:active,
.btn-lime:active,
.btn-dark:active {
  --btn-face-bg: rgba(13, 45, 71, 0.98);
}

.btn-ghost,
.btn-outline-blue {
  --btn-face-bg: rgba(255, 255, 255, 0.96);
  color: var(--text, #142235);
}

.btn-ghost:hover,
.btn-outline-blue:hover {
  --btn-face-bg: rgba(255, 255, 255, 1);
  color: var(--brand, #113859);
}

.btn-outline-blue:hover {
  --btn-face-bg: rgba(17, 56, 89, 0.92);
  color: #fff;
}

.btn-light {
  --btn-face-bg: rgba(255, 255, 255, 0.96);
  color: var(--brand, #113859);
}

.btn-light:hover {
  --btn-face-bg: rgba(255, 255, 255, 1);
}

.btn-ghost--light {
  --btn-face-bg: rgba(4, 12, 20, 0.52);
  color: #fff;
}

.btn-ghost--light:hover {
  --btn-face-bg: rgba(255, 255, 255, 0.96);
  color: var(--brand, #113859);
}

/* Feed / duyuru CTA — opak yüzey; tüm zeminlerde aynı renk */
.btn-feed-cta {
  --btn-face-bg: #081c2e;
  color: #fff;
}

.btn-feed-cta:hover {
  --btn-face-bg: rgba(255, 255, 255, 0.96);
  color: var(--brand, #113859);
}

.btn-feed-cta:active {
  --btn-face-bg: #061018;
  color: #fff;
}

.btn-wrap:has(.btn-feed-cta) {
  --btn-glow: rgba(92, 176, 255, 0.72);
  --btn-glow-soft: rgba(92, 176, 255, 0.22);
  --btn-shell-border: rgba(126, 196, 255, 0.42);
}

.btn-wrap:has(.btn-feed-cta) .btn {
  box-shadow: var(--btn-shell-shadow);
}

.btn-icon-only {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0;
  flex-shrink: 0;
}

.btn-wrap:has(.btn-icon-only) {
  --btn-shell-glow-w: clamp(1.75rem, 4vw, 2.5rem);
  --btn-shell-glow-h: clamp(0.75rem, 2vw, 1rem);
}

.home-catalog .btn-wrap {
  width: 100%;
  margin-top: 0.35rem;
}

.home-catalog .btn-wrap .btn {
  width: 100%;
}

.home-reach .btn-wrap,
#iletisim .btn-wrap {
  display: flex;
  width: 100%;
}

.home-reach .btn-wrap .btn,
#iletisim .btn-wrap .btn {
  width: 100%;
}

/* btn-light — koyu zemin (footer, hero solid, şeffaf header CTA, hizmetler accordion) */
.footer-cta .btn-wrap:has(.footer-cta__btn),
.cap-acc__cta .btn-wrap:has(.cap-acc__btn),
.home-hero__actions .btn-wrap:has(.home-hero__btn--solid),
.site-nav:not(.is-scrolled) .btn-wrap:has(.site-nav__btn--cta) {
  --btn-glow: rgba(255, 255, 255, 0.88);
  --btn-glow-soft: rgba(255, 255, 255, 0.28);
  --btn-shell-border: rgba(255, 255, 255, 0.55);
}

.footer-cta .btn-wrap:has(.footer-cta__btn) .btn,
.cap-acc__cta .btn-wrap:has(.cap-acc__btn) .btn,
.home-hero__actions .btn-wrap:has(.home-hero__btn--solid) .btn,
.site-nav:not(.is-scrolled) .btn-wrap:has(.site-nav__btn--cta) .btn {
  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.home-hero__actions .btn-wrap:has(.btn-ghost-glow),
.btn-wrap:has(.btn-ghost-glow) {
  --btn-glow: rgba(92, 176, 255, 0.72);
  --btn-glow-soft: rgba(92, 176, 255, 0.22);
  --btn-shell-border: rgba(126, 196, 255, 0.42);
}

.home-hero__actions .btn-wrap:has(.btn-ghost-glow) .btn,
.btn-wrap:has(.btn-ghost-glow) .btn {
  box-shadow: var(--btn-shell-shadow);
}

.btn i {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}

html.is-low-power .btn-wrap::before,
html.is-low-power .btn-wrap::after,
html.is-low-power .btn-corner {
  box-shadow: none;
}

html.is-low-power .btn {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
