/* X Feed Autocommentor - Dark X/Twitter Themed Design */
/* Extends shared.css with app-specific components */

/* App Theme - X (Twitter) Brand Colors */
:root {
  --x-black: #000000;
  --x-white: #ffffff;
  --x-gray: #71767b;
  --x-dark-bg: #15202b;
  --x-darker-bg: #0d1117;
  --x-accent: #1d9bf0;
  --x-accent-dark: #1a8cd8;
  --x-green: #00ba7c;
  --x-surface: #192734;
}

/* ==================== X LOGO ICON ==================== */

.x-logo-icon {
  background: var(--x-black) !important;
}

.x-logo-icon::before {
  background: var(--x-black) !important;
}

.x-logo-icon svg {
  color: var(--x-white) !important;
}

/* ==================== HERO SECTION ==================== */

.app-hero.x-hero {
  background: linear-gradient(135deg, #000000 0%, #0d1117 50%, #15202b 100%);
  color: var(--x-white);
}

.app-hero.x-hero::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(29, 155, 240, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(29, 155, 240, 0.04) 0%, transparent 40%);
}

.app-hero.x-hero h1 {
  color: var(--x-white);
}

.app-hero.x-hero p {
  color: #8899a6;
}

.x-badge {
  background: rgba(29, 155, 240, 0.15) !important;
  color: var(--x-accent) !important;
}

.x-dot {
  background: var(--x-accent) !important;
}

.x-gradient {
  color: var(--x-accent) !important;
}

.x-stat {
  color: var(--x-accent) !important;
}

.app-hero.x-hero .hero-stats {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.app-hero.x-hero .hero-stat-label {
  color: #8899a6;
}

/* Chrome Web Store Badge */
.chrome-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--x-accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--font-display);
}

.chrome-badge:hover {
  background: var(--x-accent-dark);
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(29, 155, 240, 0.4);
  color: #fff;
  text-decoration: none;
}

.chrome-badge-icon {
  font-size: 2rem;
}

.chrome-badge-text {
  text-align: left;
}

.chrome-badge-text small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.85;
  font-weight: 400;
}

.chrome-badge-text strong {
  font-size: 1.1rem;
  font-weight: 500;
}

.chrome-badge-light {
  background: #fff;
  color: var(--x-black);
}

.chrome-badge-light:hover {
  background: #f0f0f0;
  color: var(--x-black);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

/* ==================== PAIN POINT SECTION ==================== */

.x-pain-section {
  padding: 80px 20px;
  background: var(--x-darker-bg);
  color: var(--x-white);
}

.x-pain-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.x-pain-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  color: var(--x-white);
  margin-bottom: 24px;
}

.x-pain-content p {
  font-size: 1.125rem;
  color: #8899a6;
  line-height: 1.8;
  margin-bottom: 16px;
}

.x-pain-content strong {
  color: var(--x-accent);
}

/* ==================== FEATURES SECTION ==================== */

.x-features-section {
  background: #f7f9fa !important;
}

.x-tag {
  background: rgba(29, 155, 240, 0.1) !important;
  color: var(--x-accent) !important;
}

.x-feature-icon {
  background: rgba(29, 155, 240, 0.1) !important;
  color: var(--x-accent) !important;
}

.feature-card:nth-child(2) .x-feature-icon {
  background: rgba(0, 186, 124, 0.1) !important;
  color: var(--x-green) !important;
}

.feature-card:nth-child(3) .x-feature-icon {
  background: rgba(29, 155, 240, 0.1) !important;
  color: var(--x-accent) !important;
}

.feature-card:nth-child(4) .x-feature-icon {
  background: rgba(249, 24, 128, 0.1) !important;
  color: #f91880 !important;
}

.feature-card:nth-child(5) .x-feature-icon {
  background: rgba(255, 212, 0, 0.1) !important;
  color: #ffd400 !important;
}

.feature-card:nth-child(6) .x-feature-icon {
  background: rgba(120, 86, 255, 0.1) !important;
  color: #7856ff !important;
}

/* ==================== AUDIENCE SECTION ==================== */

.x-audience-section {
  padding: 80px 20px;
  background: #fff;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.audience-card {
  background: #f7f9fa;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #eff3f4;
  transition: all 0.2s ease;
  text-align: center;
}

.audience-card:hover {
  border-color: var(--x-accent);
  box-shadow: 0 4px 20px rgba(29, 155, 240, 0.1);
  transform: translateY(-2px);
}

.audience-icon {
  width: 56px;
  height: 56px;
  background: rgba(29, 155, 240, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--x-accent);
  margin: 0 auto 20px;
}

