/* =========================================================
   /tema/assets/css/footer.css (SADECE FOOTER - ÇAKIŞMA YOK)
   - GLOBAL :root YOK
   - Tüm değişkenler .footer-main scope'unda
   - Header etkilenmez
========================================================= */

.footer-main{
  --ra-brand:  var(--renk-1, #074e8e); /* ✅ ana renk 1 */
  --ra-accent: var(--renk-2, #0b4bff); /* ✅ ana renk 2 */

  --ra-bg:#07101d;
  --ra-bg2:#050a12;

  --ra-text: rgba(255,255,255,.92);
  --ra-muted: rgba(255,255,255,.72);
  --ra-line: rgba(255,255,255,.10);

  --ra-r:18px;
  --ra-shadow: 0 20px 70px rgba(0,0,0,.40);

  color: var(--ra-text);
  background:
    radial-gradient(1100px 520px at 12% 10%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(900px 520px at 85% 35%, rgba(255,255,255,.04), transparent 58%),
    radial-gradient(900px 520px at 18% 25%, color-mix(in srgb, var(--ra-accent) 22%, transparent), transparent 62%),
    radial-gradient(900px 520px at 85% 45%, color-mix(in srgb, var(--ra-brand) 22%, transparent), transparent 58%),
    linear-gradient(180deg, var(--ra-bg), var(--ra-bg2) 88%);
  border-top: 1px solid rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}

/* color-mix desteklemeyen tarayıcılar için güvenli fallback */
@supports not (background: color-mix(in srgb, #000 50%, #fff)){
  .footer-main{
    background:
      radial-gradient(1100px 520px at 12% 10%, rgba(255,255,255,.06), transparent 60%),
      radial-gradient(900px 520px at 85% 35%, rgba(255,255,255,.04), transparent 58%),
      radial-gradient(900px 520px at 18% 25%, rgba(11,75,255,.18), transparent 62%),
      radial-gradient(900px 520px at 85% 45%, rgba(7,78,142,.18), transparent 58%),
      linear-gradient(180deg, var(--ra-bg), var(--ra-bg2) 88%);
  }
}

/* premium noise/dots */
.footer-main::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.10;
  background-image: radial-gradient(rgba(255,255,255,.95) 1.2px, transparent 1.2px);
  background-size: 52px 52px;
  background-position: 0 0;
}

.footer-main::before{
  content:"";
  position:absolute;
  inset:-40% -20%;
  pointer-events:none;
  opacity:.12;
  background: linear-gradient(120deg, rgba(255,255,255,.20), rgba(255,255,255,0) 55%);
  transform: rotate(10deg);
}

.footer-main .container{
  width:100%;
  max-width: 1240px;
  margin:0 auto;
  padding:0 18px;
  position:relative;
  z-index:1;
}

.footer-main .footer-top{
  padding: 60px 0 26px;
}

/* GRID (Bootstrap class'ları ile çakışmadan flex düzen) */
.footer-main .footer-top{
  display:flex;
  flex-wrap:wrap;
  gap: 18px;
  align-items: stretch;
}

.footer-main .footer-top > .col-12.col-lg-4{
  flex: 0 0 calc(33.333333% - 12px);
  max-width: calc(33.333333% - 12px);
}

.footer-main .footer-top > .col-12.col-lg-8{
  flex: 0 0 calc(66.666667% - 12px);
  max-width: calc(66.666667% - 12px);
}

.footer-main .footer-top > .col-12.col-lg-8 > .row{
  display:flex;
  flex-wrap:wrap;
  gap: 18px;
  margin:0;
}

.footer-main .footer-top > .col-12.col-lg-8 > .row > .col-6.col-md-4{
  flex: 0 0 calc(33.333333% - 12px);
  max-width: calc(33.333333% - 12px);
}

/* ✅ Sağ kolonları da "kart" yap */
.footer-main .footer-top > .col-12.col-lg-8 > .row > .col-6.col-md-4{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--ra-r);
  padding: 18px 16px;
  box-shadow: 0 14px 44px rgba(0,0,0,.26);
  backdrop-filter: blur(6px);
}

/* responsive */
@media (max-width:991px){
  .footer-main .footer-top > .col-12.col-lg-4,
  .footer-main .footer-top > .col-12.col-lg-8{
    flex:0 0 100%;
    max-width:100%;
  }
  .footer-main .footer-top > .col-12.col-lg-8 > .row > .col-6.col-md-4{
    flex:0 0 calc(50% - 9px);
    max-width: calc(50% - 9px);
  }
}
@media (max-width:575px){
  .footer-main .footer-top > .col-12.col-lg-8 > .row > .col-6.col-md-4{
    flex:0 0 100%;
    max-width:100%;
  }
}

/* SOL BLOK (brand kart) */
.footer-main .col-12.col-lg-4{
  background:
    radial-gradient(520px 260px at 10% 10%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--ra-r);
  padding: 20px 18px;
  box-shadow: var(--ra-shadow);
  backdrop-filter: blur(6px);
  position:relative;
  overflow:hidden;
}

.footer-main .col-12.col-lg-4::after{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  border-radius: var(--ra-r);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.30);
  opacity:.45;
}

/* logo */
.footer-main .footer-logo{
  height:56px;
  width:auto;
  max-width:220px;
  object-fit:contain;
  display:block;
  margin-bottom: 10px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}
@media (max-width:575px){
  .footer-main .footer-logo{ height:46px; max-width:180px; }
}

.footer-main .footer-title{
  font-weight: 1000;
  margin: 0 0 10px;
  letter-spacing: .2px;
  line-height:1.2;
}

.footer-main .footer-text{
  color: var(--ra-muted);
  line-height: 1.75;
  margin: 0 0 16px;
  max-width: 52ch;
  font-size: 14px;
}

/* Sosyal: ana renge bağla */
.footer-main .footer-social{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.footer-main .footer-social-btn{
  width:42px; height:42px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--ra-brand) 22%, rgba(255,255,255,.10)),
      rgba(255,255,255,.07)
    );
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  text-decoration:none;

  box-shadow: 0 12px 28px rgba(0,0,0,.26);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
}

