/* PlantJoy Website - Mobile-First Responsive Design */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

/* Toxic Plants Specific Styles */
.toxic-hero {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  padding: 80px 0;
}

.warning-icon {
  color: #ffa500;
  font-size: 1.2em;
  margin-right: 8px;
}

.toxicity-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
}

.extremely-toxic {
  background-color: #e74c3c;
  color: white;
}

.highly-toxic {
  background-color: #f39c12;
  color: white;
}

.moderately-toxic {
  background-color: #f1c40f;
  color: #333;
}

.safety-alert {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 20px 0;
}

.alert-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.alert-icon {
  font-size: 2em;
}

.emergency-numbers {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.emergency-number {
  background-color: #dc3545;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

.toxic-plant-card {
  border: 2px solid #e74c3c;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.toxic-plant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.plant-warning {
  color: #e74c3c;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin: 8px 0;
}

.affected-species {
  margin-top: 10px;
}

.species-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.species-tag {
  background-color: #f8f9fa;
  color: #495057;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  border: 1px solid #dee2e6;
}

.safety-tips-section {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.tip-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tip-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.emergency-alert {
  background-color: #dc3545;
  color: white;
  padding: 15px 0;
  text-align: center;
}

.alert-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.toxicity-badge-large {
  background-color: #e74c3c;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 20px;
  right: 20px;
}

.warning-box {
  background-color: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  display: flex;
  gap: 15px;
}

.species-badge {
  background-color: #e74c3c;
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  margin: 5px;
  display: inline-block;
  font-size: 0.9em;
}

.symptoms-section, .first-aid-section {
  background-color: #fff5f5;
  border-left: 4px solid #e74c3c;
  padding: 20px;
  margin: 20px 0;
}

.symptoms-list, .first-aid-list, .identification-list {
  list-style: none;
  padding-left: 0;
}

.symptoms-list li, .first-aid-list li, .identification-list li {
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.symptoms-list li:before {
  content: "⚠️";
  position: absolute;
  left: 0;
}

.first-aid-list li:before {
  content: "🏥";
  position: absolute;
  left: 0;
}

.identification-list li:before {
  content: "🔍";
  position: absolute;
  left: 0;
}

.prevention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.prevention-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  border: 2px solid #e74c3c;
}

.prevention-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.breadcrumb {
  background-color: #f8f9fa;
  padding: 10px 0;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  gap: 10px;
}

.breadcrumb-list li:not(:last-child):after {
  content: ">";
  margin-left: 10px;
  color: #6c757d;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.view-all-link {
  text-decoration: none;
  color: inherit;
}

.view-all-card {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.view-all-card:hover {
  border-color: #e74c3c;
  background-color: #fff5f5;
}

.view-all-icon {
  font-size: 2em;
  margin-bottom: 10px;
  display: block;
}

/* Navigation Toxic Plants Link Styling */
.nav-link[href="/toxic/"] {
  color: #e74c3c !important;
  font-weight: 600;
  position: relative;
}

.nav-link[href="/toxic/"]:hover {
  color: #c0392b !important;
  transform: scale(1.05);
}

.nav-link[href="/toxic/"].active {
  background-color: #e74c3c;
  color: white !important;
  border-radius: 4px;
  padding: 5px 10px;
}

/* Desktop - ensure nav is always visible */
@media (min-width: 768px) {
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link[href="/toxic/"] {
    border-left: 3px solid #e74c3c;
    padding-left: 10px;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2d5016;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-direction: row;
}

.nav-menu.active {
  display: flex;
}

.nav-link {
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #2d5016;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile - show menu toggle, hide nav menu */
@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  background: #a8d5a8;
  color: #2d5016;
  padding: 120px 0 60px;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  color: #1a3a0d;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: #2d5016;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-width: 200px;
}

.btn-primary:hover {
  background: #1a3009;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: transparent;
  color: #2d5016;
  border: 2px solid #2d5016;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  min-width: 200px;
}

.btn-secondary:hover {
  background: #2d5016;
  color: white;
}

.app-store-badge {
  height: 60px;
  transition: transform 0.3s ease;
}

.app-store-badge:hover {
  transform: scale(1.05);
}

/* Demo Video */
.demo-video {
  max-width: 300px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features {
  padding: 60px 0;
  background: white;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  color: #2d5016;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: #f8fdf5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(45, 80, 22, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d5016;
  margin-bottom: 1rem;
}

.feature-description {
  color: #666;
  line-height: 1.6;
}

/* Testimonials */
.testimonials {
  padding: 60px 0;
  background: #f8fdf5;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.testimonial-author {
  font-weight: 600;
  color: #2d5016;
}

/* Footer */
.footer {
  background: #2d5016;
  color: white;
  padding: 40px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #a8d46f;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #a8d46f;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
}

/* Plant Cards */
.plant-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plant-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.plant-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.plant-info {
  padding: 1.5rem;
}

.plant-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d5016;
  margin-bottom: 0.5rem;
}

.plant-latin {
  font-style: italic;
  color: #888;
  margin-bottom: 1rem;
}

.plant-description {
  color: #666;
  line-height: 1.5;
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.hidden {
  display: none;
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}