/* ==================================================
   1. FOOTER ANA YAPISI
================================================== */

#helen-footer {
  --helen-footer-sidebar-boslugu: var(--sidebar-genislik, 258px);

  position: relative;
  z-index: 1;

  width: 100%;
  margin: 65px 0 0;

  color: #aaa1b4;
  background: #09070d;
}

/* Sidebar daralınca footer içeriği sola yaklaşır. */
body:has(#ana-sidebar.sidebar-dar) #helen-footer {
  --helen-footer-sidebar-boslugu: var(--sidebar-dar-genislik, 66px);
}

/* ==================================================
   2. FOOTER ÜST KATMAN
================================================== */

#helen-footer-ust-alani {
  display: grid;
  grid-template-columns:
    minmax(320px, 1fr)
    minmax(270px, 340px);
  align-items: center;
  justify-content: space-between;
  gap: 80px;

  width: 100%;
  min-height: 235px;

  padding: 36px 48px 36px calc(48px + var(--helen-footer-sidebar-boslugu));

  border-top: 1px solid rgba(183, 78, 242, 0.22);
  border-bottom: 1px solid rgba(183, 78, 242, 0.14);

  background:
    radial-gradient(
      circle at 8% 45%,
      rgba(183, 78, 242, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 95% 50%,
      rgba(255, 157, 0, 0.07),
      transparent 28%
    ),
    linear-gradient(130deg, #130a1b 0%, #0e0914 55%, #150e0e 100%);
}

/* ==================================================
   3. HELEN MARKA ALANI
================================================== */

#helen-footer-marka-alani {
  width: 100%;
  max-width: 430px;
}

#helen-footer-logo-baglantisi {
  display: inline-flex;
  align-items: center;
  gap: 13px;

  color: #ffffff;
  text-decoration: none;
}

#helen-footer-logosu {
  display: block;
  flex-shrink: 0;

  width: 55px;
  height: 55px;

  border-radius: 50%;
  object-fit: cover;

  filter: drop-shadow(0 0 10px rgba(183, 78, 242, 0.5));
}

#helen-footer-marka-yazilari {
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 4px;

  padding-left: 14px;
}

#helen-footer-marka-yazilari::before {
  content: "";

  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;

  width: 2px;

  border-radius: 999px;
  background: linear-gradient(180deg, #ff9d00, #b73cff);

  box-shadow:
    0 0 7px rgba(255, 157, 0, 0.3),
    0 0 11px rgba(183, 60, 255, 0.55);
}

#helen-footer-marka-yazilari strong {
  color: #ffffff;

  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 2px;
}

#helen-footer-marka-yazilari small {
  color: #c8b4d4;

  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.6px;
}

#helen-footer-aciklamasi {
  max-width: 390px;
  margin: 17px 0 0;

  color: #92879c;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.65;
}

/* ==================================================
   4. SORUMLU OYUN
================================================== */

#helen-footer-sorumlu-oyun-baglantisi {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-top: 18px;
  padding-left: 12px;

  color: #d9d1de;
  text-decoration: none;
}

/* Küçük turuncu vurgu çizgisi. */
#helen-footer-sorumlu-oyun-baglantisi::before {
  content: "";

  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;

  width: 2px;

  border-radius: 999px;
  background: #ff8a20;

  box-shadow: 0 0 8px rgba(255, 138, 32, 0.5);
}

#helen-footer-gamble-aware-logosu {
  display: block;
  flex-shrink: 0;

  width: 32px;
  height: 32px;

  border-radius: 50%;
  object-fit: cover;
}

#helen-footer-sorumlu-oyun-yazilari {
  display: flex;
  flex-direction: column;
  gap: 3px;

  white-space: nowrap;
}

#helen-footer-sorumlu-oyun-yazilari strong {
  color: #e7e0ea;

  font-size: 11px;
  line-height: 1;
}

#helen-footer-sorumlu-oyun-yazilari small {
  max-width: 290px;

  color: #918798;

  font-size: 9px;
  line-height: 1.4;
  white-space: normal;
}

/* ==================================================
   5. DESTEK ALANI
================================================== */

#helen-footer-destek-alani {
  width: 100%;
  max-width: 340px;
  justify-self: end;
}

#helen-footer-destek-basligi {
  position: relative;

  margin: 0 0 16px;
  padding-bottom: 10px;

  color: #ffffff;

  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

#helen-footer-destek-basligi::after {
  content: "";

  position: absolute;
  bottom: 0;
  left: 0;

  width: 34px;
  height: 2px;

  border-radius: 999px;
  background: linear-gradient(90deg, #ff9d00, rgba(255, 157, 0, 0));

  box-shadow: 0 0 8px rgba(255, 157, 0, 0.5);
}

#helen-footer-destek-aciklamasi {
  max-width: 320px;
  margin: 0 0 15px;

  color: #91879a;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.55;
}

#helen-footer-destek-butonu {
  color: #ffffff !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 40px;
  padding: 0 15px;

  border: 1px solid rgba(255, 190, 72, 0.4);
  border-radius: 9px;

  color: #ffffff;
  background: #d98600;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 5px 18px rgba(217, 134, 0, 0.18);

  font-size: 12px;
  font-weight: 700;
  text-decoration: none;

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

#helen-footer-destek-butonu:hover {
  color: #ffffff;
  background: #ff9d00;

  border-color: rgba(255, 219, 152, 0.65);

  box-shadow:
    0 8px 22px rgba(255, 157, 0, 0.28),
    0 0 15px rgba(255, 157, 0, 0.12);

  transform: translateY(-2px);
}

