/* I'm Alive Today- Main Stylesheet */

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --text-color: #333;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --border-radius: 15px;
  --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color: var(--text-color);
}

/* Hero Section */
.hero {
  background: var(--primary-gradient);
  color: white;
  padding: 80px 0;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero .lead {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Buttons */
.btn-primary-gradient {
  background: var(--primary-gradient);
  border: none;
  color: white;
  padding: 15px 40px;
  font-size: 1.25rem;
  border-radius: 50px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-primary-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  color: white;
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 auto 1.5rem;
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

/* Pricing Section */
.pricing-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px;
  max-width: 400px;
  margin: 0 auto;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.pricing-card .price-label {
  color: var(--text-muted);
  font-size: 1rem;
}

/* FAQ Section */
.faq .accordion-button:not(.collapsed) {
  background: var(--bg-light);
  color: var(--primary-color);
}

.faq .accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* App Page Styles */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.alive-button {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(145deg, #52d869 0%, #28a745 100%);
  border: none;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 15px 50px rgba(40, 167, 69, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.alive-button:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 70px rgba(40, 167, 69, 0.5);
}

.alive-button:active {
  transform: scale(0.95);
}

.alive-button.loading {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  cursor: not-allowed;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.7);
  }
  100% {
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
  }
}

/* Info Card */
.info-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  margin-top: 30px;
  width: 100%;
  max-width: 400px;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 10px;
}

.status-safe {
  background: #d4edda;
  color: #155724;
}

.status-warning {
  background: #fff3cd;
  color: #856404;
}

.status-critical {
  background: #f8d7da;
  color: #721c24;
}

/* Install Prompt */
#installPrompt {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  text-align: center;
  max-width: 400px;
  width: 100%;
}

#installPrompt h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

#installPrompt ol {
  text-align: left;
  margin: 20px 0;
}

#installPrompt li {
  margin-bottom: 15px;
  padding-left: 10px;
}

/* Auth Forms */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
}

.auth-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.auth-card h1 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
}

.auth-card .form-control {
  padding: 12px 15px;
  border-radius: 10px;
}

.auth-card .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.auth-card .btn-primary {
  background: var(--primary-gradient);
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
}

/* Onboarding */
.onboard-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  padding: 20px;
}

.onboard-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px;
  width: 100%;
  max-width: 500px;
}

.onboard-card h1 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 10px;
}

.onboard-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Footer */
footer {
  background: #1a1a2e;
  color: #a0a0b0;
}

footer a {
  color: #a0a0b0;
  text-decoration: none;
}

footer a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .alive-button {
    width: 200px;
    height: 200px;
    font-size: 1.5rem;
  }

  .pricing-card,
  .auth-card,
  .onboard-card {
    margin: 0 15px;
    padding: 25px;
  }
}
