@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Product Rating Website Design System */
:root {
  /* Green Theme Colors */
  --primary: 142 76% 36%;          /* Deep Green */
  --primary-light: 142 69% 58%;    /* Medium Green */
  --primary-dark: 142 84% 24%;     /* Darker Green */
  --primary-glow: 142 76% 36%;     /* Primary with glow */
  
  /* Neutral Colors */
  --background: 0 0% 98%;          /* Off-white */
  --surface: 0 0% 100%;            /* Pure white */
  --foreground: 220 13% 9%;        /* Dark text */
  --muted: 220 13% 46%;            /* Gray text */
  --border: 220 13% 91%;           /* Light border */
  
  /* Accent Colors */
  --accent: 45 93% 47%;            /* Warm accent */
  --success: 142 76% 36%;          /* Success green */
  --warning: 38 92% 50%;           /* Warning orange */
  --danger: 0 84% 60%;             /* Error red */
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-light)));
  --gradient-hero: linear-gradient(135deg, hsl(var(--primary-dark)), hsl(var(--primary)));
  --gradient-card: linear-gradient(145deg, hsl(var(--surface)), hsl(220 13% 96%));
  
  /* Shadows */
  --shadow-sm: 0 1px 2px hsl(var(--primary) / 0.1);
  --shadow-md: 0 4px 6px -1px hsl(var(--primary) / 0.1), 0 2px 4px -1px hsl(var(--primary) / 0.06);
  --shadow-lg: 0 10px 15px -3px hsl(var(--primary) / 0.1), 0 4px 6px -2px hsl(var(--primary) / 0.05);
  --shadow-glow: 0 0 20px hsl(var(--primary-glow) / 0.3);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-theme="dark"] {
  /* Dark Theme Colors */
  --background: 220 13% 9%;        /* Dark background */
  --surface: 220 13% 11%;          /* Dark surface */
  --foreground: 0 0% 98%;          /* Light text */
  --muted: 220 9% 46%;             /* Gray text */
  --border: 220 13% 18%;           /* Dark border */
  
  --gradient-card: linear-gradient(145deg, hsl(var(--surface)), hsl(220 13% 14%));
  --shadow-sm: 0 1px 2px hsl(0 0% 0% / 0.3);
  --shadow-md: 0 4px 6px -1px hsl(0 0% 0% / 0.3), 0 2px 4px -1px hsl(0 0% 0% / 0.2);
  --shadow-lg: 0 10px 15px -3px hsl(0 0% 0% / 0.3), 0 4px 6px -2px hsl(0 0% 0% / 0.2);
}

[data-theme="dark"] .text-danger {
    color: hsl(var(--danger) / 0.9);
    background: hsl(var(--danger) / 0.15);
    border-left-color: hsl(var(--danger));
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  transition: var(--transition-smooth);
  overflow-x: hidden;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 14px;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
  background: hsl(var(--surface));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
  background: hsl(var(--primary) / 0.05);
  border-color: hsl(var(--primary));
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-small {
  padding: 8px 16px;
  font-size: 12px;
}

/* Card Styles */
.card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid hsl(var(--border) / 0.5);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: hsl(var(--surface) / 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
  z-index: 1000;
  transition: var(--transition-smooth);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: hsl(var(--primary));
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: hsl(var(--muted));
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: hsl(var(--primary));
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: hsl(var(--primary));
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: none;
  border: none;
  color: hsl(var(--muted));
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: hsl(var(--foreground));
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero,
.about-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 70px;
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: -1;
}

.hero-content,
.about-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: hsl(var(--muted));
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Curved Shapes */
.shape-blob {
  position: absolute;
  border-radius: 50% 40% 60% 30%;
  background: var(--gradient-primary);
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--gradient-primary);
  clip-path: polygon(0 50%, 100% 80%, 100% 100%, 0% 100%);
}

/* Upload Section */
.upload-section {
  padding: 100px 0;
  background: hsl(var(--background));
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.125rem;
  color: hsl(var(--muted));
  max-width: 600px;
  margin: 0 auto;
}

.upload-container {
  max-width: 600px;
  margin: 0 auto;
}

.upload-card {
  padding: 0;
  min-height: 400px;
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  border: 2px dashed hsl(var(--border));
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.upload-zone:hover {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.02);
}

