/* ===================================
   PREMIUM FEATURES SECTION STYLES
   =================================== */

.premium-features {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.premium-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 106, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 106, 0, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

@media (min-width: 1200px) {
  .premium-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .premium-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .premium-features-grid {
    grid-template-columns: 1fr;
  }
}

.premium-features-grid {
  display: grid;
  gap: 15px;
  margin-top: 30px;
}

.premium-feature-card {
  position: relative;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background: white;
  display: flex;
  flex-direction: column;
}

.premium-feature-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.feature-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.gradient-overlay.delivery {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-overlay.organic {
  background: linear-gradient(135deg, #2ed573 0%, #17a2b8 100%);
}

.gradient-overlay.support {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.gradient-overlay.guarantee {
  background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
}

/* Animated Background Elements */
.speed-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
  background-size: 30px 30px;
  animation: speed-move 3s linear infinite;
}

@keyframes speed-move {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.leaf-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.leaf-animation::before,
.leaf-animation::after {
  content: '🍃';
  position: absolute;
  font-size: 20px;
  animation: leaf-float 4s ease-in-out infinite;
}

.leaf-animation::before {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.leaf-animation::after {
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

@keyframes leaf-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

.support-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: wave-pulse 3s ease-in-out infinite;
}

@keyframes wave-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

.shield-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: shield-pulse 2s ease-in-out infinite;
}

@keyframes shield-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.feature-info {
  position: relative;
  z-index: 2;
  padding: 20px;
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.feature-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 22px;
  transition: all 0.3s ease;
}

.feature-icon-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.feature-icon-wrapper i {
  font-size: 1.4rem;
  color: white;
}

.icon-pulse {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: icon-pulse-effect 2s ease-in-out infinite;
}

@keyframes icon-pulse-effect {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

.feature-number {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-accent);
  line-height: 1;
}

.feature-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--font-primary);
}

.feature-info p {
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.9;
  margin-bottom: 15px;
  flex: 1;
}

.feature-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-badge i {
  font-size: 0.7rem;
}

.feature-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: 3;
  pointer-events: none;
}

.premium-feature-card:hover .feature-hover-effect {
  transform: translateX(100%);
}

/* Card Specific Animations */
.delivery-card:hover .speed-lines {
  animation-duration: 1s;
}

.organic-card:hover .leaf-animation::before,
.organic-card:hover .leaf-animation::after {
  animation-duration: 2s;
}

.support-card:hover .support-waves {
  animation-duration: 1.5s;
}

.guarantee-card:hover .shield-glow {
  animation-duration: 1s;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .premium-features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
  
  .premium-feature-card {
    height: 260px;
  }
  
  .feature-content {
    padding: 15px;
  }
  
  .feature-info h3 {
    font-size: 1.1rem;
  }
  
  .feature-info p {
    font-size: 0.8rem;
  }
}

@media (max-width: 992px) {
  .premium-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .premium-feature-card {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .premium-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .premium-feature-card {
    height: 280px;
  }
  
  .feature-content {
    padding: 25px;
  }
  
  .feature-icon-wrapper {
    width: 60px;
    height: 60px;
  }
  
  .feature-icon-wrapper i {
    font-size: 1.5rem;
  }
  
  .feature-number {
    font-size: 2.5rem;
  }
  
  .feature-info h3 {
    font-size: 1.3rem;
  }
  
  .feature-info p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .premium-feature-card {
    height: 260px;
  }
  
  .feature-content {
    padding: 15px;
  }
  
  .feature-stats {
    gap: 8px;
  }
  
  .stat-badge {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

/* Additional Hover Effects */
.premium-feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.premium-feature-card:hover .feature-number {
  color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.premium-feature-card:hover .stat-badge {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Loading Animation */
.premium-feature-card {
  opacity: 0;
  animation: card-fade-in 0.6s ease forwards;
}

.premium-feature-card:nth-child(1) { animation-delay: 0.1s; }
.premium-feature-card:nth-child(2) { animation-delay: 0.2s; }
.premium-feature-card:nth-child(3) { animation-delay: 0.3s; }
.premium-feature-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes card-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
