/* ============================================
   İNCİ İKLİMLENDİRME — SOSYAL BUTONLAR
   Marka: Lacivert #07174A · Mavi #1547E8 · Altın #F5C842
   Sol alt köşe · Yukarı çık butonu sağ alt
   ============================================ */

/* ── KEYFRAMES ─────────────────────────────── */

@keyframes iHeartbeat {
  0%, 100% { transform: scale(1); }
  10%       { transform: scale(1.07); }
  20%       { transform: scale(1); }
  30%       { transform: scale(1.04); }
  40%       { transform: scale(1); }
}

@keyframes iLuxGlow {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(20,71,232,.40),
      0 0 36px rgba(20,71,232,.18),
      inset 0 0 12px rgba(245,200,66,.08);
  }
  50% {
    box-shadow:
      0 0 28px rgba(20,71,232,.60),
      0 0 56px rgba(20,71,232,.28),
      inset 0 0 22px rgba(245,200,66,.16);
  }
}

@keyframes iLiquidMetal {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes iGoldWave {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

@keyframes iPulseRing {
  0% {
    transform: scale(0.85);
    opacity: 1;
    border-color: rgba(20,71,232,.70);
  }
  100% {
    transform: scale(2);
    opacity: 0;
    border-color: rgba(245,200,66,0);
  }
}

@keyframes iSparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50%       { opacity: 1; transform: scale(1) rotate(180deg); }
}

@keyframes iFireFlicker {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 8px rgba(245,200,66,.70)); }
  33%       { filter: brightness(1.15) drop-shadow(0 0 14px rgba(20,71,232,.80)); }
  66%       { filter: brightness(1.08) drop-shadow(0 0 10px rgba(245,200,66,.90)); }
}

@keyframes iFloatUp {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
  50%       { transform: translateX(-50%) translateY(-6px) rotate(2deg); }
}

/* ══════════════════════════════════════════════
   SOSYAL BUTONLAR — Sol Alt Köşe
   bottom: 100px → yazının üstüne çıkmaz
══════════════════════════════════════════════ */
.social-buttons {
  position: fixed;
  left: 28px;
  bottom: 100px; /* yazının üstüne çakışmayacak şekilde yukarıda */
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9998;
}

/* ── TEMEL BUTON ── */
.social-btn {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.30rem;
  color: #ffffff !important;
  text-decoration: none;
  position: relative;
  overflow: visible;
  background: linear-gradient(145deg, #07174A 0%, #0F2560 50%, #07174A 100%);
  border: 1px solid rgba(20,71,232,.35);
  cursor: pointer;
  transition: all 0.38s cubic-bezier(0.23,1,0.32,1);
  animation: iHeartbeat 3.5s ease-in-out infinite, iLuxGlow 4s ease-in-out infinite;
}

/* Liquid metal kenarlık — mavi/altın */
.social-btn::before {
  content: '';
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border-radius: 18px;
  background: linear-gradient(
    90deg,
    #1547E8,
    #F5C842,
    #1547E8,
    #07174A,
    #F5C842,
    #1547E8
  );
  background-size: 300% 100%;
  animation: iLiquidMetal 4.5s linear infinite;
  z-index: -2;
  opacity: 0.75;
}

/* İç koyu arka plan */
.social-btn::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(145deg, #07174A 0%, #0F2560 50%, #07174A 100%);
  border-radius: 13px;
  z-index: -1;
}

/* Altın parlak sweep */
.social-btn .gold-wave {
  position: absolute;
  top: 0; left: 0;
  width: 50%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245,200,66,.25),
    rgba(245,200,66,.45),
    rgba(245,200,66,.25),
    transparent
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

/* Nabız halkası */
.social-btn .pulse-ring {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 15px;
  border: 2px solid rgba(20,71,232,.55);
  animation: iPulseRing 2.8s ease-out infinite;
  pointer-events: none;
}

/* Elmas parıltı noktaları */
.social-btn .sparkle {
  position: absolute;
  width: 5px; height: 5px;
  background: #F5C842;
  border-radius: 50%;
  pointer-events: none;
  animation: iSparkle 2.2s ease-in-out infinite;
  box-shadow: 0 0 8px #F5C842, 0 0 16px #F5C842;
}
.social-btn .sparkle:nth-child(1) { top: -4px;  left: 22%;  animation-delay: 0s; }
.social-btn .sparkle:nth-child(2) { top: 28%;   right: -4px; animation-delay: 0.55s; }
.social-btn .sparkle:nth-child(3) { bottom: -4px; right: 22%; animation-delay: 1.1s; }
.social-btn .sparkle:nth-child(4) { bottom: 28%; left: -4px;  animation-delay: 1.65s; }

/* İkon */
.social-btn i,
.social-btn svg {
  position: relative;
  z-index: 3;
  transition: all 0.38s cubic-bezier(0.23,1,0.32,1);
  color: #ffffff !important;
  fill: #ffffff !important;
  filter: drop-shadow(0 0 7px rgba(245,200,66,.55));
}

/* ── HOVER ── */
.social-btn:hover {
  transform: translateY(-9px) scale(1.11);
  animation: none;
  border-color: rgba(245,200,66,.55);
  box-shadow:
    0 0 36px rgba(20,71,232,.65),
    0 0 72px rgba(20,71,232,.30),
    inset 0 0 26px rgba(245,200,66,.22);
}

.social-btn:hover::before {
  animation: iLiquidMetal 1s linear infinite;
  opacity: 1;
}

.social-btn:hover .gold-wave {
  opacity: 1;
  animation: iGoldWave 0.75s ease forwards;
}

.social-btn:hover i,
.social-btn:hover svg {
  transform: scale(1.14);
  animation: iFireFlicker 0.5s ease infinite;
}

.social-btn:active {
  transform: translateY(-4px) scale(1.05);
}

/* ── STAGGER ── */
.social-btn:nth-child(1) { animation-delay: 0s,    0s; }
.social-btn:nth-child(2) { animation-delay: 0.2s,  0.3s; }
.social-btn:nth-child(3) { animation-delay: 0.4s,  0.6s; }

/* ── ÖZEL HOVER RENKLERİ ── */
.social-btn.whatsapp:hover {
  box-shadow:
    0 0 36px rgba(37,211,102,.55),
    0 0 72px rgba(20,71,232,.25),
    inset 0 0 26px rgba(37,211,102,.18);
}

.social-btn.phone:hover {
  box-shadow:
    0 0 36px rgba(245,200,66,.65),
    0 0 72px rgba(20,71,232,.30),
    inset 0 0 26px rgba(245,200,66,.25);
}

.social-btn.instagram:hover {
  box-shadow:
    0 0 36px rgba(225,48,108,.55),
    0 0 72px rgba(20,71,232,.25),
    inset 0 0 26px rgba(225,48,108,.18);
}

/* ══════════════════════════════════════════════
   YUKARI ÇIK BUTONU — Sağ Alt Köşe
══════════════════════════════════════════════ */
.top-btn {
  position: fixed;
  right: 28px;
  bottom: 36px;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #07174A 0%, #0F2560 50%, #07174A 100%);
  border: 1px solid rgba(20,71,232,.38);
  color: #ffffff;
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px) scale(0.3) rotate(-45deg);
  transition: all 0.65s cubic-bezier(0.34,1.56,0.64,1);
  overflow: visible;
}