/* ==================================================
   6. ALT KATMAN
================================================== */

#helen-footer-alt-alani {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  width: 100%;
  min-height: 52px;

  padding: 14px 25px 14px calc(25px + var(--helen-footer-sidebar-boslugu));

  background: #08060b;
}

#helen-footer-telif-yazisi {
  margin: 0;

  color: #696170;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
}

#helen-footer-yasal-baglantilar {
  display: flex;
  align-items: center;
  gap: 18px;
}

#helen-footer-yasal-baglantilar a {
  color: #756d7d;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  text-decoration: none;

  transition: color 180ms ease;
}

#helen-footer-yasal-baglantilar a:hover {
  color: #c47af0;
}

/* ==================================================
   7. KLAVYE ODAĞI
================================================== */

#helen-footer a:focus-visible {
  outline: 2px solid #c65cff;
  outline-offset: 3px;
  border-radius: 6px;
}

#helen-footer-destek-butonu:focus-visible {
  outline-color: #ffae2c;
}

/* ==================================================
   8. KÜÇÜK MASAÜSTÜ VE TABLET
================================================== */

@media (max-width: 1050px) {
  #helen-footer-ust-alani {
    grid-template-columns:
      minmax(260px, 1fr)
      minmax(230px, 290px);

    gap: 35px;

    padding-right: 30px;
    padding-left: calc(30px + var(--helen-footer-sidebar-boslugu));
  }
}

/* Sidebar masaüstü halinde kalırken footer'ın iki sütunu 769–840 px
   aralığına sığmıyordu. Bu dar tablet aralığında sütunları alt alta alır. */
@media (min-width: 769px) and (max-width: 840px) {
  #helen-footer-ust-alani {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  #helen-footer-marka-alani,
  #helen-footer-destek-alani {
    width: 100%;
    max-width: none;
  }
}

/* ==================================================
   9. MOBİL
================================================== */

@media (max-width: 768px) {
  #helen-footer {
    --helen-footer-sidebar-boslugu: 0px;
  }

  #helen-footer-ust-alani {
    grid-template-columns: 1fr;
    gap: 24px;

    min-height: 0;
    padding: 30px 24px;
  }

  #helen-footer-marka-alani,
  #helen-footer-destek-alani {
    width: 100%;
    max-width: none;
  }

  #helen-footer-destek-alani {
    order: 1 !important;
    justify-self: start;
  }

  #helen-footer-marka-alani {
    order: 2 !important;
  }

  #helen-footer-aciklamasi,
  #helen-footer-destek-aciklamasi {
    max-width: 100%;
  }

  #helen-footer-alt-alani {
    align-items: flex-start;
    flex-direction: column;

    min-height: 0;
    padding: 16px 24px;
  }

  #helen-footer-yasal-baglantilar {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
}

/* ==================================================
   10. ÇOK KÜÇÜK TELEFON
================================================== */

@media (max-width: 390px) {
  #helen-footer-ust-alani {
    padding-right: 18px;
    padding-left: 18px;
  }

  #helen-footer-marka-yazilari strong {
    font-size: 19px;
  }

  #helen-footer-yasal-baglantilar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==================================================
   11. KOMPAKT MASAÜSTÜ FOOTER
================================================== */
@media (min-width: 769px) {
  #helen-footer-ust-alani {
    grid-template-columns: minmax(0, 1.35fr) minmax(420px, 1fr);
    gap: 34px;
    min-height: 0;
  }

  #helen-footer-marka-alani {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: none;
  }

  #helen-footer-logo-baglantisi {
    flex: 0 0 auto;
  }

  #helen-footer-aciklamasi {
    flex: 1 1 280px;
    max-width: 390px;
    margin: 0;
  }

  #helen-footer-sorumlu-oyun-baglantisi {
    flex: 0 1 auto;
    margin-top: 0;
  }

  #helen-footer-destek-alani {
    display: grid;
    grid-template-columns: auto minmax(210px, 1fr) auto;
    align-items: center;
    gap: 18px;
    max-width: none;
  }

  #helen-footer-destek-basligi,
  #helen-footer-destek-aciklamasi {
    margin: 0;
  }

  #helen-footer-destek-basligi {
    padding-bottom: 8px;
    white-space: nowrap;
  }

  #helen-footer-destek-aciklamasi {
    max-width: none;
  }

  #helen-footer-destek-butonu {
    white-space: nowrap;
  }
}

@media (min-width: 769px) and (max-width: 1120px) {
  #helen-footer-ust-alani {
    grid-template-columns: 1fr;
  }
  #helen-footer-destek-alani {
    justify-self: stretch;
  }
}

/* Destek alanı: buton solda, açıklama sağda. */
#helen-footer-destek-basligi {
  display: none;
}

@media (min-width: 769px) {
  #helen-footer-destek-alani {
    grid-template-columns: auto minmax(210px, 1fr);
  }

  #helen-footer-destek-butonu {
    order: 1;
  }

  #helen-footer-destek-aciklamasi {
    order: 2;
  }
}

@media (max-width: 768px) {
  #helen-footer-destek-alani {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  #helen-footer-destek-butonu {
    order: 1;
    margin-top: 0;
    margin-bottom: 12px;
  }

  #helen-footer-destek-aciklamasi {
    order: 2;
    margin-top: 0;
  }
}
