/**
 * Optimizer Marketing Components CSS
 * Dedicated styles for Resume Optimizer promotional sections
 * All classes prefixed with 'ro-' (resume optimizer) to prevent conflicts
 * Version: 1.0
 */

/* ============================================================================
   FEATURE CARD - Optimizer Highlight (Item #1)
   ============================================================================ */

.ro-feature-card-wrapper {
  position: relative;
  animation: fadeup 0.6s ease-out;
}

.ro-new-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.ro-feature-card {
  background: linear-gradient(135deg, #faf5ff 0%, #eff6ff 100%);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  border: 2px solid #e9d5ff;
  transition: all 0.3s ease;
}

.ro-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.2);
  border-color: #c084fc;
}

.ro-feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #f3e8ff 0%, #dbeafe 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.ro-feature-icon svg {
  width: 32px;
  height: 32px;
  color: #8b5cf6;
}

.ro-feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ro-premium-badge {
  font-size: 0.875rem;
  font-weight: 400;
  color: #8b5cf6;
}

.ro-feature-description {
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.ro-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.ro-feature-list-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.ro-feature-list-item svg {
  width: 20px;
  height: 20px;
  color: #8b5cf6;
  margin-right: 0.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ro-included-box {
  margin-top: 1rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9d5ff;
}

.ro-included-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
  display: block;
}

.ro-included-tiers {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ro-included-tier {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

/* ============================================================================
   BEFORE/AFTER SHOWCASE SECTION (Item #3)
   ============================================================================ */

.ro-showcase-section {
  background: linear-gradient(135deg, #faf5ff 0%, #ffffff 50%, #eff6ff 100%);
  padding: 5rem 0;
}

.ro-showcase-header {
  text-align: center;
  margin-bottom: 3rem;
}

.ro-showcase-badge {
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1rem;
}

.ro-showcase-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin: 1rem 0;
  line-height: 1.2;
}

.ro-showcase-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.6;
}

.ro-comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

.ro-comparison-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ro-comparison-card.before {
  border: 2px solid #fca5a5;
}

.ro-comparison-card.after {
  border: 2px solid #86efac;
  position: relative;
}

.ro-sparkle {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 2rem;
  animation: bounce 1s infinite;
}

.ro-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.ro-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  font-size: 1.5rem;
}

.ro-card-icon.before {
  background: #fee2e2;
}

.ro-card-icon.after {
  background: #d1fae5;
}

.ro-card-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.25rem 0;
}

.ro-card-score {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

.ro-card-score.before {
  color: #dc2626;
}

.ro-card-score.after {
  color: #16a34a;
}

.ro-improvement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ro-improvement-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #374151;
}

.ro-improvement-item span:first-child {
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.ro-metric-box {
  margin-top: 1.5rem;
  padding: 0.75rem;
  border-radius: 8px;
}

.ro-metric-box.before {
  background: #fef2f2;
}

.ro-metric-box.after {
  background: #f0fdf4;
}

.ro-metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0;
}

.ro-metric-label.before {
  color: #991b1b;
}

.ro-metric-label.after {
  color: #15803d;
}

.ro-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

.ro-time-badge {
  margin-top: 1.5rem;
  text-align: center;
  padding: 1rem;
}

.ro-time-label {
  font-size: 0.75rem;
  color: #7c3aed;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.ro-time-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #7c3aed;
  display: block;
}

.ro-showcase-cta {
  text-align: center;
  margin-top: 3rem;
}

.ro-cta-button {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ro-cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5);
}

.ro-cta-button svg {
  margin-left: 0.5rem;
  width: 20px;
  height: 20px;
}

.ro-cta-subtext {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* ============================================================================
   PRICING CARD ENHANCEMENT (Item #4)
   ============================================================================ */

.ro-featured-feature {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  padding: 0.75rem;
  border-radius: 8px;
  border: 2px solid #a78bfa;
  margin: 0.5rem 0;
}

.ro-feature-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.ro-feature-icon-wrapper {
  flex-shrink: 0;
}

.ro-feature-text {
  flex: 1;
}

.ro-feature-title-inline {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.ro-badge-new-inline {
  display: inline-block;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ro-feature-subtext {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
}

/* ============================================================================
   FLOATING ANNOUNCEMENT BANNER (Item #5)
   ============================================================================ */

.ro-announcement-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  padding: 0.75rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.ro-announcement-banner.hidden {
  transform: translateY(-100%);
}

.ro-announcement-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.ro-announcement-text-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ro-announcement-emoji {
  font-size: 1.5rem;
  animation: bounce 1s infinite;
}

.ro-announcement-text {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

.ro-announcement-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ro-announcement-button {
  background: white;
  color: #8b5cf6;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.ro-announcement-button:hover {
  background: #f5f3ff;
}

.ro-close-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.ro-close-button:hover {
  color: #e5e7eb;
}

.ro-close-button svg {
  width: 20px;
  height: 20px;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (min-width: 768px) {
  .ro-comparison-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ro-showcase-title {
    font-size: 2.5rem;
  }

  .ro-announcement-text {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .ro-feature-card {
    padding: 1.5rem;
  }

  .ro-new-badge {
    font-size: 0.65rem;
    padding: 4px 12px;
  }

  .ro-showcase-section {
    padding: 3rem 0;
  }

  .ro-showcase-title {
    font-size: 1.75rem;
  }

  .ro-comparison-card {
    padding: 1.5rem;
  }

  .ro-announcement-text .ro-desktop-only {
    display: none;
  }

  .ro-announcement-button {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 640px) {
  .ro-included-tiers {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .ro-showcase-section {
    padding: 2rem 0;
  }

  .ro-comparison-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .ro-announcement-banner {
    padding: 0.5rem 0;
  }

  .ro-announcement-content {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0 0.75rem;
  }

  .ro-announcement-text-wrapper {
    flex: 1;
    min-width: 0;
    gap: 0.5rem;
  }

  .ro-announcement-emoji {
    font-size: 1.25rem;
    flex-shrink: 0;
  }

  .ro-announcement-text {
    font-size: 0.75rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ro-announcement-actions {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .ro-announcement-button {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .ro-close-button {
    padding: 0.125rem;
  }

  .ro-close-button svg {
    width: 18px;
    height: 18px;
  }

  .ro-announcement-text {
    font-size: 0.8125rem;
    text-align: center;
  }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
