/**
 * JollyGame site footer — referans birebir
 * Ref: image-41283a7a (süslü altın çerçeveli sponsor bandı)
 */
.jg-site-footer {
  --footer-gold: #d4a24a;
  --footer-gold-bright: #f0c86a;
  --footer-gold-light: #e8bd6a;
  --footer-gold-dim: #9a6b22;
  --footer-text: #ffffff;
  --footer-muted: #c8ced6;
  --footer-red: #ff4d3d;
  --sp-cut: 14px;
  --sp-border: 1.7px;

  width: 100%;
  background-color: #282c32;
  background-image: url("../images/bsilkroad/body-bg.jpg");
  background-repeat: repeat;
  background-attachment: scroll;
  color: var(--footer-text);
  position: relative;
  z-index: 6;
  clear: both;
  margin-top: 0;
  font-family: Arial, "Segoe UI", Helvetica, sans-serif;
}

body.jg-home-page .jg-m-footer {
  display: none !important;
}

@media (max-width: 768px) {
  body.jg-home-page .jg-m-footer {
    display: none !important;
  }
}

.footer-container {
  max-width: 1003px;
  width: 100%;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* —— Gold dividers with center diamond —— */
.footer-divider {
  height: 1px;
  width: 100%;
  max-width: 1003px;
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 162, 74, 0.15) 8%,
    rgba(240, 200, 106, 0.95) 50%,
    rgba(212, 162, 74, 0.15) 92%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(212, 162, 74, 0.35);
  position: relative;
}

.footer-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--footer-gold-bright);
  transform: rotate(45deg);
  box-shadow:
    0 0 6px rgba(240, 200, 106, 0.9),
    0 0 14px rgba(212, 162, 74, 0.55);
  z-index: 1;
}

.footer-divider--thin {
  opacity: 0.95;
}

.footer-divider--thin::after {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
}

/* —— Sponsors band (ornate gold frame) —— */
.footer-sponsors {
  padding: 0 0 16px;
  margin-top: -40px; /* 8 tık yukarı */
}

/* Anasayfa: içerik ile altın çerçeve arası boşluk yok — bitişik */
body.jg-home-page #content_container.jg-home,
body.jg-home-page .jg-home {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.jg-home-page .jg-home__grid,
body.jg-home-page #main #middle_panel.jg-home__grid {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.jg-home-page .jg-site-footer {
  margin-top: 0 !important;
}

body.jg-home-page .footer-sponsors {
  margin-top: -53px; /* 1 tık aşağı (-58 → -53) */
  padding-top: 0 !important;
  padding-bottom: 16px;
}

.footer-sponsors__frame {
  position: relative;
  width: 100%;
  min-height: 148px;
  box-sizing: border-box;
  filter: drop-shadow(0 0 14px rgba(212, 168, 79, 0.28));
  transform: translateX(-5px); /* 1 tık sola net (3 sola - 2 sağa) */
}

.footer-sponsors__frame-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.footer-sponsors__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 148px;
  padding: 22px 28px 24px;
  box-sizing: border-box;
}

.footer-sponsors__brand {
  position: relative;
  flex: 0 0 178px;
  align-self: stretch;
  display: block;
  min-width: 0;
  min-height: 120px;
  overflow: hidden;
  background: transparent !important;
}

/* Logo stack: mevcut çerçeve/arka plan = parent; PNG = yalnızca foreground */
.footer-sponsors__brand .jg-brand-stack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent !important;
  pointer-events: none;
}

.footer-sponsors__brand .background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: transparent !important;
  pointer-events: none;
}

.footer-sponsors__brand .logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  height: auto;
  max-height: 72%;
  object-fit: contain;
  object-position: center center;
  z-index: 2;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  filter: none;
  pointer-events: none;
}

.footer-sponsors__brand-bg,
.footer-sponsors__brand-logo {
  display: none !important;
}

