/* Premium Special Offer Banner with Countdown */

.special-offer-banner {
  background: linear-gradient(135deg, #2d1bae 0%, #4c38fc 100%);
  color: white;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  overflow: hidden;
  height: auto;
  padding: 6px 0;
  margin: 0;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.banner-content {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 5px 15px;
  gap: 15px;
}

.offer-badge {
  background: #ff3e6c;
  color: white;
  font-weight: bold;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 30px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  animation: pulse 1.5s infinite;
  margin: 0;
}

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

.offer-text {
  text-align: center;
  white-space: nowrap;
  font-weight: 800;
  font-size: 14px;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
  flex-grow: 1;
}

.store-signature {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.store-signature::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%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.store-signature:hover::before {
  opacity: 1;
}

.store-signature i {
  color: #ffcc00;
  text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
}

.offer-details {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  width: 100%;
}

.countdown-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-right: 5px;
}

.countdown {
  display: flex;
  gap: 10px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  padding: 3px 8px;
  border-radius: 6px;
  min-width: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-item span {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.time-label {
  font-size: 10px !important;
  font-weight: 400 !important;
  opacity: 0.8;
}

.offer-action {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
}

.claim-offer-btn {
  background: linear-gradient(135deg, #ff3e6c 0%, #ff1f52 100%);
  color: white;
  padding: 4px 15px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.claim-offer-btn:hover {
  background: #ff1f52;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Media Queries */
@media (max-width: 768px) {
  .special-offer-banner {
    padding: 8px 0;
  }
  
  .offer-text {
    font-size: 14px;
  }
  
  .offer-details {
    flex-direction: column;
    gap: 5px;
  }
  
  .countdown-item {
    min-width: 30px;
  }
}

@media (max-width: 480px) {
  .offer-text {
    font-size: 12px;
  }
  
  .countdown-label, .claim-offer-btn {
    font-size: 11px;
  }
  
  .countdown-item span {
    font-size: 14px;
  }
}

@keyframes banner-simple {
  0% { left: 100%; }
  100% { left: -100%; }
}

/* Header positioned below banner */
header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  position: fixed;
  top: 40px; /* Position below the banner */
  left: 0;
  width: 100%;
  z-index: 2147483645;
  box-shadow: 0 4px 20px rgba(45, 27, 174, 0.08);
  border-bottom: 1px solid rgba(45, 27, 174, 0.05);
  transition: all 0.3s ease;
}

/* Spacing for hero section */
.hero-section,
#hero,
main, 
.main-content, 
#main,
section:first-of-type {
  padding-top: 200px !important;
  margin-top: 0 !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .special-offer-banner {
    height: 36px;
  }
  
  .offer-text {
    line-height: 36px;
    font-size: 14px;
    animation-duration: 12s;
  }
  
  header {
    top: 36px;
  }
  
  .hero-section,
  #hero,
  main, 
  .main-content, 
  #main,
  section:first-of-type {
    padding-top: 180px !important;
  }
}
