/**
 * PWA Installation Cards - Responsive Design v5
 * Cores: Verde corporativo BTS (#0EA5A8, #0F766E)
 * Layout: 3 cards responsivos com instruções claras
 */

.pwa-install-container {
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  display: none;
}

.pwa-install-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.pwa-install-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: #6b7280;
  margin-bottom: 3rem;
}

/* Cards Grid */
.pwa-install-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0 0 0;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}

/* Hide cards on mobile - show only Android */
@media (max-width: 768px) {
  .pwa-install-cards {
    grid-template-columns: 1fr;
  }
  
  .ios-card,
  .desktop-card {
    display: none;
  }
  
  .android-card {
    display: block;
  }
}

/* Card Base */
.pwa-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pwa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Platform-specific borders */
.ios-card {
  border-top-color: #0EA5A8;
}

.android-card {
  border-top-color: #2ecc71;
}

.desktop-card {
  border-top-color: #0F766E;
}

/* Card Header */
.card-platform-header {
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-bottom: 1px solid #e5e7eb;
}

.card-platform-header h3 {
  margin: 0.5rem 0 0 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.platform-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
}

.ios-icon {
  background: linear-gradient(135deg, #0EA5A8 0%, #0F766E 100%);
}

.android-icon {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.desktop-icon {
  background: linear-gradient(135deg, #0F766E 0%, #0d6064 100%);
  color: white;
  stroke-width: 2;
}

.platform-icon svg {
  width: 30px;
  height: 30px;
}

.card-platform-header h3 {
  margin: 0.5rem 0 0 0;
  font-size: 1.2rem;
  color: #1f2937;
  font-weight: 600;
}

/* Instruction Steps */
.instruction-steps {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 300px;
  overflow-y: auto;
}

.step {
  display: flex;
  gap: 0.8rem;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0EA5A8 0%, #0F766E 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.step-content {
  flex: 1;
}

.step-title {
  margin: 0 0 0.2rem;
  font-weight: 600;
  color: #1f2937;
  font-size: 0.85rem;
}

.step-detail {
  margin: 0;
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.2;
}

/* Icon Demos */
.icon-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin: 0.5rem 0;
  font-size: 0;
}

.ios-share {
  background: rgba(14, 165, 168, 0.1);
  color: #0EA5A8;
}

.android-menu {
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
}

.desktop-install {
  background: rgba(15, 118, 110, 0.1);
  color: #0F766E;
}

.icon-demo svg {
  width: 20px;
  height: 20px;
}

/* Card Footer */
.card-footer {
  padding: 0.8rem 1.5rem;
  background: #f3f4f6;
  text-align: center;
  margin-top: auto;
}

.platform-badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
}

/* Benefits Section */
.pwa-benefits {
  background: linear-gradient(135deg, #0EA5A8 0%, #0F766E 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
}

.pwa-benefits h3 {
  font-size: 1.8rem;
  margin: 0 0 2rem;
  font-weight: 700;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.benefit {
  text-align: center;
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.benefit p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.benefit strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pwa-install-container {
    padding: 1.5rem 0.5rem;
  }

  .pwa-install-title {
    font-size: 2rem;
  }

  .pwa-install-subtitle {
    font-size: 1rem;
  }

  .pwa-install-cards {
    gap: 1.5rem;
  }

  .card-platform-header {
    padding: 1.5rem;
  }

  .platform-icon {
    width: 56px;
    height: 56px;
  }

  .platform-icon svg {
    width: 32px;
    height: 32px;
  }

  .card-platform-header h3 {
    font-size: 1.2rem;
  }

  .instruction-steps {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .pwa-install-container {
    padding: 1rem 0.5rem;
  }

  .pwa-install-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pwa-install-title {
    font-size: 1.6rem;
  }

  .pwa-install-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .card-platform-header {
    padding: 1.5rem 1rem;
  }

  .instruction-steps {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .step {
    gap: 0.8rem;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .step-title {
    font-size: 0.9rem;
  }

  .step-detail {
    font-size: 0.8rem;
  }

  .card-footer {
    padding: 1rem;
  }
}

/* Animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pwa-card {
  animation: slideInUp 0.6s ease-out;
}

.pwa-card:nth-child(2) {
  animation-delay: 0.1s;
}

.pwa-card:nth-child(3) {
  animation-delay: 0.2s;
}
