/* Icon Buttons - Specifys.ai */

/* Base icon button styles */
.icon-btn {
  position: fixed;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: none;
  border-radius: var(--border-radius-full);
  width: 40px;
  height: 40px;
  font-size: var(--font-size-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: var(--z-fixed);
  transition: all var(--transition-normal);
  outline: none;
}

.icon-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--primary-color);
  color: var(--text-white);
}

.icon-btn:focus {
  outline: none;
}

.icon-btn:active {
  outline: none;
  transform: translateY(-1px);
}

/* Scroll to Top Button */
.scroll-to-top {
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  display: flex !important;
  transform: rotate(180deg);
  transition: transform var(--transition-normal);
}

.scroll-to-top i {
  margin: 0;
  display: block;
  transform: rotate(0deg);
  transition: none;
}

.scroll-to-top.scrolled-down {
  transform: rotate(0deg);
}

.scroll-to-top:hover {
  box-shadow: var(--shadow-lg);
}

.scroll-to-top.scrolled-down:hover {
  box-shadow: var(--shadow-lg);
}

.scroll-to-top:active {
  opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .icon-btn {
    width: 35px;
    height: 35px;
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {
  .icon-btn {
    width: 32px;
    height: 32px;
    font-size: var(--font-size-sm);
  }
}
