/* ===================================
   DYNAMIC HOT DEALS SECTION STYLES
   =================================== */

.dynamic-hot-deals {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}

.deals-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.fire-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #ff6b35, transparent),
    radial-gradient(2px 2px at 40px 70px, #f7931e, transparent),
    radial-gradient(1px 1px at 90px 40px, #ff6b35, transparent),
    radial-gradient(1px 1px at 130px 80px, #f7931e, transparent),
    radial-gradient(2px 2px at 160px 30px, #ff6b35, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: fire-float 20s linear infinite;
}

@keyframes fire-float {
  0% { transform: translateY(100vh) rotate(0deg); }
  100% { transform: translateY(-100px) rotate(360deg); }
}

.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.floating-icons::before,
.floating-icons::after {
  content: '🔥';
  position: absolute;
  font-size: 30px;
  animation: float-icons 8s ease-in-out infinite;
}

.floating-icons::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-icons::after {
  top: 60%;
  right: 15%;
  animation-delay: 4s;
}

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

.dynamic-hot-deals .container {
  position: relative;
  z-index: 2;
}

.section-badge.premium {
  position: relative;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
  }
}

.badge-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 50px;
  z-index: -1;
  filter: blur(8px);
  opacity: 0.7;
}

.dynamic-hot-deals h2 {
  color: white;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 20px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.dynamic-hot-deals p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.deals-countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 80px;
}

.countdown-number {
  font-size: 2rem;
  font-weight: 800;
  color: #ff6b35;
  font-family: var(--font-accent);
  animation: number-pulse 1s ease-in-out infinite;
}

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

.countdown-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.countdown-separator {
  font-size: 2rem;
  color: #ff6b35;
  font-weight: 800;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

.dynamic-offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
  justify-content: center;
  width: 100%;
}

/* Ensure all deal cards have the same height and rounded corners */
.deal-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  position: relative;
  background: #fff;
  border-radius: 24px !important;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 30px;
  transform: translateZ(0); /* Force hardware acceleration */
}

/* Make sure the deal content takes full height with consistent rounded corners */
.deal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 2;
  padding: 20px;
  background: #fff;
  border-radius: 24px !important;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

.deal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Ensure consistent card sizes and rounded corners */
[class$="-deal-card"] {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 500px;
  position: relative;
  background: #fff;
  border-radius: 24px !important;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Deal Cards Base Styles */
.mega-deal-card,
.premium-deal-card,
.weekly-deal-card {
  position: relative;
  min-height: 500px;
  border-radius: 24px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

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

.deal-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 500px;
  z-index: 1;
  border-radius: 24px !important;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.gradient-overlay.mega {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

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

.gradient-overlay.wings {
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
}

/* Animated Background Elements */
.deal-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: particle-float 4s ease-in-out infinite;
}

@keyframes particle-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}

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

@keyframes explosion-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
}

.heart-particles::before,
.heart-particles::after {
  content: '💖';
  position: absolute;
  font-size: 20px;
  animation: heart-float 5s ease-in-out infinite;
}

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

.heart-particles::after {
  top: 70%;
  right: 20%;
  animation-delay: 2.5s;
}

@keyframes heart-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-25px) rotate(15deg);
    opacity: 1;
  }
}

.spice-particles::before,
.spice-particles::after {
  content: '🌶️';
  position: absolute;
  font-size: 18px;
  animation: spice-dance 3s ease-in-out infinite;
}

.spice-particles::before {
  top: 30%;
  left: 15%;
  animation-delay: 0s;
}

.spice-particles::after {
  top: 60%;
  right: 15%;
  animation-delay: 1.5s;
}

@keyframes spice-dance {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: rotate(180deg) scale(1.2);
    opacity: 1;
  }
}

/* Deal Ribbons */
.deal-ribbon {
  position: absolute;
  top: 20px;
  right: -30px;
  padding: 8px 40px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 3;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.mega-ribbon {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
}

.premium-ribbon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.weekly-ribbon {
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
  color: white;
}

.ribbon-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: ribbon-shine 3s ease-in-out infinite;
}

@keyframes ribbon-shine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.deal-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 25px;
  display: flex;
  flex-direction: column;
  color: white;
}

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

