/* ════════════════════════════════════════════════
   💎 DIAMOND CUT — PREMIUM SOSYAL & YUKARI BUTONLAR
   Marka: Antrasit #2C3038 · Altın #C9A961 · Krem #FAFAF7
   Endüstriyel · Lüks · Kurumsal
   ════════════════════════════════════════════════ */

/* ── KEYFRAMES ─────────────────────────────── */

@keyframes dHeartbeat {
  0%, 100% { transform: scale(1); }
  10%       { transform: scale(1.07); }
  20%       { transform: scale(1); }
  30%       { transform: scale(1.04); }
  40%       { transform: scale(1); }
}

@keyframes dLuxGlow {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(201,169,97,.40),
      0 0 36px rgba(201,169,97,.18),
      inset 0 0 12px rgba(232,199,122,.10);
  }
  50% {
    box-shadow:
      0 0 28px rgba(201,169,97,.65),
      0 0 56px rgba(201,169,97,.32),
      inset 0 0 22px rgba(232,199,122,.20);
  }
}

@keyframes dLiquidMetal {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes dGoldWave {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

@keyframes dPulseRing {
  0% {
    transform: scale(0.85);
    opacity: 1;
    border-color: rgba(201,169,97,.75);
  }
  100% {
    transform: scale(2);
    opacity: 0;
    border-color: rgba(232,199,122,0);
  }
}

@keyframes dSparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50%       { opacity: 1; transform: scale(1) rotate(180deg); }
}

@keyframes dDiamondShine {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 8px rgba(232,199,122,.70)); }
  33%       { filter: brightness(1.18) drop-shadow(0 0 14px rgba(201,169,97,.85)); }
  66%       { filter: brightness(1.10) drop-shadow(0 0 10px rgba(232,199,122,.95)); }
}

@keyframes dFloatUp {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
  50%       { transform: translateX(-50%) translateY(-6px) rotate(2deg); }
}

/* ══════════════════════════════════════════════
   SOSYAL BUTONLAR — Sol Alt Köşe
══════════════════════════════════════════════ */
.social-buttons {
  position: fixed;
  left: 28px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9998;
}

/* ── TEMEL BUTON ── */
.social-btn {
  width: 56px;
  height: 56px;
  border-radius: 4px; /* Endüstriyel keskin köşe */
  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, #1F2329 0%, #2C3038 50%, #1F2329 100%);
  border: 1px solid rgba(201,169,97,.40);
  cursor: pointer;
  transition: all 0.38s cubic-bezier(0.23,1,0.32,1);
  animation: dHeartbeat 3.5s ease-in-out infinite, dLuxGlow 4s ease-in-out infinite;
}

/* Liquid metal kenarlık — altın gradient */
.social-btn::before {
  content: '';
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border-radius: 7px;
  background: linear-gradient(
    90deg,
    #C9A961,
    #E8C77A,
    #C9A961,
    #2C3038,
    #E8C77A,
    #C9A961
  );
  background-size: 300% 100%;
  animation: dLiquidMetal 4.5s linear infinite;
  z-index: -2;
  opacity: 0.85;
}

/* İç koyu arka plan */
.social-btn::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(145deg, #1F2329 0%, #2C3038 50%, #1F2329 100%);
  border-radius: 2px;
  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(232,199,122,.30),
    rgba(232,199,122,.55),
    rgba(232,199,122,.30),
    transparent
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

/* Nabız halkası - altın */
.social-btn .pulse-ring {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 4px;
  border: 2px solid rgba(201,169,97,.60);
  animation: dPulseRing 2.8s ease-out infinite;
  pointer-events: none;
}

/* Elmas parıltı noktaları */
.social-btn .sparkle {
  position: absolute;
  width: 5px; height: 5px;
  background: #E8C77A;
  transform: rotate(45deg); /* Elmas şekli */
  pointer-events: none;
  animation: dSparkle 2.2s ease-in-out infinite;
  box-shadow: 0 0 8px #E8C77A, 0 0 16px #C9A961;
}
.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: #E8C77A !important;
  fill: #E8C77A !important;
  filter: drop-shadow(0 0 7px rgba(232,199,122,.65));
}

/* ── HOVER ── */
.social-btn:hover {
  transform: translateY(-9px) scale(1.11);
  animation: none;
  border-color: rgba(232,199,122,.85);
  box-shadow:
    0 0 36px rgba(201,169,97,.70),
    0 0 72px rgba(201,169,97,.35),
    inset 0 0 26px rgba(232,199,122,.25);
}

.social-btn:hover::before {
  animation: dLiquidMetal 1s linear infinite;
  opacity: 1;
}

.social-btn:hover .gold-wave {
  opacity: 1;
  animation: dGoldWave 0.75s ease forwards;
}

.social-btn:hover i,
.social-btn:hover svg {
  transform: scale(1.18);
  color: #FFFFFF !important;
  fill: #FFFFFF !important;
  animation: dDiamondShine 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,.65),
    0 0 72px rgba(201,169,97,.30),
    inset 0 0 26px rgba(37,211,102,.22);
  border-color: rgba(37,211,102,.6);
}
.social-btn.whatsapp:hover i,
.social-btn.whatsapp:hover svg {
  color: #25D366 !important;
  fill: #25D366 !important;
}