.upload-zone.dragover {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.05);
}

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

.upload-icon {
  color: hsl(var(--primary));
  margin-bottom: 20px;
}

.upload-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.upload-subtitle {
  color: hsl(var(--muted));
  margin-bottom: 20px;
}

.upload-formats {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.upload-formats span {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}

/* Image Preview */
.image-preview {
  padding: 20px;
}

.preview-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.preview-container img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, hsl(0 0% 0% / 0.8), transparent);
  padding: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Results */
.results {
  padding: 30px;
  text-align: center;
  border-top: 1px solid hsl(var(--border));
}

.rating-display {
  margin-bottom: 30px;
}

.rating-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.score {
  font-size: 3rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.score-label {
  font-size: 1.5rem;
  color: hsl(var(--muted));
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.star {
  color: #ffc107;
  font-size: 24px;
}

.rating-details h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.rating-details p {
  color: hsl(var(--muted));
  line-height: 1.6;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: hsl(var(--surface));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature-card {
  padding: 40px 30px;
  text-align: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.feature-description {
  color: hsl(var(--muted));
  line-height: 1.6;
}

/* About Page Styles */
.about-hero {
  min-height: 70vh;
}

.mission {
  padding: 100px 0;
}

.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mission-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
  display: block;
}

.stat-label {
  color: hsl(var(--muted));
  font-size: 0.875rem;
  font-weight: 500;
}

.mission-visual {
  display: flex;
  justify-content: center;
}

.visual-card {
  padding: 60px 40px;
  text-align: center;
  max-width: 400px;
}

.visual-content svg {
  margin-bottom: 24px;
}

.visual-content h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.visual-content p {
  color: hsl(var(--muted));
}

/* How It Works */
.how-it-works {
  padding: 100px 0;
  background: hsl(var(--surface));
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.step-card {
  padding: 40px 30px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 24px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.step-description {
  color: hsl(var(--muted));
  line-height: 1.6;
}

/* Technology Section */
.technology {
  padding: 100px 0;
}

.technology-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.tech-item {
  background: var(--gradient-card);
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid hsl(var(--border) / 0.5);
}

.tech-item svg {
  color: hsl(var(--primary));
  margin-bottom: 16px;
}

.tech-item span {
  font-weight: 500;
  font-size: 0.875rem;
}

.tech-features {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tech-feature svg {
  color: hsl(var(--primary));
  flex-shrink: 0;
}

/* Values Section */
.values {
  padding: 100px 0;
  background: hsl(var(--surface));
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.value-card {
  padding: 40px 30px;
  text-align: center;
}

.value-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
}

.value-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.value-description {
  color: hsl(var(--muted));
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-description {
  font-size: 1.125rem;
  color: hsl(var(--muted));
  margin-bottom: 40px;
}

/* Footer */
.footer {
  background: hsl(var(--surface));
  padding: 80px 0 30px;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: hsl(var(--primary));
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-description {
  color: hsl(var(--muted));
  max-width: 300px;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: hsl(var(--primary));
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid hsl(var(--border));
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: hsl(var(--muted));
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: hsl(var(--primary));
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .mission-content,
  .technology-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.125rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-large {
    padding: 14px 24px;
    font-size: 14px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid,
  .steps-grid,
  .values-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .mission-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero,
  .about-hero {
    min-height: 80vh;
  }
  
  .upload-card {
    margin: 0 -20px;
    border-radius: 0;
  }
  
  .preview-overlay {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

.disabled-link {
  color: #6c757d;         /* Bootstrap muted color */
  pointer-events: none;   /* Disable click */
  cursor: default;        /* Show default (non-click) cursor */
  text-decoration: none;  /* Remove underline */
  opacity: 0.65;          /* Optional: make it look disabled */
}

.rating-summary {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
}

.rating-overview {
    margin-bottom: 20px;
}

.rating-label .tag {
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 10px;
}

.tag.good {
    background-color: #c7f9cc;
    color: #1b5e20;
}

.tag.caution {
    background-color: #fff3cd;
    color: #856404;
}

.tag.bad {
    background-color: #f8d7da;
    color: #721c24;
}

.rating-details, .recommendation {
    background-color: var(--card-bg, #f8f8f8);
    padding: 16px;
    margin-top: 20px;
    border-radius: 12px;
    text-align: left;
}
