/* CSS Variables */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  --bg-gradient: linear-gradient(135deg, #d1d9fe 0%, #78aeed 50%, #aafb93 100%);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: rgba(255, 255, 255, 0.9);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Background Animation */
.bg-animation {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
}
.bg-animation::before, .bg-animation::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}
.bg-animation::before {
  width: 600px; height: 600px;
  background: rgba(255, 255, 255, 0.4);
  top: -200px; right: -200px;
}
.bg-animation::after {
  width: 400px; height: 400px;
  background: rgba(255, 255, 255, 0.3);
  bottom: -100px; left: -100px;
  animation-delay: -10s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(50px, 100px) rotate(180deg); }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

/* Header */
.header { padding: 25px 0; text-align: center; }
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.logo-img {
  height: 156px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}
.tagline { color: #3d5a80; font-size: 1rem; }

/* Hero */
.hero { padding: 50px 0 70px; text-align: center; }
.hero h1 {
  color: #1e3a5f;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 15px;
}
.hero p {
  color: #3d5a80;
  font-size: 1.15rem;
  max-width: 550px;
  margin: 0 auto 40px;
}

/* Search Box */
.search-box { max-width: 650px; margin: 0 auto; padding: 25px; }
.search-form { display: flex; gap: 12px; flex-wrap: wrap; }
.input-wrapper { flex: 1; min-width: 260px; position: relative; }
.input-wrapper input {
  width: 100%;
  padding: 16px 18px 16px 48px;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.input-wrapper input:focus {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 25px rgba(59, 130, 246, 0.2);
}
.input-wrapper .icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.1rem;
}
.btn-analyze {
  padding: 16px 35px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}
.btn-analyze:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(16, 185, 129, 0.4); }
.btn-analyze:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Loading */
.loading-section { display: none; padding: 70px 20px; text-align: center; }
.loading-section.active { display: block; }