.social-btn.phone:hover {
  box-shadow:
    0 0 36px rgba(232,199,122,.85),
    0 0 72px rgba(201,169,97,.45),
    inset 0 0 26px rgba(232,199,122,.35);
  border-color: rgba(232,199,122,.9);
}

.social-btn.instagram:hover {
  box-shadow:
    0 0 36px rgba(225,48,108,.60),
    0 0 72px rgba(201,169,97,.30),
    inset 0 0 26px rgba(225,48,108,.22);
  border-color: rgba(225,48,108,.6);
}
.social-btn.instagram:hover i,
.social-btn.instagram:hover svg {
  color: #E1306C !important;
  fill: #E1306C !important;
}

.social-btn.facebook:hover {
  box-shadow:
    0 0 36px rgba(24,119,242,.55),
    0 0 72px rgba(201,169,97,.30),
    inset 0 0 26px rgba(24,119,242,.20);
  border-color: rgba(24,119,242,.6);
}
.social-btn.facebook:hover i,
.social-btn.facebook:hover svg {
  color: #1877F2 !important;
  fill: #1877F2 !important;
}

/* ══════════════════════════════════════════════
   YUKARI ÇIK BUTONU — Sağ Alt Köşe
══════════════════════════════════════════════ */
.top-btn {
  position: fixed;
  right: 28px;
  bottom: 36px;
  width: 58px;
  height: 58px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1F2329 0%, #2C3038 50%, #1F2329 100%);
  border: 1px solid rgba(201,169,97,.45);
  color: #E8C77A;
  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 altın kenarlık */
.top-btn::before {
  content: '';
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border-radius: 7px;
  background: linear-gradient(
    90deg,
    #C9A961,
    #E8C77A,
    #C9A961,
    #E8C77A,
    #C9A961
  );
  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, #1F2329 0%, #2C3038 50%, #1F2329 100%);
  border-radius: 2px;
  z-index: -1;
}

/* Üstte altın elmas (eski crown yerine) */
.top-btn .crown {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #E8C77A, #C9A961);
  transform: translateX(-50%) rotate(45deg);
  animation: dFloatUp 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(232,199,122,.85));
  opacity: 0;
  transition: opacity 0.38s;
  z-index: 5;
  box-shadow: 0 0 12px rgba(201,169,97,.6);
}

/* Görünür hali */
.top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1) rotate(0deg);
  animation: dLuxGlow 3.5s ease-in-out infinite;
}

.top-btn.visible::before {
  opacity: 0.75;
  animation: dLiquidMetal 5s linear infinite;
}

.top-btn svg,
.top-btn i {
  position: relative;
  z-index: 3;
  transition: all 0.38s cubic-bezier(0.23,1,0.32,1);
  color: #E8C77A !important;
  fill: #E8C77A !important;
  filter: drop-shadow(0 0 9px rgba(232,199,122,.70));
}

/* Hover */
.top-btn:hover {
  transform: translateY(-11px) scale(1.16);
  animation: none;
  border-color: rgba(232,199,122,.90);
  box-shadow:
    0 0 44px rgba(201,169,97,.85),
    0 0 88px rgba(201,169,97,.45),
    0 0 130px rgba(201,169,97,.22),
    inset 0 0 36px rgba(232,199,122,.32);
}

.top-btn:hover::before {
  opacity: 1;
  animation: dLiquidMetal 1.2s linear infinite;
}

.top-btn:hover .crown {
  opacity: 1;
}

.top-btn:hover svg,
.top-btn:hover i {
  transform: translateY(-5px) scale(1.22);
  color: #FFFFFF !important;
  fill: #FFFFFF !important;
  animation: dDiamondShine 0.42s ease infinite;
  filter: drop-shadow(0 0 18px rgba(232,199,122,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: 4px;
    font-size: 1.15rem;
  }
  .social-btn::before { border-radius: 7px; }
  .social-btn::after  { border-radius: 2px; }
  .social-btn .pulse-ring { border-radius: 4px; }

  .top-btn {
    right: 18px;
    bottom: 26px;
    width: 50px;
    height: 50px;
    border-radius: 4px;
  }
  .top-btn::before { border-radius: 7px; }
  .top-btn::after  { border-radius: 2px; }
}

@media (max-width: 480px) {
  .social-buttons {
    left: 14px;
    bottom: 80px;
    gap: 10px;
  }

  .social-btn {
    width: 46px;
    height: 46px;
    border-radius: 4px;
    font-size: 1.05rem;
    animation: dLuxGlow 4s ease-in-out infinite;
  }
  .social-btn::before { border-radius: 7px; }
  .social-btn::after  { border-radius: 2px; }
  .social-btn .sparkle    { display: none; }
  .social-btn .pulse-ring { display: none; }

  .top-btn {
    right: 14px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border-radius: 4px;
  }
  .top-btn::before { border-radius: 7px; }
  .top-btn::after  { border-radius: 2px; }
  .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;
  }
}