/* Trending App - Google-Inspired Clean Design */
/* Extends shared.css with app-specific components */

/* App Theme - Using Google Design System */
:root {
  --app-primary: var(--google-blue, #4285f4);
  --app-secondary: var(--google-green, #34a853);
  --app-accent: var(--google-yellow, #fbbc05);
  --app-error: var(--google-red, #ea4335);
}

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

.app-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 120px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle background pattern */
.app-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(66, 133, 244, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(52, 168, 83, 0.05) 0%, transparent 40%);
}

.app-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

/* Hero badge - Google style */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #e8f0fe;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--google-blue);
  margin-bottom: 24px;
  animation: fade-in-up 0.5s ease forwards;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--google-green);
  border-radius: 50%;
}

.app-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-primary);
  animation: fade-in-up 0.5s ease 0.1s forwards;
  opacity: 0;
}

.hero-title-gradient {
  color: var(--google-blue);
}

.app-hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fade-in-up 0.5s ease 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-in-up 0.5s ease 0.3s forwards;
  opacity: 0;
}

/* Google Play Badge */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.play-badge:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-2);
  color: #fff;
}

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

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

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

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

/* Stats in hero */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  animation: fade-in-up 0.5s ease 0.4s forwards;
  opacity: 0;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--google-blue);
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

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

.features-section {
  padding: 80px 20px;
  background: var(--surface-secondary);
}

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

.feature-card {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: #e8f0fe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--google-blue);
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.feature-card:nth-child(2) .feature-icon {
  background: #e6f4ea;
  color: var(--google-green);
}

.feature-card:nth-child(3) .feature-icon {
  background: #fef7e0;
  color: #f9ab00;
}

.feature-card:nth-child(4) .feature-icon {
  background: #fce8e6;
  color: var(--google-red);
}

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

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

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

.how-it-works {
  padding: 80px 20px;
  background: #fff;
}

.steps-container {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

/* Connection line between steps */
.steps-container::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.step {
  text-align: center;
  max-width: 260px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--google-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: white;
  margin: 0 auto 20px;
  border: 4px solid #fff;
  box-shadow: var(--shadow-1);
}

.step:nth-child(2) .step-number {
  background: var(--google-green);
}

.step:nth-child(3) .step-number {
  background: var(--google-yellow);
  color: var(--text-primary);
}

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

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

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

.cta-section {
  background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

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

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-section .btn-secondary {
  background: #fff;
  color: var(--google-blue);
  border: none;
}

.cta-section .btn-secondary:hover {
  background: #f8f9fa;
  box-shadow: var(--shadow-2);
}

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

.page-header {
  background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
  padding: 140px 20px 60px;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 12px;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.125rem;
}

/* ==================== PAGE CONTENT ==================== */

.page-content {
  padding: 64px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--google-blue);
}

.page-content h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.page-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.page-content ul {
  margin: 16px 0 16px 24px;
  color: var(--text-secondary);
}

.page-content ul li {
  margin-bottom: 12px;
  line-height: 1.7;
  padding-left: 8px;
}

.page-content ul li::marker {
  color: var(--google-blue);
}

.page-content a {
  color: var(--google-blue);
  font-weight: 500;
}

.page-content a:hover {
  text-decoration: underline;
}

/* ==================== CONTACT SECTION ==================== */

.contact-section {
  background: var(--surface-secondary);
  padding: 80px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-form-container {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--border-color);
}

.contact-form-container h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-form-container > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--google-blue);
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: var(--google-red);
  background-color: #fef7f7;
}

.error-message {
  display: none;
  color: var(--google-red);
  font-size: 0.8125rem;
  margin-top: 6px;
  font-weight: 500;
}

.required {
  color: var(--google-red);
}

/* Checkbox */
.checkbox-group {
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--google-blue);
  cursor: pointer;
}

/* reCAPTCHA */
.recaptcha-group {
  margin-top: 24px;
  padding: 16px;
  background: var(--surface-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.recaptcha-group .g-recaptcha {
  display: flex;
  justify-content: center;
}

.recaptcha-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 10px;
  margin-bottom: 0;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--google-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  background: #1a73e8;
  box-shadow: var(--shadow-2);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Form Messages */
.form-message {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: 8px;
  margin-top: 24px;
}

.form-message svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.form-message.success {
  background: #e6f4ea;
  border: 1px solid #34a853;
}

.form-message.success svg {
  color: var(--google-green);
}

.form-message.success strong {
  color: #137333;
}

.form-message.success p {
  color: #137333;
  margin: 4px 0 0;
}

.form-message.error {
  background: #fce8e6;
  border: 1px solid #ea4335;
}

.form-message.error svg {
  color: var(--google-red);
}

.form-message.error strong {
  color: #c5221f;
}

.form-message.error p {
  color: #c5221f;
  margin: 4px 0 0;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.info-card:hover {
  box-shadow: var(--shadow-2);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: #e8f0fe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--google-blue);
  margin-bottom: 16px;
}

.info-card:nth-child(2) .info-icon {
  background: #e6f4ea;
  color: var(--google-green);
}

.info-card:nth-child(3) .info-icon {
  background: #fef7e0;
  color: #f9ab00;
}

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

.info-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

.info-card a {
  color: var(--google-blue);
  font-weight: 500;
}

.info-card a:hover {
  text-decoration: underline;
}

.info-card .highlight {
  color: var(--google-blue);
  font-weight: 600;
}

/* Social Connect */
.social-connect {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border-color);
  text-align: center;
}

.social-connect h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--surface-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--google-blue);
  color: white;
  border-color: var(--google-blue);
}

/* ==================== FAQ SECTION ==================== */

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

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface-secondary);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: var(--google-blue);
}

.faq-item.active {
  border-color: var(--google-blue);
  box-shadow: var(--shadow-1);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  font-family: inherit;
}

.faq-question:hover {
  color: var(--google-blue);
}

.faq-question svg {
  flex-shrink: 0;
  color: var(--google-blue);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--google-blue);
  font-weight: 500;
}

/* ==================== SECTION HEADERS ==================== */

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

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

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

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

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

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

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .social-connect {
    grid-column: span 2;
  }

  .hero-stats {
    gap: 32px;
  }

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

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

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

  .app-hero p {
    font-size: 1.0625rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .contact-form-container {
    padding: 28px;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .social-connect {
    grid-column: span 1;
  }

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

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

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

  .hero-stat-value {
    font-size: 1.75rem;
  }

  .steps-container {
    gap: 40px;
  }

  .features-section,
  .how-it-works,
  .cta-section,
  .contact-section,
  .faq-section {
    padding: 64px 20px;
  }
}

@media (max-width: 480px) {
  .contact-form-container {
    padding: 24px 20px;
  }

  .info-card {
    padding: 20px;
  }

  .feature-card {
    padding: 24px;
  }

  .hero-badge {
    font-size: 0.8125rem;
    padding: 6px 14px;
  }

  .page-header {
    padding: 120px 20px 48px;
  }
}