/* Liquid kenarlık */
.top-btn::before {
  content: '';
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border-radius: 19px;
  background: linear-gradient(
    90deg,
    #1547E8,
    #F5C842,
    #1547E8,
    #F5C842,
    #1547E8
  );
  background-size: 300% 100%;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.4s;
}

/* İç arka plan */
.top-btn::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(145deg, #07174A 0%, #0F2560 50%, #07174A 100%);
  border-radius: 14px;
  z-index: -1;
}

/* Üstte altın ikon */
.top-btn .crown {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  animation: iFloatUp 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 7px rgba(245,200,66,.80));
  opacity: 0;
  transition: opacity 0.38s;
  z-index: 5;
}

/* Görünür hali */
.top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1) rotate(0deg);
  animation: iLuxGlow 3.5s ease-in-out infinite;
}

.top-btn.visible::before {
  opacity: 0.65;
  animation: iLiquidMetal 5s linear infinite;
}

.top-btn svg {
  position: relative;
  z-index: 3;
  transition: all 0.38s cubic-bezier(0.23,1,0.32,1);
  color: #ffffff !important;
  filter: drop-shadow(0 0 9px rgba(245,200,66,.65));
}

/* Hover */
.top-btn:hover {
  transform: translateY(-11px) scale(1.16);
  animation: none;
  border-color: rgba(245,200,66,.75);
  box-shadow:
    0 0 44px rgba(20,71,232,.75),
    0 0 88px rgba(20,71,232,.40),
    0 0 130px rgba(20,71,232,.20),
    inset 0 0 36px rgba(245,200,66,.30);
}

.top-btn:hover::before {
  opacity: 1;
  animation: iLiquidMetal 1.2s linear infinite;
}

.top-btn:hover .crown {
  opacity: 1;
}

.top-btn:hover svg {
  transform: translateY(-5px) scale(1.22);
  animation: iFireFlicker 0.42s ease infinite;
  filter: drop-shadow(0 0 18px rgba(245,200,66,1));
}

.top-btn:active {
  transform: translateY(-5px) scale(1.08);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .social-buttons {
    left: 18px;
    bottom: 90px;
    gap: 12px;
  }

  .social-btn {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    font-size: 1.15rem;
  }
  .social-btn::before { border-radius: 16px; }
  .social-btn::after  { border-radius: 11px; }
  .social-btn .pulse-ring { border-radius: 13px; }

  .top-btn {
    right: 18px;
    bottom: 26px;
    width: 50px;
    height: 50px;
    border-radius: 13px;
  }
  .top-btn::before { border-radius: 16px; }
  .top-btn::after  { border-radius: 11px; }
}

@media (max-width: 480px) {
  .social-buttons {
    left: 14px;
    bottom: 80px;
    gap: 10px;
  }

  .social-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 1.05rem;
    /* Mobilde performans için sade animasyon */
    animation: iLuxGlow 4s ease-in-out infinite;
  }
  .social-btn::before { border-radius: 15px; }
  .social-btn::after  { border-radius: 10px; }
  .social-btn .sparkle    { display: none; }
  .social-btn .pulse-ring { display: none; }

  .top-btn {
    right: 14px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .top-btn::before { border-radius: 15px; }
  .top-btn::after  { border-radius: 10px; }
  .top-btn .crown  { display: none; }
}

/* ── Hareketi azalt ── */
@media (prefers-reduced-motion: reduce) {
  .social-btn,
  .social-btn::before,
  .social-btn i,
  .social-btn svg,
  .social-btn .sparkle,
  .social-btn .pulse-ring,
  .top-btn,
  .top-btn::before,
  .top-btn svg {
    animation: none !important;
    transition-duration: 0.15s !important;
  }
}
@media (max-width: 768px) {
  .social-buttons {
    left: auto;
    right: 18px;
    bottom: 90px;
  }
}

@media (max-width: 480px) {
  .social-buttons {
    left: auto;
    right: 14px;
    bottom: 80px;
  }
}
