/**
 * Scroll to Top Button Styles
 * Bu dosya scroll to top butonunun tüm stillerini içerir
 */

/* Scroll to top buton stili ve animasyonu */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 0.8; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 0 4px 12px rgba(184, 155, 140, 0.4), 
                0 2px 6px rgba(0, 0, 0, 0.1);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 6px 20px rgba(184, 155, 140, 0.6), 
                0 4px 10px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
  }
}

#scrollTopButton {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;  z-index: 999999 !important;
  background: linear-gradient(135deg, #b89b8c 0%, #6d4c3d 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 60px !important;
  height: 60px !important;  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(184, 155, 140, 0.4), 
              0 2px 6px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-size: 24px !important;
  text-decoration: none !important;
  display: flex !important;
  text-align: center !important;
  line-height: 60px !important;
  outline: none !important;
  user-select: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  min-width: 60px !important;
  min-height: 60px !important;
  /* Normal kullanım - Başlangıçta gizli */
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(20px) !important;
  align-items: center !important;
  justify-content: center !important;
}

#scrollTopButton.hide {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(20px) !important;
}

#scrollTopButton.show {
  opacity: 0.6 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  animation: pulse 3s infinite ease-in-out !important;
}

#scrollTopButton:hover {
  opacity: 1 !important;
  transform: scale(1.15) translateY(-4px) !important;
  background: linear-gradient(135deg, #e6d7cc 0%, #d2bfae 30%, #b89b8c 70%, #6d4c3d 100%) !important;
  box-shadow: 0 12px 30px rgba(184, 155, 140, 0.7), 
              0 6px 15px rgba(0, 0, 0, 0.15) !important;
  filter: brightness(1.1) !important;
}

#scrollTopButton i {
  display: inline-block !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  pointer-events: none !important;
}

/* Responsive button */
@media screen and (max-width: 768px) {
  #scrollTopButton {
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
    bottom: 20px !important;
    right: 20px !important;
    line-height: 50px !important;
  }
  
  #scrollTopButton:hover {
    transform: scale(1.1) translateY(-3px) !important;
  }
}

@media screen and (max-width: 480px) {
  #scrollTopButton {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
    bottom: 12px !important;
    right: 12px !important;
    line-height: 40px !important;
  }
  
  #scrollTopButton:hover {
    transform: scale(1.05) translateY(-1px) !important;
  }
}

/* Çok küçük ekranlar için (360px altı) */
@media screen and (max-width: 360px) {
  #scrollTopButton {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
    bottom: 10px !important;
    right: 10px !important;
    line-height: 36px !important;
  }
  
  #scrollTopButton:hover {
    transform: scale(1.03) translateY(-1px) !important;
  }
}