.footer-sponsors__separator {
  flex: 0 0 1px;
  width: 1px;
  height: 72px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--footer-gold-bright) 16%,
    var(--footer-gold) 50%,
    var(--footer-gold-bright) 84%,
    transparent
  );
  box-shadow: 0 0 10px rgba(212, 162, 74, 0.45);
  /* JollyGame ↔ SPONSORLARIMIZ boşluğunun ortası (heading 75px sağa kaymış) */
  transform: translateX(37px);
}

.footer-sponsors__heading {
  flex: 0 0 168px;
  min-width: 0;
  transform: translateX(75px); /* 15 tık sağa */
}

.footer-sponsors__heading h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--footer-gold);
  letter-spacing: 0.8px;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(212, 162, 74, 0.3);
}

.footer-sponsors__heading-line {
  position: relative;
  width: 100%;
  max-width: 142px;
  height: 1px;
  margin: 9px 0 9px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--footer-gold) 18%,
    var(--footer-gold-bright) 50%,
    var(--footer-gold) 82%,
    transparent 100%
  );
}

.footer-sponsors__heading-line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--footer-gold-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(240, 200, 106, 0.75);
}

.footer-sponsors__heading p {
  margin: 0;
  font-size: 12.5px;
  color: #d0d5dc;
  line-height: 1.3;
}

.footer-sponsors__rail {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-sponsors__list {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  transform: translateX(85px); /* sponsor kutuları 17 tık sağa net (5 tık sola) */
  padding: 6px 2px 10px;
  -webkit-overflow-scrolling: touch;
}

.footer-sponsors__list::-webkit-scrollbar {
  display: none;
}

/* —— Beveled gold sponsor cards (rounded + soft chamfer) —— */
.sponsor-card {
  position: relative;
  display: block;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  filter: drop-shadow(0 0 6px rgba(212, 162, 74, 0.4));
  transition: transform 200ms ease, filter 200ms ease;
}

.sponsor-card__border {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    145deg,
    #fff1b0 0%,
    #e8bd6a 22%,
    #b8862e 48%,
    #d4a24a 72%,
    #f0c86a 100%
  );
  border-radius: 16px 5px 16px 5px;
  clip-path: polygon(
    var(--sp-cut) 0,
    100% 0,
    100% calc(100% - var(--sp-cut)),
    calc(100% - var(--sp-cut)) 100%,
    0 100%,
    0 var(--sp-cut)
  );
}

.sponsor-card__inner {
  position: absolute;
  z-index: 1;
  inset: var(--sp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px 4px 14px 4px;
  background:
    radial-gradient(ellipse at 22% 18%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 7px
    ),
    linear-gradient(160deg, #1c2430 0%, #0a0e14 100%);
  clip-path: polygon(
    calc(var(--sp-cut) - 1px) 0,
    100% 0,
    100% calc(100% - (var(--sp-cut) - 1px)),
    calc(100% - (var(--sp-cut) - 1px)) 100%,
    0 100%,
    0 calc(var(--sp-cut) - 1px)
  );
}

.sponsor-card--star::before {
  content: "★";
  position: absolute;
  left: 50%;
  top: -1px;
  z-index: 3;
  transform: translate(-50%, -45%);
  font-size: 24px; /* 9px + 3 tık (15px) */
  line-height: 1;
  color: #fff1b0;
  text-shadow:
    0 0 4px rgba(240, 200, 106, 0.95),
    0 0 8px rgba(212, 162, 74, 0.7),
    0 1px 1px rgba(90, 55, 10, 0.85);
  pointer-events: none;
}

.sponsor-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: 36px;
  height: 8px;
  margin-left: -18px;
  background: radial-gradient(ellipse at center, rgba(240, 200, 106, 0.95) 0%, transparent 72%);
  pointer-events: none;
  filter: blur(1.5px);
}

.sponsor-card--static {
  cursor: default;
  pointer-events: none;
}

.sponsor-card img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 72%;
  max-height: 58%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 200ms ease;
}

.sponsor-card:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 0 12px rgba(240, 200, 106, 0.55));
}

.sponsor-card:hover img {
  transform: scale(1.05);
}

.sponsor-card--static:hover {
  transform: none;
  filter: drop-shadow(0 0 6px rgba(212, 162, 74, 0.4));
}

