/* =========================================================
   COMPONENTS — header, menü, linkler, dalgalar, kartlar, footer
   ========================================================= */

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--c-white);
  transition: background-color .35s var(--ease), height .35s var(--ease), box-shadow .35s var(--ease);
}

.header.is-scrolled {
  --header-h: 80px;
  --header-offset: 0px;
  background: rgba(27, 25, 22, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}

.header__inner {
  height: 100%;
  padding-top: var(--header-offset, 30px);
  transition: padding .35s var(--ease);
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__logo img {
  width: 165px;
  transition: width .35s var(--ease);
}

.header.is-scrolled .header__logo img { width: 92px; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* ---------- Nav ---------- */
.nav { margin-left: auto; }

.nav__list {
  display: flex;
  gap: 34px;
}

.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding-block: 6px;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}

.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Dil seçimi ---------- */
.lang { display: flex; gap: 8px; margin-left: 60px; }

.lang__btn {
  font-size: 15px;
  opacity: .65;
  transition: opacity .2s;
}

.lang__btn.is-active,
.lang__btn:hover { opacity: 1; }

/* ---------- Hamburger ---------- */
.burger {
  position: relative;
  z-index: 70;
  width: 46px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 4px;
}

.burger span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .2s;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Drawer (yan menü) ---------- */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 60;
  width: min(420px, 100%);
  padding: calc(var(--header-h) + 30px) 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--c-dark);
  color: var(--c-white);
  transform: translateX(100%);
  transition: transform .5s var(--ease);
}

.drawer.is-open { transform: none; }

.drawer__nav { display: flex; flex-direction: column; gap: 6px; }

.drawer__link {
  font-size: 30px;
  font-weight: 500;
  padding-block: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: color .2s, padding-left .3s var(--ease);
}

.drawer__link:hover { color: var(--c-gold-light); padding-left: 8px; }

.drawer__foot { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .5; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}

.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- Bölüm başlığı ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

/* ---------- Linkler ---------- */
.link-spaced {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .42em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .25s;
}

.link-spaced:hover { color: var(--c-gold-dark); }
.link-spaced--lg { font-size: 18px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
}

.link-arrow::after {
  content: "";
  width: 22px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M0 7h19M13 1l6 6-6 6' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M0 7h19M13 1l6 6-6 6' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .3s var(--ease);
}

.link-arrow:hover { color: var(--c-gold-dark); }
.link-arrow:hover::after { transform: translateX(6px); }

/* ---------- Dalga şekilleri ---------- */
.wave {
  width: 100%;
  height: clamp(50px, 7vw, 120px);
  fill: currentColor;
}

/* ---------- Kart (Neden Alaçatı) ---------- */
/* Kart görselleri metinleri de içerir; başlıklar ekran okuyucular için .sr-only */
.card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-card);
  aspect-ratio: 621 / 766;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.card:hover .card__img { transform: scale(1.04); }

/* ---------- Ürün ---------- */
.product__link { display: block; }

.product__img {
  width: 100%;
  aspect-ratio: 560 / 395;
  object-fit: contain;
  /* Kaynak görsellerdeki hafif gri zemini beyaza çeker */
  filter: brightness(1.02) contrast(1.06);
  transition: transform .5s var(--ease);
}

.product__link:hover .product__img { transform: translateY(-8px) rotate(-2deg); }

.product__name {
  margin-top: 6px;
  font-size: 21px;
  font-weight: 300;
  line-height: 1.05;
  color: var(--c-ink);
}

.product__desc { margin-top: 6px; font-size: 11px; color: var(--c-muted); }

/* ---------- Kelime döndürücü (rotator.js) ---------- */
/* Kelimeler üst üste durur; aktif olan aşağıdan gelir, eskisi yukarı çıkar.
   Genişlik en uzun kelimeye sabittir, kelimeler sağa yaslanır; böylece
   arkasından gelen metnin konumu hiç değişmez. */
.rotator {
  position: relative;
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
}

.rotator__word {
  grid-area: 1 / 1;
  justify-self: end;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}

