/* Enhanced Brands and Tips Sections */

/* ==================== Popular Brands Section ==================== */
.brands-section-enhanced {
  margin: 60px 0;
  padding: 40px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.section-header-modern {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.section-header-modern::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, #2563eb 0%, transparent 100%);
}

.header-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
  }
}

.header-icon-wrapper i {
  font-size: 28px;
  color: #ffffff;
}

.header-text h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.header-text p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

.brands-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.brand-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.brand-hover-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  transition: left 0.5s ease;
}

.brand-card:hover .brand-hover-effect {
  left: 100%;
}

.brand-card:hover {
  border-color: #2563eb;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15);
}

.brand-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.brand-card:hover .brand-icon {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: scale(1.1) rotate(5deg);
}

.brand-icon i {
  font-size: 28px;
  color: #2563eb;
  transition: color 0.3s ease;
}

.brand-card:hover .brand-icon i {
  color: #ffffff;
}


/* ==================== Safe Buying Tips Section ==================== */
.buying-tips-enhanced {
  margin: 40px 0 60px 0;
  padding: 40px;
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
  border-radius: 24px;
  border: 2px solid #fde047;
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.15);
}

.tips-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.tips-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(234, 179, 8, 0.3);
  animation: shieldPulse 2s ease-in-out infinite;
}

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

.tips-icon-wrapper i {
  font-size: 28px;
  color: #ffffff;
}

.tips-title h3 {
  font-size: 24px;
  font-weight: 800;
  color: #78350f;
  margin: 0 0 4px 0;
}

.tips-title p {
  font-size: 14px;
  color: #92400e;
  margin: 0;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.tip-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.tip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #eab308 0%, #ca8a04 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.tip-card:hover::before {
  transform: scaleY(1);
}

.tip-card:hover {
  border-color: #eab308;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 179, 8, 0.15);
}

.tip-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.tip-card:hover .tip-icon {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  transform: rotate(5deg);
}

.tip-icon i {
  font-size: 20px;
  color: #ca8a04;
  transition: color 0.3s ease;
}

.tip-card:hover .tip-icon i {
  color: #ffffff;
}

.tip-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #78350f;
  margin: 0 0 4px 0;
}

.tip-content p {
  font-size: 13px;
  color: #92400e;
  margin: 0;
  line-height: 1.5;
}

/* ==================== Mobile Responsive ==================== */
@media (max-width: 768px) {
  .brands-section-enhanced,
  .buying-tips-enhanced {
    padding: 24px;
    border-radius: 16px;
    margin: 40px 0;
  }

  .section-header-modern,
  .tips-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-icon-wrapper,
  .tips-icon-wrapper {
    width: 50px;
    height: 50px;
  }

  .header-icon-wrapper i,
  .tips-icon-wrapper i {
    font-size: 24px;
  }

  .header-text h2,
  .tips-title h3 {
    font-size: 22px;
  }

  .brands-grid-enhanced {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }

  .brand-card {
    padding: 20px 12px;
  }

  .brand-icon {
    width: 48px;
    height: 48px;
  }

  .brand-icon i {
    font-size: 24px;
  }

  .tips-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tip-card {
    padding: 16px;
  }
}
