﻿/* ================================================
   Sponsor Kartları - style.css
   Sadece kullanılan CSS sınıfları
   ================================================ */

/* ---- CSS Değişkenleri ---- */
:root {
  --fs-scale: 3;
  --fs-xs:   calc(8px  + var(--fs-scale) * 1px);
  --fs-sm:   calc(9px  + var(--fs-scale) * 1px);
  --fs-md:   calc(10px + var(--fs-scale) * 1px);
  --fs-base: calc(11px + var(--fs-scale) * 1px);
  --fs-lg:   calc(12px + var(--fs-scale) * 1.2px);
  --h-btn: 40px;
  --btn-radius: 10px;
}

/* ---- Temel Stiller ---- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 16px;
  background: rgb(var(--b));
  color: rgba(var(--t), 1);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  min-height: 100vh;
}

body, input, textarea, select, button {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
}

/* ---- Konteyner ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8px;
}

/* ---- Sponsor Grid ---- */
.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
}

/* Varsayılan kolon: 4 per row (VIP / Genel) */
.sponsor-col {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 6px;
  display: flex;
}

/* 3 sütunlu grid (cols-3 sınıfı veya eski .main) */
.sponsor-grid.main .sponsor-col,
.sponsor-grid.cols-3 .sponsor-col {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

/* ---- Sponsor Kartı ---- */
.partners .sponsor-card {
  position: relative;
  display: block;
  width: 100%;
  height: 140px;
  border-radius: 14px;
  background: rgba(var(--card), 1);
  background-size: cover !important;
  background-position: center !important;
  overflow: hidden;           /* dönen ::after'ı karta kırpar */
  isolation: isolate;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .35s ease;
}

/* İç alan — dönen ışığın kart içine sızmasını engeller, 2px border ring bırakır */
.partners .sponsor-card::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  background: rgba(var(--card), 1);
  z-index: 1;
  pointer-events: none;
}

/* Dönen ışık hüzmesi — karttan büyük kare, ortada döner */
.partners .sponsor-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    from 0deg,
    transparent                              0deg,
    transparent                            300deg,
    var(--site-color, rgba(255,255,255,.3)) 315deg,
    rgba(255,255,255,.85)                  330deg,
    #ffffff                                338deg,
    rgba(255,255,255,.85)                  346deg,
    var(--site-color, rgba(255,255,255,.3)) 356deg,
    transparent                            360deg
  );
  animation: borderSweep 2s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes borderSweep {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Kart üst bölüm — logo alanı, 2px border halkasının içinde */
.partners .sponsor-card .card-logo {
  position: absolute;
  inset: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: 12px;
  overflow: hidden;
}

/* Logo — başlangıçta merkezin biraz üstünde */
.partners .sponsor-card .card-logo img {
  max-height: 32px;
  max-width: 68%;
  object-fit: contain;
  width: auto !important;
  height: auto;
  transform: translateY(-18px);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

/* Kart alt bölüm — border halkası içinde, altta sabit */
.partners .sponsor-card .card-info {
  position: absolute;
  bottom: 2px; left: 2px; right: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7px 12px 10px;
  gap: 3px;
  z-index: 3;
  border-radius: 0 0 12px 12px;
  transition: opacity .32s ease, transform .38s cubic-bezier(.4, 0, .2, 1);
}

/* Bonus başlık metni (birincil) */
.partners .sponsor-card .card-info .bonus-text {
  font-size: var(--fs-xs);
  font-weight: 800;
  color: rgba(var(--primary), 1);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Bonus alt metni (ikincil) */
.partners .sponsor-card .card-info .bonus-alt-text {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: rgba(var(--t), .65);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ---- Hover ---- */
/* Kart yukarı kalkar */
.partners .sponsor-card:hover {
  transform: translateY(-4px);
}

/* Logo merkeze iner ve büyür */
.partners .sponsor-card:hover .card-logo img {
  transform: translateY(0) scale(1.22);
}

/* Bottom aşağı kayar ve solar */
.partners .sponsor-card:hover .card-info {
  opacity: 0;
  transform: translateY(16px);
}


/* ---- Bölüm Başlıkları ---- */
.partners .section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 800;
  color: rgba(var(--t), .8);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 20px 0 12px;
}

.partners .section-heading::before {
  content: "";
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: rgba(var(--primary), 1);
  flex-shrink: 0;
}

.partners .section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--t), .08), transparent 80%);
}

