/* Index Page Styles */

/* Lucide Icons */
.logo-icon i {
  width: 60px;
  height: 60px;
  stroke-width: 1.5;
}

.feature-icon i {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.btn i {
  width: 18px;
  height: 18px;
  margin-left: 6px;
}

/* Fix button icon alignment */
.hero-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.emergency-icon i {
  width: 28px;
  height: 28px;
}

.hero-section {
  min-height: 100vh;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 600px;
  animation: slideUp 0.8s ease-out;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.hero-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.logo {
  margin-bottom: 30px;
}

.logo-icon {
  font-size: 60px;
  margin-bottom: 15px;
  animation: fadeIn 1s ease-out 0.3s both;
}

.logo h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  animation: fadeIn 1s ease-out 0.5s both;
}

.hero-description {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.7;
  animation: fadeIn 1s ease-out 0.7s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 60px;
  animation: fadeIn 1s ease-out 0.9s both;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease;
  animation: fadeIn 1s ease-out 1.1s both;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature p {
  font-size: 14px;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo h1 {
    font-size: 28px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature {
    padding: 20px 15px;
  }
}


/* ==================== Emergency Link Section ==================== */
.emergency-link-section {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 25px 30px;
  margin-bottom: 40px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 1s ease-out 1s both;
}

.emergency-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.emergency-icon {
  font-size: 28px;
}

.emergency-header h3 {
  margin: 0;
  font-size: 18px;
  color: white;
}

.emergency-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.emergency-form {
  display: flex;
  gap: 10px;
}

.emergency-form .form-control {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: lowercase;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
}

.emergency-form .form-control::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.emergency-form .btn {
  white-space: nowrap;
  padding: 12px 20px;
}

.emergency-result {
  margin-top: 15px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.emergency-result.success {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.emergency-result.error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.emergency-result .config-name {
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}

.emergency-result .copy-btn {
  background: #22c55e;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
}

.emergency-result .copy-btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.emergency-result .copy-btn.copied {
  background: #3b82f6;
}

/* Responsive */
@media (max-width: 480px) {
  .emergency-link-section {
    padding: 20px;
    margin: 0 15px 40px;
  }
  
  .emergency-form {
    flex-direction: column;
  }
  
  .emergency-form .btn {
    width: 100%;
  }
}


/* Prevent overscroll bounce on index page */
body {
  overflow: hidden;
  height: 100vh;
}