@supports not (background: color-mix(in srgb, #000 50%, #fff)){
  .footer-main .footer-social-btn{
    background: linear-gradient(180deg, rgba(7,78,142,.22), rgba(255,255,255,.07));
  }
}

.footer-main .footer-social-btn:hover{
  transform: translateY(-2px);
  filter:saturate(1.05);
  box-shadow: 0 18px 40px rgba(0,0,0,.34);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--ra-accent) 28%, rgba(255,255,255,.10)),
      rgba(255,255,255,.08)
    );
}

/* SAĞ BLOK başlık */
.footer-main .footer-col-title{
  font-weight: 1000;
  margin: 0 0 12px;
  padding-bottom: 10px;
  position: relative;
  letter-spacing: .2px;
}
.footer-main .footer-col-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:64px;
  height:3px;
  border-radius:999px;
  background: linear-gradient(90deg, var(--ra-accent), var(--ra-brand), rgba(0,0,0,0));
  opacity:.95;
}

/* Liste */
.footer-main .footer-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.footer-main .footer-link{
  color: var(--ra-muted);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition: color .16s ease, transform .16s ease;
  font-size: 13.5px;
}
.footer-main .footer-link::before{
  content:"";
  width:10px; height:10px;
  border-radius:999px;
  background: linear-gradient(180deg, var(--ra-accent), var(--ra-brand));
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
  opacity:.9;
}
.footer-main .footer-link:hover{
  color:#fff;
  transform: translateX(3px);
}

/* Alt */
.footer-main .footer-bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.70);
  padding: 16px 0;
  text-align:center;
  width:100%;
  display:block;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.14));
}

/* Footer search */
.footer-main .footer-search-area .container{ max-width:1240px; }
.footer-main .footer-search-area form{ width:100%; }
.footer-main .footer-search-area input[type="search"],
.footer-main .footer-search-area input[type="text"]{
  width:100%;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color:#fff;
  padding: 12px 14px;
  outline: none;
}
.footer-main .footer-search-area input::placeholder{ color: rgba(255,255,255,.55); }

/* Scroll top: ana renk ile */
#scrollToTop{
  position:fixed;
  right:20px;
  bottom:22px;
  width:46px; height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;

  background: linear-gradient(180deg, rgba(7,16,29,.78), rgba(7,16,29,.92));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 32px rgba(0,0,0,.28);

  opacity:0;
  visibility:hidden;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease, filter .18s ease;
  z-index:80;
}
#scrollToTop.is-visible{ opacity:1; visibility:visible; transform:translateY(0); }
#scrollToTop:hover{
  filter:saturate(1.06);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ra-accent) 26%, rgba(7,16,29,.86)), rgba(7,16,29,.94));
}
@supports not (background: color-mix(in srgb, #000 50%, #fff)){
  #scrollToTop:hover{ background: linear-gradient(180deg, rgba(11,75,255,.20), rgba(7,16,29,.94)); }
}

/* ✅ Mobil sabit bar (footer.php inline style ile yönetiliyor) */
.footer-cta-bar{ display:none; }

@media (max-width: 991px){
  body{ padding-bottom:56px; }
  #scrollToTop{ bottom:72px; }
}
@media (min-width: 992px){
  body{ padding-bottom:0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .footer-main *, #scrollToTop{ transition:none !important; animation:none !important; }
}