.sponsor-card--static:hover img {
  transform: none;
}

.sponsor-nav-button {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(212, 162, 74, 0.65);
  background: rgba(12, 16, 22, 0.85);
  color: var(--footer-gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.sponsor-nav-button:hover:not(:disabled) {
  background: var(--footer-gold);
  color: #111;
}

.sponsor-nav-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.sponsor-nav-button[hidden] {
  display: none !important;
}

/* —— Corporate columns —— */
.site-footer {
  padding: 28px 0 20px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}

.site-footer__column {
  position: relative;
  padding: 0 24px;
  min-height: 168px;
  overflow: hidden;
}

.site-footer__column:first-child {
  padding-left: 0;
}

.site-footer__column:last-child {
  padding-right: 0;
}

.site-footer__column:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 0;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(212, 162, 74, 0.45) 18%,
    rgba(232, 189, 106, 0.55) 50%,
    rgba(212, 162, 74, 0.45) 82%,
    transparent
  );
  box-shadow: 0 0 6px rgba(212, 162, 74, 0.2);
}

.site-footer__watermark {
  position: absolute;
  right: 10px;
  bottom: 4px;
  width: 100px;
  height: 100px;
  color: rgba(212, 162, 74, 0.11);
  pointer-events: none;
  z-index: 0;
  line-height: 0;
}

.site-footer__watermark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-footer__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--footer-gold-light);
  flex: 0 0 auto;
  line-height: 0;
}

.site-footer__ico svg {
  display: block;
  width: 18px;
  height: 18px;
}

.site-footer__title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: var(--footer-gold);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.site-footer__title-line {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 158px;
  height: 1px;
  margin: 0 0 18px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--footer-gold) 12%,
    var(--footer-gold-bright) 50%,
    var(--footer-gold) 88%,
    transparent 100%
  );
}

.site-footer__title-line span,
.site-footer__title-line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--footer-gold-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 7px rgba(240, 200, 106, 0.7);
}

.site-footer__toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(212, 162, 74, 0.28);
  color: var(--footer-gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 12px 0;
  cursor: pointer;
  text-align: left;
}

.site-footer__toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer__menu {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__menu li + li {
  margin-top: 12px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f2f4f7;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.35;
  transition: color 150ms ease;
}

.footer-link__chevron {
  color: var(--footer-gold);
  display: inline-block;
  width: 10px;
  font-weight: 700;
  transition: transform 150ms ease;
}

.footer-link:hover {
  color: var(--footer-gold-light);
}

.footer-link:hover .footer-link__chevron {
  transform: translateX(3px);
}

.footer-link.is-active {
  color: var(--footer-gold-light);
  font-weight: 600;
}

/* —— Bottom bar —— */
.site-footer__bottom {
  min-height: 52px;
  padding: 14px 0 18px;
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.site-footer__copy,
.site-footer__trust,
.site-footer__credit {
  margin: 0;
  font-size: 12.5px;
  color: #d0d5dc;
  line-height: 1.4;
}

.site-footer__copy-brand span:first-child {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.site-footer__copy-brand span:last-child {
  color: var(--footer-red);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 77, 61, 0.55);
}

.site-footer__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: #e8ecf1;
}

.site-footer__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.site-footer__trust-item .fa,
.site-footer__trust-item .site-footer__ico {
  color: var(--footer-gold);
}

.site-footer__trust-item .site-footer__ico {
  width: 14px;
  height: 14px;
}

.site-footer__trust-item .site-footer__ico svg {
  width: 14px;
  height: 14px;
}

.site-footer__trust-sep {
  color: var(--footer-gold);
  opacity: 0.85;
}

.site-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d0d5dc;
}

.site-footer__heart {
  display: inline-flex;
  color: var(--footer-gold-bright);
  filter: drop-shadow(0 0 4px rgba(240, 200, 106, 0.65));
  line-height: 0;
}

.site-footer__heart svg {
  display: block;
  width: 13px;
  height: 13px;
}

