/**
 * OFO Development Website - Button Component Styles
 * Contains styles for various buttons across the site
 */

/* Premium CTA buttons */
.premium-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #121212;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
  z-index: 1;
}

.premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.premium-btn:active {
  transform: translateY(1px);
}

.premium-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: all 0.6s ease;
  z-index: -1;
}

.premium-btn:hover::before {
  left: 100%;
}

/* Outline style buttons */
.premium-btn-outline {
  position: relative;
  background: transparent;
  color: #ffd700;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid #ffd700;
  z-index: 1;
}

.premium-btn-outline:hover {
  color: #121212;
  border-color: #ffa500;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.premium-btn-outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  transition: width 0.3s ease;
  z-index: -1;
}

.premium-btn-outline:hover::before {
  width: 100%;
}

/* Small tag-like buttons */
.tag-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tag-btn-yellow {
  background-color: rgba(234, 179, 8, 0.2);
  color: #eab308;
}

.tag-btn-yellow:hover {
  background-color: rgba(234, 179, 8, 0.3);
}

.tag-btn-blue {
  background-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.tag-btn-blue:hover {
  background-color: rgba(59, 130, 246, 0.3);
}

/* Button with icon */
.btn-with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-with-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(25, 25, 35, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: rgba(35, 35, 45, 0.9);
  transform: translateY(-5px);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .premium-btn, .premium-btn-outline {
    display: block;
    width: 100%;
    text-align: center;
  }
}