/* Core Spinner - inspired by 21st.dev */
.core-spinner {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Base Glow */
.spinner-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter: blur(30px);
  background: rgba(255, 255, 255, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

/* Outer Dashed Ring */
.spinner-dashed {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  animation: spin 10s linear infinite;
}

/* Main Arc */
.spinner-main-arc {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  animation: spin 2s linear infinite;
}

/* Reverse Arc */
.spinner-reverse-arc {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  animation: spin 3s linear infinite reverse;
}

/* Inner Fast Ring */
.spinner-inner {
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-left-color: rgba(255, 255, 255, 0.5);
  animation: spin 1s ease-in-out infinite;
}

/* Orbital Dot Container */
.spinner-orbital {
  position: absolute;
  inset: 0;
  animation: spin 4s linear infinite;
}

/* Orbital Dot */
.spinner-orbital-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Center Core */
.spinner-core {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; } }

/* Loading Status Text */
.loading-status {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Results */
.results-section { display: none; padding: 35px 0 70px; }
.results-section.active { display: block; }
.results-header { text-align: center; margin-bottom: 35px; }
.results-header h2 { color: #1e3a5f; font-size: 1.8rem; margin-bottom: 12px; }
.analyzed-url {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e3a5f;
  word-break: break-all;
  text-shadow: 0 0 20px rgba(74, 144, 226, 0.4), 0 0 40px rgba(74, 144, 226, 0.2);
  background: linear-gradient(135deg, #1e3a5f, #4a90e2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 8px 20px;
  display: inline-block;
  position: relative;
}
.analyzed-url::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(30, 58, 95, 0.05));
  border-radius: 8px;
  filter: blur(8px);
  z-index: -1;
}

/* Score Card - Half Circle Design */
.score-card { padding: 36px; text-align: center; margin-bottom: 25px; }
.score-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease forwards;
}
.score-card-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1e3a5f;
}
.strength-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: fadeInUp 0.8s ease 0.8s forwards;
  opacity: 0;
}
.strength-badge.weak { background: rgba(239, 68, 68, 0.15); color: #dc2626; }
.strength-badge.moderate { background: rgba(251, 191, 36, 0.2); color: #b45309; }
.strength-badge.strong { background: rgba(34, 197, 94, 0.2); color: #059669; }

/* Half Circle SVG */
.half-circle-container {
  position: relative;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}
.half-circle-svg {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  height: 144px;
}
.half-circle-bg {
  stroke: rgba(30, 58, 95, 0.15);
}
.half-circle-progress {
  stroke: url(#score-gradient);
  stroke-dasharray: 141.37 141.37;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  transform-origin: center;
}

/* Score Display */
.score-display {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
}
.score-number {
  font-size: 2.5rem;
  font-weight: 500;
  color: #1e3a5f;
  line-height: 1;
  height: 60px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.score-digit {
  display: inline-block;
  animation: slideInDigit 0.8s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  opacity: 0;
  transform: translateY(100%);
}
.score-digit:nth-child(1) { animation-delay: 0.4s; }
.score-digit:nth-child(2) { animation-delay: 0.5s; }
.score-digit:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInDigit {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

.score-label {
  font-size: 0.875rem;
  color: #3d5a80;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.score-description {
  color: #3d5a80;
  font-size: 0.95rem;
  margin-bottom: 24px;
  min-height: 72px;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}
.action-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}
.btn {
  padding: 11px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.btn-secondary {
  background: white;
  color: #1e3a5f;
  border: 1px solid rgba(30, 58, 95, 0.2);
}
.btn-secondary:hover { background: #f8fafc; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

/* Grade Badge */
.grade-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  animation: gradePopIn 0.5s ease forwards;
  opacity: 0;
  transform: scale(0.5);
  position: relative;
  overflow: hidden;
}
.grade-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s ease-in-out infinite;
  animation-delay: 0.5s;
}
@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}
@keyframes gradePopIn {
  0% { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  60% { transform: scale(1.1) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.grade-A {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.grade-B {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.grade-C {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.grade-D {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.grade-F {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.grade-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  position: relative;
  overflow: hidden;
}
.grade-mini::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 3s ease-in-out infinite;
}
.grade-mini.grade-A {
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}
.grade-mini.grade-B {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}
.grade-mini.grade-C {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}
.grade-mini.grade-D {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}
.grade-mini.grade-F {
  background: linear-gradient(135deg, #f87171, #dc2626);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

/* Report Grid */
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.report-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}
.report-card.expanded {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
}

/* Collapsible Card */
.report-card-header {
  cursor: pointer;
  user-select: none;
  padding: 18px 22px;
  transition: background 0.2s ease;
  margin-bottom: 0;
  border-bottom: none;
}
.report-card-header:hover {
  background: rgba(255, 255, 255, 0.2);
}
.report-card-header .chevron {
  transition: transform 0.3s ease;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.report-card.expanded .report-card-header .chevron {
  transform: rotate(180deg);
}
.report-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
  padding: 0 22px;
  opacity: 0;
}
.report-card.expanded .report-card-body {
  max-height: 1000px;
  padding: 23px 22px 22px;
  opacity: 1;
  background: white;
}
.report-card-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.report-card:nth-child(1) { animation-delay: 0s; }
.report-card:nth-child(2) { animation-delay: 0.05s; }
.report-card:nth-child(3) { animation-delay: 0.1s; }
.report-card:nth-child(4) { animation-delay: 0.15s; }
.report-card:nth-child(5) { animation-delay: 0.2s; }
.report-card:nth-child(6) { animation-delay: 0.25s; }
.report-card:nth-child(7) { animation-delay: 0.3s; }
.report-card:nth-child(8) { animation-delay: 0.35s; }
.report-card:nth-child(9) { animation-delay: 0.4s; }
.report-card:nth-child(10) { animation-delay: 0.45s; }

.report-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}
.report-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e3a5f;
}
.report-card-title .icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.icon-meta { background: #e0e7ff; color: var(--primary); }
.icon-headings { background: #fef3c7; color: var(--warning); }
.icon-images { background: #d1fae5; color: var(--success); }
.icon-links { background: #dbeafe; color: var(--info); }
.icon-social { background: #fce7f3; color: var(--secondary); }
.icon-schema { background: #e0e7ff; color: var(--primary); }
.icon-performance { background: #fef3c7; color: var(--warning); }
.icon-technical { background: #f3e8ff; color: #7c3aed; }

/* Status */
.status-badge { padding: 5px 12px; border-radius: 15px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
.status-success { background: #d1fae5; color: #059669; }
.status-warning { background: #fef3c7; color: #d97706; }
.status-error { background: #fee2e2; color: #dc2626; }
.status-info { background: #dbeafe; color: #2563eb; }

.status-indicator { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; font-weight: 500; }
.status-indicator.status-success { color: var(--success); }
.status-indicator.status-warning { color: var(--warning); }
.status-indicator.status-error { color: var(--error); }
.status-indicator.status-info { color: var(--info); }

/* Data Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.data-table th { font-weight: 600; color: #3d5a80; font-size: 0.8rem; text-transform: uppercase; }
.data-table.compact td { padding: 8px 6px; }
.data-table .value-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); font-size: 0.85rem; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 15px; }
.stat-item { text-align: center; padding: 12px 8px; background: rgba(255, 255, 255, 0.4); border-radius: var(--radius-xs); border: 1px solid rgba(255, 255, 255, 0.3); }
.stat-item.good { background: rgba(209, 250, 229, 0.6); border-color: rgba(16, 185, 129, 0.2); }
.stat-item.bad { background: rgba(254, 226, 226, 0.6); border-color: rgba(239, 68, 68, 0.2); }
.stat-number { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.stat-item.good .stat-number { color: var(--success); }
.stat-item.bad .stat-number { color: var(--error); }
.stat-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.3px; }

/* Summary Card */
.summary-card { grid-column: 1 / -1; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; padding: 0 20px 20px; }
.summary-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: rgba(255, 255, 255, 0.4); border-radius: var(--radius-xs); border: 1px solid rgba(255, 255, 255, 0.3); }
.summary-label { font-weight: 500; font-size: 0.9rem; }
.summary-stars { color: #fbbf24; font-size: 0.8rem; }
.summary-stars .far { color: #e5e7eb; }

/* Critical Issues */
.critical-card {
  background: rgba(254, 226, 226, 0.4) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  border-left: 4px solid var(--error) !important;
}
.critical-list { list-style: decimal; padding-left: 20px; margin-left: 27px; }
.critical-list li { padding: 8px 0; color: var(--text-primary); font-size: 0.95rem; }

/* Check List */
.check-list { list-style: none; }
.check-list li { padding: 6px 0; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.check-list li.yes::before { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: var(--success); }
.check-list li.no::before { content: '\f00d'; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: var(--error); }

/* Two Column */
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-column .column h4 { font-size: 0.95rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; color: var(--text-primary); }

/* Strengths & Issues */
.strengths-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.strength-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; background: #d1fae5; color: #059669; border-radius: 15px; font-size: 0.8rem; font-weight: 500; }
.issues-list { list-style: none; margin-top: 12px; }
.issues-list li { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; font-size: 0.9rem; color: var(--text-secondary); }
.issues-list li i { color: var(--warning); margin-top: 3px; }
.recommendations-list { list-style: none; margin-top: 12px; }
.recommendations-list li { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; font-size: 0.9rem; color: var(--text-secondary); }
.recommendations-list li i { color: var(--info); margin-top: 3px; }

/* Schema */
.schema-summary { margin-bottom: 15px; }
.schema-types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.schema-type-tag { padding: 4px 10px; background: #e0e7ff; color: var(--primary); border-radius: 12px; font-size: 0.8rem; font-weight: 500; }

/* Heading Structure */
.heading-summary { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.heading-count { padding: 5px 12px; background: #f3f4f6; border-radius: 15px; font-size: 0.85rem; font-weight: 600; }
.heading-count.good { background: #d1fae5; color: var(--success); }
.heading-count.bad { background: #fee2e2; color: var(--error); }
.heading-structure { font-family: 'Monaco', 'Menlo', monospace; font-size: 0.8rem; background: rgba(255, 255, 255, 0.4); padding: 12px; border-radius: var(--radius-xs); max-height: 180px; overflow-y: auto; border: 1px solid rgba(255, 255, 255, 0.3); }
.heading-item { padding: 3px 0; color: var(--text-secondary); }
.heading-item.h1 { padding-left: 0; font-weight: 700; color: var(--text-primary); }
.heading-item.h2 { padding-left: 12px; }
.heading-item.h3 { padding-left: 24px; }
.heading-item.h4 { padding-left: 36px; }
.heading-item.more { color: var(--text-secondary); font-style: italic; }

/* Set/Missing */
.set { color: var(--success); font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.missing { color: var(--error); font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.no-data { color: var(--text-secondary); font-style: italic; text-align: center; padding: 20px; }

/* Google Preview */
.google-preview-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: var(--glass-shadow);
}
.google-preview-title { font-size: 1.1rem; font-weight: 700; color: #1e3a5f; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.google-preview-title i { color: #4285f4; }
.google-preview { font-family: Arial, sans-serif; max-width: 600px; }
.google-preview-result {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}
.google-preview-url { font-size: 12px; color: #202124; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.google-preview-url .favicon { width: 18px; height: 18px; border-radius: 50%; background: #f1f3f4; display: flex; align-items: center; justify-content: center; }
.google-preview-url span { color: #5f6368; }
.google-preview-link { font-size: 18px; color: #1a0dab; text-decoration: none; line-height: 1.3; margin-bottom: 4px; display: block; }
.google-preview-desc { font-size: 13px; color: #4d5156; line-height: 1.5; }
.google-preview-result.with-image {
  display: flex;
  gap: 16px;
}
.google-preview-content { flex: 1; }
.google-preview-image {
  width: 104px;
  height: 104px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.google-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.google-preview-url .favicon img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.google-preview-truncated { color: var(--warning); font-size: 0.85rem; margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.google-preview-ok { color: var(--success); font-size: 0.85rem; margin-top: 12px; display: flex; align-items: center; gap: 6px; }

/* Error */
.error-message { display: none; padding: 18px; text-align: center; margin-top: 18px; }
.error-message.active { display: block; }
.error-text { color: white; font-size: 1.05rem; margin-bottom: 10px; }
.error-details { color: var(--text-light); opacity: 0.8; font-size: 0.9rem; }

/* Print */
@media print {
  /* Hide non-essential elements */
  .bg-animation, .header, .hero, .search-box, .action-buttons, .loading-section, .footer { display: none !important; }

  /* Base styles */
  body { background: white !important; color: black !important; font-size: 10pt !important; }
  * { box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

  /* Results section */
  .results-section { display: block !important; padding: 0 !important; }
  .results-header { color: black !important; margin-bottom: 10px !important; }
  .results-header h2 { color: black !important; font-size: 14pt !important; margin: 0 !important; }
  .analyzed-url {
    font-size: 11pt !important;
    font-weight: 700 !important;
    color: black !important;
    background: none !important;
    -webkit-text-fill-color: black !important;
    text-shadow: none !important;
  }
  .analyzed-url::before { display: none !important; }

  /* Score card - keep on first page with summary */
  .score-card {
    background: #f5f5f5 !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
  }
  .score-card-title { color: black !important; font-size: 12pt !important; }
  .score-number { color: black !important; font-size: 36pt !important; }
  .score-label { color: black !important; font-size: 10pt !important; }
  .strength-badge { opacity: 1 !important; font-size: 9pt !important; }
  .score-description { color: #666 !important; opacity: 1 !important; font-size: 9pt !important; display: none !important; }
  .half-circle-container { opacity: 1 !important; transform: scale(0.7) !important; }
  .score-digit { opacity: 1 !important; transform: none !important; }

  /* Summary card - show on first page, hide stars and grades */
  .summary-card {
    page-break-inside: avoid !important;
    margin-bottom: 15px !important;
  }
  .summary-card .summary-stars { display: none !important; }
  .summary-card .grade-mini {
    display: inline-flex !important;
    font-size: 9pt !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
  }
  .summary-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
    padding: 10px !important;
  }
  .summary-item {
    padding: 6px 10px !important;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
  }
  .summary-label { font-size: 9pt !important; }

  /* Page break after summary section */
  .summary-card { page-break-after: always !important; }

  /* Report grid - FULL WIDTH columns */
  .report-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Report cards - expanded and readable */
  .report-card {
    break-inside: avoid !important;
    border: 1px solid #ccc !important;
    margin-bottom: 10px !important;
    background: white !important;
    page-break-inside: avoid !important;
  }
  .report-card-header {
    padding: 10px 15px !important;
    border-bottom: 1px solid #eee !important;
  }
  .report-card-title { font-size: 11pt !important; }
  .report-card-title .icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 10pt !important;
  }
  .report-card-header .chevron { display: none !important; }
  .report-card-body {
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    padding: 10px 15px 15px !important;
    display: block !important;
  }

  /* Content inside cards */
  .check-item { font-size: 9pt !important; padding: 4px 0 !important; }
  .meta-item { font-size: 9pt !important; padding: 4px 0 !important; }
  .stats-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
  .stat-item { padding: 8px !important; font-size: 9pt !important; }
  .stat-value { font-size: 12pt !important; }
  .stat-label { font-size: 8pt !important; }
  .two-column { grid-template-columns: 1fr !important; }

  /* Google preview */
  .google-preview-card {
    background: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    padding: 15px !important;
  }
  .google-preview-title { font-size: 11pt !important; }
  .google-preview-link { font-size: 12pt !important; }
  .google-preview-desc { font-size: 9pt !important; }
  .google-preview-url { font-size: 8pt !important; }

  /* Grade badges in print */
  .grade-badge, .grade-mini {
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }

  /* Glass elements */
  .glass { background: white !important; }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .search-form { flex-direction: column; }
  .input-wrapper { min-width: 100%; }
  .btn-analyze { width: 100%; justify-content: center; }
  .report-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-column { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
  .action-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* Footer */
.footer {
  padding: 30px 0;
  text-align: center;
}
.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1e3a5f;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.powered-by:hover {
  opacity: 1;
}
.systaro-logo {
  height: 24px;
  width: auto;
}

