/* ================================================================
   BUSINESS GRADER — Specific Styles
   Base: /assets/landing.css (colors, container, form-card, btn-gold)
   ================================================================ */

/* === FONT OVERRIDES === */
/* Grader uses Bebas Neue for headlines, Inter for body, JetBrains Mono for numbers */
.grader-hero h1,
.grader-headline,
.results-section-title,
.results-cta-text,
.score-number,
.business-info-name,
.grade-badge {
  font-family: 'Bebas Neue', sans-serif;
}

.grader-sub,
.grader-form-card label,
.grader-form-card input,
.form-trust,
.loading-message,
.loading-sub,
.check-name,
.check-detail,
.check-why,
.results-cta-text,
.competitor-name,
.field-error {
  font-family: 'Inter', sans-serif;
}

.score-max,
.check-score,
.review-count,
.competitor-rating,
.competitor-reviews {
  font-family: 'JetBrains Mono', monospace;
}

/* === HERO / FORM SECTION === */
.grader-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 64px;
}

.grader-hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.grader-hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .grader-hero {
    padding: 80px 0 100px;
  }
  .grader-hero-layout {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.grader-hero-copy {
  text-align: center;
}

@media (min-width: 900px) {
  .grader-hero-copy {
    text-align: left;
  }
}

.grader-headline {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  color: #D4AF37;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.grader-sub {
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  color: #9ca3af;
  line-height: 1.7;
  max-width: 480px;
}

@media (max-width: 899px) {
  .grader-sub {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Form card adjustments */
.grader-form-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .grader-form-card {
    margin: 0;
    max-width: none;
  }
}

/* Field-level validation errors */
.field-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 4px;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.field-error.visible {
  opacity: 1;
}

/* === LOADING SECTION === */
.grader-loading {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  display: inline-block;
  margin-bottom: 32px;
}

.loading-ring {
  animation: loadingSpin 1.2s linear infinite;
  transform-origin: center;
}

@keyframes loadingSpin {
  to { transform: rotate(360deg); }
}

.loading-message {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 8px;
  transition: opacity 0.3s ease;
}

.loading-sub {
  font-size: 0.875rem;
  color: #6b7280;
}

/* === RESULTS SECTION === */
.grader-results {
  padding: 64px 0 100px;
}

.grader-results .container {
  max-width: 720px;
}

/* Score ring area */
.results-score-area {
  text-align: center;
  margin-bottom: 48px;
}

.score-ring {
  position: relative;
  display: inline-block;
  width: 200px;
  height: 200px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .score-ring {
    width: 160px;
    height: 160px;
  }
  .score-ring svg {
    width: 160px;
    height: 160px;
  }
}

.score-ring svg {
  width: 200px;
  height: 200px;
}

.score-ring circle.bg {
  stroke: rgba(255,255,255,0.08);
  fill: none;
  stroke-width: 8;
}

.score-ring circle.progress {
  stroke: #D4AF37;
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotate(-90deg);
  transform-origin: center;
}

.score-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.score-number {
  font-size: 100px;
  font-weight: 400;
  color: #D4AF37;
  line-height: 1;
  letter-spacing: -0.02em;
}

@media (max-width: 480px) {
  .score-number {
    font-size: 72px;
  }
}

.score-max {
  font-size: 18px;
  font-weight: 700;
  color: #6b7280;
}

.score-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: #9ca3af;
  margin-bottom: 12px;
}

.grade-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.grade-badge.grade-excellent {
  background: rgba(212,175,55,0.12);
  color: #D4AF37;
  border: 1px solid rgba(212,175,55,0.25);
}
.grade-badge.grade-good {
  background: rgba(52,211,153,0.12);
  color: #34d399;
  border: 1px solid rgba(52,211,153,0.25);
}
.grade-badge.grade-needs-work {
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.25);
}
.grade-badge.grade-critical {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.25);
}

/* Results cards */
.results-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .results-card {
    padding: 32px;
  }
}

.results-section-title {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

/* Business info */
.business-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.business-info-name {
  font-size: 1.75rem;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.business-info-address {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #6b7280;
}

.business-info-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.stars-row {
  display: flex;
  gap: 2px;
}

.star-icon {
  width: 18px;
  height: 18px;
}
.star-icon.filled {
  color: #f59e0b;
}
.star-icon.half {
  color: #f59e0b;
}
.star-icon.empty {
  color: #374151;
}

.review-count {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #9ca3af;
}

/* === CHECK ITEMS === */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.check-item:last-child {
  border-bottom: none;
}

.check-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-icon.pass { color: #34d399; }
.check-icon.fail { color: #ef4444; }
.check-icon.warning { color: #f59e0b; }
.check-icon.skip { color: #4b5563; }

.check-body {
  flex: 1;
  min-width: 0;
}

.check-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.check-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
}

.check-score {
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  white-space: nowrap;
}

.check-detail {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
}

.check-why {
  font-size: 0.8125rem;
  color: #ef4444;
  opacity: 0.85;
  margin-top: 6px;
  line-height: 1.5;
}

/* === COMPETITOR COMPARISON === */
.competitor-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.competitor-row:last-child {
  border-bottom: none;
}

.competitor-row.is-you {
  background: rgba(212,175,55,0.06);
  border-radius: 8px;
  padding: 14px 12px;
  margin: 0 -12px;
}

.competitor-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competitor-name .you-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #D4AF37;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 8px;
}

.competitor-rating {
  font-size: 0.875rem;
  font-weight: 700;
  color: #f59e0b;
  white-space: nowrap;
}

.competitor-reviews {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #9ca3af;
  white-space: nowrap;
}

/* === CTA CARD === */
.results-cta-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .results-cta-card {
    padding: 56px 40px;
  }
}

.results-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.results-cta-text {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.01em;
  max-width: 520px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.results-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.results-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  width: auto;
  min-width: 180px;
}

@media (max-width: 480px) {
  .results-cta-buttons {
    flex-direction: column;
  }
  .results-cta-btn {
    width: 100%;
  }
}

.btn-outline {
  background: transparent;
  color: #D4AF37;
  border: 1px solid rgba(212,175,55,0.4);
}
.btn-outline:hover {
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.6);
  transform: translateY(-2px);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-score-area {
  animation: fadeInUp 0.6s ease both;
}

.results-card {
  animation: fadeInUp 0.6s ease both;
}

.results-card:nth-child(2) { animation-delay: 0.1s; }
.results-card:nth-child(3) { animation-delay: 0.2s; }
.results-card:nth-child(4) { animation-delay: 0.3s; }

.results-cta-card {
  animation: fadeInUp 0.6s ease 0.4s both;
}

/* Score ring pulse on first load */
@keyframes ringPulse {
  0% { filter: drop-shadow(0 0 0 rgba(212,175,55,0)); }
  50% { filter: drop-shadow(0 0 20px rgba(212,175,55,0.3)); }
  100% { filter: drop-shadow(0 0 0 rgba(212,175,55,0)); }
}

.score-ring.animate {
  animation: ringPulse 2s ease 1.5s 1;
}
