/**
 * Pull-to-Refresh Styles
 *
 * Visual feedback for mobile pull-to-refresh gesture
 */

.ptr-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0) 100%);
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  pointer-events: none;
}

.ptr-indicator.visible {
  transform: translateY(0);
}

.ptr-indicator.refreshing {
  transform: translateY(0);
}

.ptr-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.ptr-indicator.pulling .ptr-icon {
  transform: rotate(180deg);
}

.ptr-indicator.refreshing .ptr-icon {
  animation: ptr-spin 1s linear infinite;
}

.ptr-text {
  margin-left: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

@keyframes ptr-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Prevent overscroll bounce during pull-to-refresh on iOS */
body.ptr-active {
  overscroll-behavior-y: contain;
}
