/* Setup Page Specific Styles */

/* Footer Logo Override */
.footer-logo {
  height: 40px !important;
  margin-bottom: 1rem !important;
}

/* Fix for global image shimmer/loading styles - URGENT FIX */
img:not([src*="data:"]):not(.loaded) {
  background: none !important;
  animation: none !important;
  min-height: 0 !important;
}

/* Setup Hero Section */
.setup-hero {
  background: linear-gradient(135deg, var(--cream) 0%, #F5F3F0 100%);
  padding: 8rem 0 4rem 0; /* Increased top padding to account for nav */
  text-align: center;
  position: relative;
}

.setup-hero-content h1 {
  font-family: var(--font-main);
  font-size: 3.5rem;
  font-weight: 300; /* Match homepage thin weight */
  line-height: 1.2;
  color: var(--dark-brown);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em; /* Match homepage spacing */
}

.setup-subtitle {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 300;
  color: #666;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* App Download Section - Matched to Homepage Cards */
.app-download-section {
  background: white;
  padding: 3rem;
  border-radius: 24px; /* Match typical card radius */
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06); /* Softer shadow like homepage */
  max-width: 650px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.05); /* Subtle border */
}

.app-download-section h2 {
  font-family: var(--font-main);
  margin-bottom: 1rem;
  color: var(--dark-brown);
  font-size: 2rem;
  font-weight: 300; /* Thin weight */
  letter-spacing: -0.02em;
}

.app-download-section > p {
  color: #666;
  margin-bottom: 2rem;
  font-weight: 300;
}

.smart-download-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.both-apps {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.app-badge {
  display: inline-block;
  transition: transform 0.2s ease;
}

.app-badge:hover {
  transform: translateY(-2px);
}

.app-badge img {
  height: 48px; /* Fixed consistent height */
  width: auto;
}

/* Setup Steps Section */
.setup-steps {
  background: var(--cream);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.setup-steps h2 {
  font-family: var(--font-main);
  color: var(--dark-brown);
  margin-top: 0;
  margin-bottom: 3rem;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.setup-steps-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.setup-step {
  display: flex;
  gap: 2rem;
  padding: 2.5rem;
  background: white;
  border-radius: 24px; /* Match card radius */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-items: center;
}

.setup-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.step-icon {
  flex-shrink: 0;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--forest-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 500;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin: 0 0 0.5rem 0;
  color: var(--dark-brown);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.step-content p {
  color: #555;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  font-size: 1.05rem;
  font-weight: 300;
}

.step-note {
  font-size: 0.875rem;
  color: var(--forest-green);
  font-weight: 500;
  margin: 0;
  padding: 0.4rem 0.8rem;
  background: var(--light-green);
  border-radius: 20px;
  display: inline-block;
}

/* Troubleshooting Section */
.setup-troubleshooting {
  background: white;
  padding: 6rem 0;
}

.setup-troubleshooting h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark-brown);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.troubleshooting-item {
  padding: 2.5rem;
  background: #fafafa;
  border-radius: 24px;
  border: none;
  transition: transform 0.3s ease;
}

.troubleshooting-item:hover {
  transform: translateY(-2px);
  background: #f5f5f5;
}

.troubleshooting-item h3 {
  color: var(--dark-brown);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.troubleshooting-item p {
  color: #666;
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

/* Contact Support Card - Matched to Contact Page */
.contact-support {
  text-align: center;
  padding: 3rem;
  background: var(--light-green);
  border-radius: 24px;
  box-shadow: 0 4px 0 0 rgba(44, 74, 60, 0.1);
  border: 2px solid var(--light-green);
  max-width: 700px;
  margin: 0 auto;
}

.contact-support h3 {
  color: var(--dark-brown);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 400;
}

.contact-support p {
  color: #444;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Contact Actions */
.contact-actions {
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.divider-text {
  color: #999;
  font-weight: 500;
  font-size: 0.95rem;
}

.email-link {
  text-decoration: underline;
  color: var(--forest-green);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.email-link:hover {
  color: var(--dark-green);
}

.response-time {
  font-size: 0.9rem !important;
  color: #666 !important;
  margin-top: 1rem !important;
}

/* Open Chat Button */
.open-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--forest-green);
  border: 1px solid var(--forest-green);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.open-chat-btn svg {
  stroke-width: 2px;
}

.open-chat-btn:hover {
  background: var(--forest-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 74, 60, 0.15);
}

/* Status Message Styles */
.status-message {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
}

.status-trying {
  background: #FEF3C7;
  color: #92400E;
  border: 2px solid #F59E0B;
}

.status-success {
  background: var(--light-green);
  color: #065F46;
  border: 2px solid var(--forest-green);
}

.status-failed {
  background: var(--light-red);
  color: var(--dark-red);
  border: 2px solid var(--dark-red);
}

/* Android Popup Styles */
.android-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 74, 60, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.android-popup {
  background: white;
  border-radius: 24px;
  max-width: 550px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: popupSlideIn 0.3s ease-out;
  border: none;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.popup-header h3 {
  margin: 0;
  color: var(--dark-brown);
  font-size: 1.5rem;
  font-weight: 400;
}

.popup-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.popup-close:hover {
  background: #f5f5f5;
  color: #333;
}

.popup-content {
  padding: 2rem;
}

.popup-content p {
  margin: 0 0 1rem 0;
  color: #666;
  line-height: 1.6;
  font-weight: 300;
}

.popup-note {
  font-style: italic;
  color: #888 !important;
  font-size: 0.95rem;
}

.popup-actions {
  padding: 1rem 2rem 2rem 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.popup-btn {
  background: var(--forest-green);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}

.popup-btn:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 74, 60, 0.2);
}

.popup-btn.secondary {
  background: #f5f5f5;
  color: var(--dark-brown);
}

.popup-btn.secondary:hover {
  background: #e0e0e0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .setup-hero {
    padding: 7rem 0 3rem 0;
  }

  .setup-hero-content h1 {
    font-size: 2.5rem;
  }

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

  .app-download-section {
    padding: 2rem 1.5rem;
  }

  .app-download-section h2 {
    font-size: 1.6rem;
  }

  .setup-step {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .step-icon {
    margin: 0 auto;
  }

  .both-apps {
    flex-direction: column;
    align-items: center;
  }

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

  .troubleshooting-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .android-popup {
    margin: 1rem;
    width: calc(100% - 2rem);
  }

  .popup-header,
  .popup-content,
  .popup-actions {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .popup-actions {
    flex-direction: column;
  }

  .popup-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .setup-hero {
    padding: 6rem 0 2rem 0;
  }

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

  .setup-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .app-download-section {
    padding: 1.5rem;
  }

  .setup-steps-grid {
    gap: 1.5rem;
  }

  .step-content h3 {
    font-size: 1.2rem;
  }

  .step-content p {
    font-size: 0.95rem;
  }
}
