/* SEO Audit Tool Styles */

/* Loading Spinner */
.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #87E0FD;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loading Messages Animation */
.loading-message {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-in-out;
  color: #374151 !important;
  font-weight: 500;
}

.dark .loading-message {
  color: #e5e7eb !important;
}

.loading-message.active {
  opacity: 1;
  transform: translateY(0);
  color: #1f2937 !important;
  font-weight: 600;
}

.dark .loading-message.active {
  color: #f3f4f6 !important;
}

/* SEO Score Circle */
.seo-score-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(from 0deg, #87E0FD 0deg, #013545 var(--score-angle), transparent var(--score-angle));
  display: flex;
  align-items: center;
  justify-content: center;
}

.seo-score-circle::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: white;
  z-index: 1;
}

.dark .seo-score-circle::before {
  background: #1f2937;
}

.seo-score-number {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  font-weight: 800;
  color: #013545;
}

.dark .seo-score-number {
  color: #87E0FD;
}

/* Result Cards */
.result-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.dark .result-card {
  background: #1f2937;
  border-color: #374151;
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.result-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
}

.dark .result-card-header {
  border-bottom-color: #374151;
}

.result-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
}

.result-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

.dark .result-card-title {
  color: #f9fafb;
}

/* Status Indicators */
.status-good {
  background: #10b981;
  color: white;
}

.status-warning {
  background: #f59e0b;
  color: white;
}

.status-error {
  background: #ef4444;
  color: white;
}

.status-info {
  background: #87E0FD;
  color: #013545;
}

/* Issue Lists */
.issue-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.issue-item {
  display: flex;
  align-items: flex-start;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  background: #f9fafb;
  border-left: 4px solid #ef4444;
}

.dark .issue-item {
  background: #374151;
}

.issue-item.warning {
  border-left-color: #f59e0b;
}

.issue-item.info {
  border-left-color: #3b82f6;
}

.issue-item.success {
  border-left-color: #10b981;
}

.issue-icon {
  margin-right: 0.75rem;
  margin-top: 0.125rem;
  font-size: 1.25rem;
}

.issue-text {
  flex: 1;
  color: #374151;
  line-height: 1.5;
}

.dark .issue-text {
  color: #d1d5db;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.metric-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.dark .metric-item {
  background: #374151;
  border-color: #4b5563;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: #87E0FD;
  display: block;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.dark .metric-label {
  color: #9ca3af;
}

/* Progress Bars */
.progress-bar {
  width: 100%;
  height: 0.5rem;
  background: #e5e7eb;
  border-radius: 0.25rem;
  overflow: hidden;
  margin: 0.5rem 0;
}

.dark .progress-bar {
  background: #4b5563;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #87E0FD, #013545);
  border-radius: 0.25rem;
  transition: width 0.5s ease;
}

/* Blur Effect for Lead Generation */
.blurred-content {
  filter: blur(8px);
  pointer-events: none;
  transition: filter 0.3s ease;
}

/* Recommendation Cards */
.recommendation-card {
  background: linear-gradient(135deg, #87E0FD/10, #013545/10);
  border: 1px solid #87E0FD/20;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.recommendation-priority {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.priority-high {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.priority-medium {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fed7aa;
}

.priority-low {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.dark .priority-high {
  background: #7f1d1d;
  color: #fca5a5;
}

.dark .priority-medium {
  background: #7c2d12;
  color: #fdba74;
}

.dark .priority-low {
  background: #14532d;
  color: #86efac;
}

/* Header Structure Visualization */
.header-structure {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.header-tag {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-tag.h1 {
  background: #dc2626;
  color: white;
}

.header-tag.h2 {
  background: #ea580c;
  color: white;
}

.header-tag.h3 {
  background: #d97706;
  color: white;
}

.header-tag.h4 {
  background: #65a30d;
  color: white;
}

.header-tag.h5 {
  background: #0891b2;
  color: white;
}

.header-tag.h6 {
  background: #7c3aed;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .seo-score-circle {
    width: 150px;
    height: 150px;
  }
  
  .seo-score-circle::before {
    width: 120px;
    height: 120px;
  }
  
  .seo-score-number {
    font-size: 2rem;
  }
  
  .result-card {
    padding: 1.5rem;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .result-card-header {
    flex-direction: column;
    text-align: center;
  }
  
  .result-card-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* Animation for result cards appearing */
.result-card {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.6s ease forwards;
}

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

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom scrollbar for better UX */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #87E0FD #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #87E0FD;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #013545;
}

/* CTA Section Enhancements */
.border-3 {
  border-width: 3px;
}

/* Text shadow for better readability */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Button hover effects */
.cta-button-primary {
  background: #87E0FD;
  color: #1a1a1a;
  border: 2px solid #87E0FD;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button-primary:hover {
  background: white;
  color: #013545;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(135, 224, 253, 0.3);
  text-decoration: none;
}

.cta-button-secondary {
  background: transparent;
  color: white;
  border: 3px solid white;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button-secondary:hover {
  background: white;
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

/* Force high contrast for CTA section */
.cta-section {
  background: #1a1a1a !important;
}

.cta-section h2 {
  color: #ffffff !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9) !important;
}

.cta-section p {
  color: #f0f0f0 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
}