.rotator__word.is-active { opacity: 1; transform: none; }
.rotator__word.is-leaving { opacity: 0; transform: translateY(-100%); }

/* ---------- Yıldızlar ---------- */
.stars {
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--c-orange);
}

.stars__off { color: #e9dccb; }

/* ---------- Footer ---------- */
.footer {
  background: var(--c-dark);
  color: rgba(255, 255, 255, .75);
  padding-block: 64px 28px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.footer__logo { width: 130px; }

.footer__about {
  max-width: 280px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
}

.footer__title {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold-light);
}

.footer__links { display: grid; gap: 10px; font-size: 14px; }

.footer__links a { transition: color .2s; }
.footer__links a:hover { color: var(--c-white); }

/* Ayırıcı çizgi container'ın iç kenarlarıyla hizalı (padding dahil değil) */
.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

.footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgba(255, 255, 255, .1);
}

/* Ajans imzası: alt şeridin sağında küçük logo */
.footer__credit { opacity: .4; transition: opacity .25s; }
.footer__credit:hover { opacity: .9; }
.footer__credit img { height: 17px; width: auto; }

/* ---------- Sosyal medya ---------- */
.social { display: flex; gap: 10px; margin-top: 22px; }

.social__link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  transition: background .25s, border-color .25s, color .25s;
}

.social__link svg { width: 18px; height: 18px; fill: currentColor; }

.social__link:hover {
  background: var(--c-gold-light);
  border-color: var(--c-gold-light);
  color: var(--c-dark);
}

/* ---------- Buton ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}

.btn--dark { background: var(--c-dark); color: var(--c-white); }
.btn--dark:hover { background: var(--c-gold-dark); }
.btn--outline { border-color: rgba(0, 0, 0, .25); color: var(--c-ink); }
.btn--outline:hover { border-color: var(--c-ink); }

.footer__link-btn { font-size: 14px; text-align: left; transition: color .2s; }
.footer__link-btn:hover { color: var(--c-white); }

/* ---------- Çerez onayı (cookie-consent.js) ---------- */
.cookie {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 26px 26px 22px;
  border-radius: 20px;
  background: var(--c-white);
  box-shadow: 0 24px 60px -12px rgba(40, 25, 10, .35);
  color: var(--c-text);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.cookie.is-visible { opacity: 1; transform: none; }

.cookie__title {
  font-size: 19px;
  font-weight: 600;
  color: var(--c-ink);
}

.cookie__title::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--grad-gold);
  vertical-align: .1em;
}

.cookie__text { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--c-muted); }
.cookie__text a { color: var(--c-gold-dark); text-decoration: underline; }

.cookie__prefs { display: grid; gap: 6px; margin-top: 18px; }

.cookie__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--c-peach);
  cursor: pointer;
}

.cookie__option strong { display: block; font-size: 14px; font-weight: 600; }
.cookie__option small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--c-muted); }

.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.cookie__toggle {
  margin-left: auto;
  font-size: 13px;
  text-decoration: underline;
  color: var(--c-muted);
}

.cookie__toggle:hover { color: var(--c-ink); }

/* Açma/kapama anahtarı */
.switch {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 24px;
  background: #d9cdbd;
  cursor: pointer;
  transition: background .25s;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .25s var(--ease);
}

.switch:checked { background: var(--c-gold-dark); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .lang { margin-left: 0; }
}

@media (max-width: 768px) {
  .header__logo img { width: 110px; }
  .header.is-scrolled .header__logo img { width: 72px; }
  .burger { width: 36px; height: 26px; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .section-head { margin-bottom: 24px; }
  .link-spaced { font-size: 12px; letter-spacing: .3em; }
  .link-arrow { font-size: 14px; letter-spacing: .3em; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { justify-content: center; text-align: center; }

  .cookie { right: 16px; bottom: 16px; padding: 22px 20px 18px; }
  .cookie__actions .btn { flex: 1 1 auto; }
  .cookie__toggle { margin: 4px auto 0; }
}