.site-footer__credit-brand {
  font-weight: 700;
}

.site-footer__credit-brand span:first-child {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.site-footer__credit-brand span:last-child {
  color: var(--footer-red);
  text-shadow: 0 0 10px rgba(255, 77, 61, 0.55);
}

.sponsor-card:focus-visible,
.footer-link:focus-visible,
.sponsor-nav-button:focus-visible,
.site-footer__toggle:focus-visible {
  outline: 2px solid #f2b24c;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .sponsor-card,
  .sponsor-card img,
  .footer-link__chevron {
    transition: none !important;
  }

  .sponsor-card:hover,
  .sponsor-card:hover img {
    transform: none !important;
  }

  .footer-sponsors__list {
    scroll-behavior: auto;
  }
}

@media (max-width: 1200px) {
  .footer-sponsors__brand {
    flex-basis: 130px;
  }

  .footer-sponsors__brand .logo {
    width: 58%;
    max-height: 74%;
  }

  .footer-sponsors__heading {
    flex-basis: 140px;
  }

  .footer-sponsors__inner {
    padding: 20px 22px;
    gap: 12px;
  }

  .site-footer__column {
    padding: 0 16px;
  }

  .sponsor-card {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
    --sp-cut: 12px;
  }
}

@media (max-width: 992px) {
  .footer-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-divider {
    max-width: calc(100% - 32px);
  }

  .footer-sponsors__inner {
    flex-wrap: wrap;
    gap: 14px;
    min-height: 0;
    padding: 28px 24px;
  }

  .footer-sponsors__frame {
    min-height: 0;
  }

  .footer-sponsors__frame-art {
    min-height: 100%;
  }

  .footer-sponsors__rail {
    flex: 1 1 100%;
    width: 100%;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 0;
  }

  .site-footer__column:nth-child(2)::after {
    display: none;
  }

  .site-footer__column:nth-child(odd) {
    padding-left: 0;
  }

  .site-footer__column:nth-child(even) {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .footer-sponsors__inner {
    justify-content: center;
    text-align: center;
  }

  .footer-sponsors__brand {
    width: 100%;
    flex: 1 1 100%;
    min-height: 110px;
  }

  .footer-sponsors__brand .logo {
    width: 42%;
    max-height: 78%;
  }

  .footer-sponsors__separator {
    display: none;
  }

  .footer-sponsors__heading {
    flex: 1 1 100%;
    width: 100%;
  }

  .footer-sponsors__heading-line {
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .sponsor-card {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    --sp-cut: 12px;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .footer-sponsors__frame-art {
    opacity: 0.85;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer__column {
    padding: 0 !important;
    min-height: 0;
  }

  .site-footer__column::after {
    display: none !important;
  }

  .site-footer__title,
  .site-footer__title-line {
    display: none;
  }

  .site-footer__watermark {
    display: none;
  }

  .jg-site-footer.is-enhanced .site-footer__toggle {
    display: flex;
  }

  .jg-site-footer.is-enhanced .site-footer__menu {
    display: none;
    padding: 8px 0 14px;
  }

  .jg-site-footer.is-enhanced .site-footer__column.is-open .site-footer__menu {
    display: block;
  }

  .jg-site-footer.is-enhanced .site-footer__column.is-open .site-footer__toggle .fa.fa-angle-down {
    transform: rotate(180deg);
  }

  .sponsor-card {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    --sp-cut: 11px;
  }
}

/* Forum: KURUMSAL / OYUN / DESTEK / HIZLI ERİŞİM tamamen gizli — sadece alt imza */
.jg-site-footer--forum-slim .footer-sponsors,
.jg-site-footer--forum-slim .site-footer,
.jg-site-footer--forum-slim .footer-divider,
.jg-site-footer--forum-slim .site-footer__grid,
.jg-site-footer--forum-slim .site-footer__column,
.jg-site-footer--forum-slim .site-footer__toggle,
.jg-site-footer--forum-slim .site-footer__menu {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.jg-site-footer--forum-slim .site-footer__bottom {
  display: block !important;
  visibility: visible !important;
}