.audience-card:nth-child(2) .audience-icon {
  background: rgba(0, 186, 124, 0.1);
  color: var(--x-green);
}

.audience-card:nth-child(3) .audience-icon {
  background: rgba(249, 24, 128, 0.1);
  color: #f91880;
}

.audience-card:nth-child(4) .audience-icon {
  background: rgba(255, 212, 0, 0.1);
  color: #e0a800;
}

.audience-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.audience-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ==================== HOW IT WORKS ==================== */

.x-how-it-works {
  background: #f7f9fa !important;
}

.x-step {
  background: var(--x-black) !important;
  color: var(--x-white) !important;
}

.step:nth-child(2) .x-step {
  background: var(--x-accent) !important;
}

.step:nth-child(3) .x-step {
  background: var(--x-green) !important;
}

/* ==================== RESULTS SECTION ==================== */

.x-results-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #000000 0%, #0d1117 50%, #15202b 100%);
  color: var(--x-white);
}

.x-results-section .section-title {
  color: var(--x-white);
}

.x-results-section .section-subtitle {
  color: #8899a6;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.result-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.2s ease;
}

.result-card:hover {
  background: rgba(29, 155, 240, 0.1);
  border-color: rgba(29, 155, 240, 0.3);
  transform: translateY(-2px);
}

.result-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--x-accent);
  margin-bottom: 8px;
}

.result-label {
  font-size: 0.9375rem;
  color: #8899a6;
  line-height: 1.5;
}

/* ==================== SAFETY SECTION ==================== */

.x-safety-section {
  padding: 80px 20px;
  background: #fff;
}

.x-safety-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.x-safety-icon {
  width: 72px;
  height: 72px;
  background: rgba(0, 186, 124, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--x-green);
  margin: 0 auto 24px;
}

.x-safety-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.x-safety-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.x-safety-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.x-tip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(0, 186, 124, 0.08);
  color: var(--x-green);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(0, 186, 124, 0.2);
}

/* ==================== CTA SECTION ==================== */

.x-cta-section {
  background: linear-gradient(135deg, #000000 0%, #15202b 100%) !important;
}

/* ==================== MODAL ==================== */

.x-modal::before {
  background: linear-gradient(90deg, #000, #1d9bf0, #000) !important;
}

.x-modal-icon {
  background: linear-gradient(135deg, rgba(29, 155, 240, 0.15) 0%, rgba(29, 155, 240, 0.05) 100%) !important;
}

.x-modal-icon svg {
  color: var(--x-black) !important;
}

.x-modal-badge {
  background: linear-gradient(135deg, var(--x-black) 0%, #15202b 100%) !important;
}

.x-modal-cta {
  background: var(--x-accent) !important;
}

.x-modal-cta:hover {
  background: var(--x-accent-dark) !important;
}

/* ==================== MODAL STYLES (duplicated from trending for standalone) ==================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: scale(0.8) translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #000, #1d9bf0, #000);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f3f4;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #5f6368;
}

.modal-close:hover {
  background: #e8eaed;
  transform: rotate(90deg);
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: #202124;
  margin-bottom: 12px;
}

.modal-subtitle {
  font-size: 1rem;
  color: #5f6368;
  line-height: 1.6;
  margin-bottom: 28px;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #000 0%, #15202b 100%);
  color: white;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 24px;
  animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(29, 155, 240, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(29, 155, 240, 0.5); }
}

.modal-badge svg {
  width: 18px;
  height: 18px;
}

.modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--x-accent);
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.modal-cta:hover {
  background: var(--x-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 155, 240, 0.3);
}

.modal-footer {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: #9aa0a6;
}

/* ==================== PAGE HEADER (Privacy/Contact) ==================== */

.page-header.x-page-header {
  background: linear-gradient(135deg, #000000 0%, #15202b 100%);
}

/* ==================== SECTION STYLES ==================== */

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #e8f0fe;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--google-blue);
  margin-bottom: 16px;
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 768px) {
  .app-hero.x-hero {
    min-height: auto;
    padding: 120px 20px 64px;
  }

  .app-hero.x-hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn,
  .hero-buttons .chrome-badge {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .x-pain-section,
  .x-audience-section,
  .x-results-section,
  .x-safety-section,
  .features-section,
  .how-it-works,
  .cta-section {
    padding: 64px 20px;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .x-safety-tips {
    gap: 8px;
  }

  .steps-container::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .results-grid {
    grid-template-columns: 1fr;
  }

  .result-value {
    font-size: 2rem;
  }
}
