/* VegGrowBalcony Custom Styles */

/* Custom Tailwind Configuration */
:root {
  --primary-green: #059669;
  --secondary-green: #10b981;
  --accent-yellow: #eab308;
  --light-green: #ecfdf5;
  --dark-green: #064e3b;
}

/* Unique Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes grow {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

@keyframes pulse-slow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Hero Section Styling */
.hero-gradient {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse-slow 4s ease-in-out infinite;
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(5, 150, 105, 0.15);
}

/* Vegetable Cards */
.vegetable-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
  border: 1px solid rgba(5, 150, 105, 0.1);
  transition: all 0.3s ease;
}

.vegetable-card:hover {
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: rgba(5, 150, 105, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.15);
}

/* Seasonal Cards */
.seasonal-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.seasonal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.1), transparent);
  transition: left 0.5s ease;
}

.seasonal-card:hover::before {
  left: 100%;
}

.seasonal-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-2px);
}

/* Step Cards */
.step-card {
  background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 100%);
  border-left: 4px solid var(--primary-green);
  position: relative;
}

.step-card::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  background: var(--primary-green);
  border-radius: 50%;
  animation: pulse-slow 2s ease-in-out infinite;
}

/* Container Type Indicators */
.container-indicator {
  background: linear-gradient(45deg, var(--primary-green), var(--secondary-green));
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation Styling */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-yellow);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Button Styling */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
}

/* Footer Styling */
.footer-gradient {
  background: linear-gradient(135deg, var(--dark-green) 0%, #065f46 100%);
}

.footer-link {
  transition: all 0.3s ease;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-yellow);
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateY(0);
}

/* Ensure mobile menu is visible when not hidden */
#mobile-menu:not(.hidden) {
  display: block !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: white;
  border-top: 1px solid #d1fae5;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(5, 150, 105, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-green);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar (but not modifying colors as requested) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(5, 150, 105, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(5, 150, 105, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-gradient {
    padding: 4rem 1rem;
  }

  .vegetable-card,
  .seasonal-card,
  .step-card {
    margin-bottom: 1rem;
  }

  .container-indicator {
    font-size: 0.7rem;
    padding: 1px 6px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus States */
.btn-primary:focus,
.btn-secondary:focus,
.nav-link:focus {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .nav,
  .footer,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}