/* ---- Arama Çubuğu ---- */
.search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(var(--t), .35);
  pointer-events: none;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  background: rgba(var(--t), .04);
  border: 1px solid rgba(var(--t), .07);
  border-radius: 10px;
  padding: 10px 12px 10px 38px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(var(--t), .9);
  outline: none;
  transition: border-color .2s, background .2s;
}

.search-input::placeholder {
  color: rgba(var(--t), .3);
}

.search-input:focus {
  border-color: rgba(var(--primary), .35);
  background: rgba(var(--t), .06);
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(var(--t), .35);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  line-height: 1;
  font-size: 16px;
  display: none;
  transition: color .2s;
}

.search-clear:hover { color: rgba(var(--t), .7); }

.search-no-result {
  text-align: center;
  color: rgba(var(--t), .3);
  padding: 40px 0;
  font-size: var(--fs-sm);
  display: none;
}

/* ---- Kategori Filtresi ---- */
.filter-scroll-wrap {
  position: relative;
  margin-bottom: 8px;
}

/* Sol ve sağ taraf fade göstergesi */
.filter-scroll-wrap::before,
.filter-scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 2;
  transition: opacity .25s;
}

.filter-scroll-wrap::before {
  left: 0;
  background: linear-gradient(to right, rgb(var(--b)), transparent);
  opacity: 0;
}

.filter-scroll-wrap::after {
  right: 0;
  background: linear-gradient(to left, rgb(var(--b)), transparent);
  opacity: 0;
}

.filter-scroll-wrap.has-overflow-right::after  { opacity: 1; }
.filter-scroll-wrap.has-overflow-left::before  { opacity: 1; }

.category-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
  scroll-behavior: smooth;
}

.category-filter::-webkit-scrollbar {
  display: none;
}

.category-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: rgba(var(--t), .5);
  background: rgba(var(--t), .04);
  border: 1px solid rgba(var(--t), .06);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.category-btn:hover {
  color: rgba(var(--t), .8);
  background: rgba(var(--t), .08);
}

.category-btn.active {
  color: rgba(var(--primary), 1);
  background: rgba(var(--primary), .1);
  border-color: rgba(var(--primary), .2);
}

/* ---- Etiketler ---- */
.tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(var(--t), .04);
  border: 1px solid rgba(var(--t), .06);
  padding: 8px 12px;
  border-radius: 8px;
}

.tag b {
  font-size: var(--fs-sm);
  color: rgba(var(--primary), 1);
  font-weight: 700;
}

.tag span {
  font-size: var(--fs-xs);
  color: rgba(var(--t), .5);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  /* Tüm kolonlar 2'li grid'e düşer */
  .sponsor-col {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  .sponsor-grid.main .sponsor-col,
  .sponsor-grid.cols-3 .sponsor-col {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  .partners .sponsor-card {
    height: 110px;
  }

  .partners .sponsor-card .card-logo img {
    max-height: 26px;
    max-width: 62%;
    transform: translateY(-14px);
  }

  .partners .sponsor-card:hover .card-logo img {
    transform: translateY(0) scale(1.18);
  }

  .category-filter {
    padding: 6px 0;
  }
}

@media (max-width: 480px) {
  .partners .sponsor-card {
    height: 100px;
  }
}

/* ---- Sayfa üst başlığı ---- */
.page-header {
  text-align: center;
  padding: 28px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Logo */
.site-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: logoIn .55s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes logoIn {
  from { opacity: 0; transform: scale(.7) translateY(-10px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.site-logo {
  max-height: 72px;
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(var(--primary), .35));
  transition: filter .3s;
}

.site-logo:hover {
  filter: drop-shadow(0 0 28px rgba(var(--primary), .6));
}

.page-header h1 {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: rgba(var(--t), .9);
  letter-spacing: .5px;
  animation: logoIn .5s ease both;
}

.page-header p {
  font-size: var(--fs-sm);
  color: rgba(var(--t), .4);
  margin: 0;
}

/* ---- Sosyal Medya Butonları ---- */
.social-links {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 8px;
  margin-top: 4px;
  animation: fadeUp .5s .1s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 10px;
  border-radius: 40px;
  background: rgba(var(--t), .04);
  border: 1px solid rgba(var(--t), .07);
  color: var(--sc);
  text-decoration: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1),
              background .25s, box-shadow .25s;
}

/* Parlama hüzmesi */
.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glow);
  opacity: 0;
  transition: opacity .25s;
  border-radius: inherit;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--glow);
  box-shadow: 0 6px 20px var(--glow);
  border-color: var(--sc);
}

.social-btn:hover::before { opacity: 1; }

.social-btn:active {
  transform: translateY(0) scale(.97);
}

/* SVG icon */
.social-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  color: var(--sc);
  /* Sürekli parıldama animasyonu */
  filter: drop-shadow(0 0 4px var(--sc));
  animation: iconPulse 2.4s ease-in-out infinite;
}

