/* Modern CSS for Ad Effectiveness Scorer */

/* Navigation Bar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  padding: 15px 0;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #4f46e5;
}

.nav-menu a.active {
  color: #4f46e5;
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #4f46e5;
  border-radius: 1px;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

header {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  padding: 40px 30px;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

main {
  padding: 40px 30px;
}

.form-section {
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.btn {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.results-section {
  background: #f8fafc;
  border-radius: 8px;
  padding: 30px;
  margin-top: 30px;
}

.score-display {
  text-align: center;
  margin-bottom: 30px;
}

.score-number {
  font-size: 3rem;
  font-weight: 700;
  color: #4f46e5;
  margin-bottom: 10px;
}

.score-label {
  color: #6b7280;
  font-size: 1.1rem;
}

.info-section {
  margin-bottom: 25px;
}

.info-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}

.feedback-section,
.rewrites-section {
  margin-bottom: 30px;
}

.feedback-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #4f46e5;
}

.rewrites-section h2 {
  margin-bottom: 20px;
  color: #374151;
}

.rewrite-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid #10b981;
}

.rewrite-item:nth-child(2) {
  border-left-color: #f59e0b;
}

.rewrite-item:nth-child(3) {
  border-left-color: #ef4444;
}

.rewrite-title {
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.rewrite-title::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 10px;
}

.rewrite-item:nth-child(1) .rewrite-title::before {
  background: #10b981;
}

.rewrite-item:nth-child(2) .rewrite-title::before {
  background: #f59e0b;
}

.rewrite-item:nth-child(3) .rewrite-title::before {
  background: #ef4444;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #7c3aed;
}

.error-message {
  background: #fef2f2;
  color: #dc2626;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #dc2626;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  header {
    padding: 30px 20px;
  }

  h1 {
    font-size: 2rem;
  }

  main {
    padding: 30px 20px;
  }

  .score-number {
    font-size: 2.5rem;
  }

  .nav-container {
    padding: 0 20px;
  }
  
  .nav-menu {
    gap: 15px;
  }
  
  .nav-menu a {
    font-size: 14px;
    padding: 12px 0;
  }
}

/* Landing Page Styles */
.hero-section {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.features-section {
  padding: 80px 0;
  background: #f8fafc;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 0 30px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 3rem;
  color: #4f46e5;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1f2937;
  font-weight: 600;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 25px;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.feature-link:hover {
  color: #7c3aed;
}

.feature-link i {
  transition: transform 0.3s ease;
}

.feature-link:hover i {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .nav-brand {
    font-size: 1.2rem;
  }
  
  .nav-menu {
    gap: 10px;
  }
  
  .nav-menu a {
    font-size: 12px;
  }
}