/* =========================================
   GGR Website Audit - Setup Page Styles
   Author: GGR Plugin
   Description: Styles for onboarding/setup page
========================================= */

/* Reset some WP admin defaults */
.ggr-setup-page * {
  box-sizing: border-box;
}

/* Full page container */
.ggr-setup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background: #f6f7fb;
  padding: 20px;
}

/* Main card */
.ggr-setup-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 14px;
  max-width: 700px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
  animation: ggrFadeIn 0.4s ease-in-out;
}

.ggr-setup-card:hover {
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

/* Title */
.ggr-setup-card h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1d2327;
}

/* Subtitle */
.ggr-setup-card .subtitle {
  font-size: 14px;
  color: #6c7781;
  margin-bottom: 20px;
}

/* Image / Illustration */
.ggr-setup-image img {
  width: 360px;
  max-width: 100%;
  margin: 25px 0 15px;
}

/* Features list */
.ggr-features {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  text-align: left;
  display: inline-block;
}

.ggr-features li {
  display: flex;
  align-items: center;
  font-size: 15px;
  margin: 10px 0;
  color: #2c3338;
}

.ggr-features li::before {
  content: "✔";
  color: #22c55e;
  font-weight: bold;
  margin-right: 10px;
  font-size: 14px;
}

/* Buttons wrapper */
.ggr-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

/* Primary button */
.ggr-actions .button-primary {
  background: #2271b1;
  border-color: #2271b1;
  padding: 12px 22px;
  font-size: 15px;
  border-radius: 6px;
}

/* Secondary button */
.ggr-actions .button-secondary {
  margin-left: 10px;
}

/* Hover effects */
.ggr-actions .button:hover {
  opacity: 0.9;
}

/* Skip link - minimal SaaS style */
.ggr-skip-link {
  display: inline-block;
  margin-left: 15px;
  font-size: 13px;
  color: #6c7781;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ggr-skip-link:hover {
  color: #2271b1;
  text-decoration: underline;
}

/* Fade animation */
@keyframes ggrFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   PREMIUM SCAN LOADER
========================= */

.ggr-scan-loader {
  text-align: center;
  padding: 40px 20px;
}

.ggr-scan-animation {
  position: relative;
  width: 220px;
  height: 140px;
  margin: 0 auto 20px;
}

/* Laptop / screen */
.ggr-screen {
  width: 100%;
  height: 100%;
  background: #f4f7fb;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

/* Fake graph */
.ggr-bars span {
  display: inline-block;
  width: 8px;
  margin: 0 3px;
  background: #3b82f6;
  animation: ggrBar 1.2s infinite ease-in-out;
}

.ggr-bars span:nth-child(1) {
  height: 20px;
  animation-delay: 0s;
}
.ggr-bars span:nth-child(2) {
  height: 35px;
  animation-delay: 0.2s;
}
.ggr-bars span:nth-child(3) {
  height: 25px;
  animation-delay: 0.4s;
}
.ggr-bars span:nth-child(4) {
  height: 45px;
  animation-delay: 0.6s;
}

@keyframes ggrBar {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.6);
  }
}

/* 🔍 Magnifying glass */
.ggr-glass {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 4px solid #2563eb;
  border-radius: 50%;
  top: 20px;
  left: 10px;
  animation: ggrScanMove 2.5s infinite ease-in-out;
}

.ggr-glass::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 4px;
  background: #2563eb;
  bottom: -8px;
  right: -10px;
  transform: rotate(45deg);
  border-radius: 2px;
}

/* Movement animation */
@keyframes ggrScanMove {
  0% {
    left: 10px;
    top: 20px;
  }
  25% {
    left: 150px;
    top: 20px;
  }
  50% {
    left: 150px;
    top: 70px;
  }
  75% {
    left: 10px;
    top: 70px;
  }
  100% {
    left: 10px;
    top: 20px;
  }
}

/* Text */
.ggr-scan-text {
  font-size: 16px;
  color: #374151;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 600px) {
  .ggr-setup-card {
    padding: 25px;
  }

  .ggr-setup-card h1 {
    font-size: 20px;
  }
}