/* Her butonun animasyon gecikmesini stagger yap */
.social-btn:nth-child(1) .social-icon svg { animation-delay: 0s; }
.social-btn:nth-child(2) .social-icon svg { animation-delay: .4s; }
.social-btn:nth-child(3) .social-icon svg { animation-delay: .8s; }
.social-btn:nth-child(4) .social-icon svg { animation-delay: 1.2s; }

@keyframes iconPulse {
  0%, 100% { filter: drop-shadow(0 0 3px var(--sc));  opacity: .9; }
  50%       { filter: drop-shadow(0 0 10px var(--sc)); opacity: 1; }
}

.social-label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

/* ---- Footer Badge ---- */
.site-footer {
  margin-top: 56px;
  padding: 0 0 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* İnce ayırıcı çizgi */
.site-footer::before {
  content: '';
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(var(--primary), .35) 30%,
    rgba(var(--primary), .35) 70%,
    transparent);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 16px;
  background: rgba(var(--card), 1);
  border: 1px solid rgba(var(--card-border), 1);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1),
              box-shadow .3s ease,
              border-color .3s ease;
}

/* Sürekli yavaş dönen konik gradyan arka plan */
.footer-badge::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 200%; aspect-ratio: 1;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 260deg,
    rgba(var(--primary), .12) 290deg,
    rgba(var(--primary), .22) 310deg,
    rgba(var(--primary), .12) 330deg,
    transparent 360deg
  );
  transform: translate(-50%,-50%) rotate(0deg);
  animation: footerSweep 5s linear infinite;
  pointer-events: none;
}

@keyframes footerSweep {
  to { transform: translate(-50%,-50%) rotate(360deg); }
}

/* İç yüzey — dönen ışığı kırpıp kart rengi verir */
.footer-badge::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: rgba(var(--card), 1);
  border-radius: 15px;
  pointer-events: none;
}

.footer-badge:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(var(--primary), .15),
              0 2px 8px rgba(0,0,0,.3);
  border-color: rgba(var(--primary), .3);
}

.footer-badge:active {
  transform: translateY(0) scale(.98);
}

.footer-badge-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  z-index: 1;
}

.footer-badge-text span:first-child {
  font-size: 9px;
  font-weight: 600;
  color: rgba(var(--t), .3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1;
}

.footer-badge-text span:last-child {
  font-size: 13px;
  font-weight: 700;
  color: rgba(var(--t), .65);
  line-height: 1.2;
  transition: color .25s;
}

.footer-badge:hover .footer-badge-text span:last-child {
  color: rgba(var(--t), .9);
}

/* Dikey ayırıcı */
.footer-badge-divider {
  width: 1px;
  height: 28px;
  background: rgba(var(--t), .08);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.footer-badge-img {
  height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  opacity: .7;
  transition: opacity .25s, filter .25s;
}

.footer-badge:hover .footer-badge-img {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(var(--primary), .45));
}

@media (max-width: 480px) {
  .social-btn { padding: 6px 12px 6px 9px; }
  .social-label { font-size: 11px; }
  .site-logo { max-height: 56px; }
  .social-links { grid-template-columns: repeat(4, auto); gap: 6px; }
  .social-label  { font-size: 10px; }
  .social-btn    { padding: 6px 10px 6px 8px; }
}