.deal-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.deal-badge.hot {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.deal-badge.family {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.deal-badge.spicy {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.deal-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
}

.deal-timer.live {
  animation: timer-blink 1s ease-in-out infinite;
}

@keyframes timer-blink {
  0%, 50% { background: rgba(255, 0, 0, 0.3); }
  51%, 100% { background: rgba(0, 0, 0, 0.3); }
}

.deal-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  min-height: 200px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.deal-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.deal-image-wrapper:hover img {
  transform: scale(1.1);
}

.image-overlay {
  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;
}

.deal-image-wrapper:hover .image-overlay {
  transform: translateX(100%);
}

.deal-flash {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  animation: flash-blink 1.5s ease-in-out infinite;
}

@keyframes flash-blink {
  0%, 50% { opacity: 1; transform: scale(1); }
  51%, 100% { opacity: 0.7; transform: scale(0.95); }
}

.deal-info h3 {
  font-size: 1.5rem;
  color: #333;
  margin: 0 0 10px 0;
  line-height: 1.3;
  min-height: 3.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-accent);
  max-height: 3.6rem;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.deal-info p {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.5;
  word-wrap: break-word;
  hyphens: auto;
  color: #666;
  margin: 0 0 20px 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 4.5em;
  max-height: 6.75em;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.deal-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.deal-pricing {
  margin-top: auto;
  padding: 15px 0 0 0;
  border-top: 1px solid #eee;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.price-comparison {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.original-price {
  font-size: 1rem;
  text-decoration: line-through;
  opacity: 0.7;
}

.discount-arrow {
  font-size: 1.2rem;
  color: #ffd700;
}

.deal-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffd700;
  font-family: var(--font-accent);
}

.savings-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffd700;
}

.deal-cta {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.mega-cta {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
}

.family-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.wings-cta {
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
  color: white;
}

.deal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s ease;
}

.deal-cta:active .cta-ripple {
  transform: scale(1);
}

/* Deals Footer */
.deals-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.deals-stats {
  display: flex;
  gap: 30px;
}

.deals-stats .stat-item {
  text-align: center;
}

.deals-stats .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #ff6b35;
  margin-bottom: 5px;
  font-family: var(--font-accent);
}

.deals-stats .stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.deals-cta-section {
  text-align: center;
}

.deals-cta-section h4 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.deals-cta-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.subscribe-deals-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.subscribe-deals-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .dynamic-hot-deals {
    padding: 60px 0;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .section-badge.premium {
    margin-bottom: 15px;
    display: inline-flex;
  }
  
  .dynamic-hot-deals h2 {
    font-size: 2.2rem;
    margin: 15px 0;
    line-height: 1.2;
  }
  
  .dynamic-hot-deals p {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.4;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .deals-countdown {
    gap: 8px;
    margin-top: 25px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .countdown-item {
    min-width: 55px;
    padding: 8px 12px;
  }
  
  .countdown-number {
    font-size: 1.5rem;
  }
  
  .countdown-label {
    font-size: 0.7rem;
  }
  
  .countdown-separator {
    font-size: 1.5rem;
  }
  
  .dynamic-offers-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .mega-deal-card,
  .premium-deal-card,
  .weekly-deal-card {
    height: 450px;
  }
  
  .deals-footer {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .deals-stats {
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .dynamic-hot-deals {
    padding: 40px 0;
  }
  
  .section-badge.premium {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .dynamic-hot-deals h2 {
    font-size: 1.8rem;
    margin: 12px 0;
  }
  
  .dynamic-hot-deals p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  
  .deals-countdown {
    gap: 6px;
    margin-top: 20px;
  }
  
  .countdown-item {
    min-width: 50px;
    padding: 6px 10px;
  }
  
  .countdown-number {
    font-size: 1.3rem;
  }
  
  .countdown-label {
    font-size: 0.65rem;
  }
  
  .countdown-separator {
    font-size: 1.3rem;
  }
  
  .deal-content {
    padding: 20px;
  }
  
  .deal-info h3 {
    font-size: 1.2rem;
    line-height: 1.3;
    word-wrap: break-word;
  }
  
  .deal-info p {
    font-size: 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: auto;
    white-space: normal;
  }
  
  .deals-stats {
    flex-direction: column;
    gap: 15px;
  }
}
