/* ============================================
   GIFT CARDS PAGE - Gift cards page specific styles
   ============================================ */

/* Override background for gift cards page */
html {
  background: #ffffff !important;
}

body {
  background: #1a1d2e !important;
}

body::before,
body::after {
  background: #1a1d2e !important;
  filter: none !important;
}

/* ==================== HERO SECTION ==================== */
.gift-cards-hero {
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.15) 0%, 
    rgba(118, 75, 162, 0.15) 50%,
    rgba(102, 126, 234, 0.15) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 0 0 30px 30px;
  padding: 2.5rem 0 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 2.7rem;
  box-shadow: 
    0 10px 40px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.gift-cards-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 0 30px 30px;
  pointer-events: none;
  z-index: 2;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.4) 10%, rgba(125, 211, 252, 0.6) 50%, rgba(56, 189, 248, 0.4) 90%, transparent 100%) bottom / 100% 3px no-repeat,
    linear-gradient(0deg, transparent 0%, rgba(56, 189, 248, 0.4) 10%, rgba(125, 211, 252, 0.6) 50%, rgba(56, 189, 248, 0.4) 90%, transparent 100%) left / 3px 100% no-repeat,
    linear-gradient(0deg, transparent 0%, rgba(56, 189, 248, 0.4) 10%, rgba(125, 211, 252, 0.6) 50%, rgba(56, 189, 248, 0.4) 90%, transparent 100%) right / 3px 100% no-repeat;
  filter: blur(2px);
  animation: drawBorderGradient 5s ease-in-out infinite;
  opacity: 0;
}

@keyframes drawBorderGradient {
  0% {
    background-size: 0% 3px, 3px 0%, 3px 0%;
    opacity: 0;
  }
  15% { opacity: 1; }
  40% {
    background-size: 100% 3px, 3px 0%, 3px 0%;
    opacity: 1;
  }
  70% {
    background-size: 100% 3px, 3px 100%, 3px 100%;
    opacity: 1;
  }
  85% { opacity: 1; }
  100% {
    background-size: 100% 3px, 3px 100%, 3px 100%;
    opacity: 0;
  }
}

.gift-cards-hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, 
    #ffffff 0%, 
    #e0f2fe 15%,
    #bae6fd 30%,
    #7dd3fc 50%,
    #bae6fd 70%,
    #e0f2fe 85%,
    #ffffff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: 
    titleEntrance 1s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    icyGradientFlow 6s ease infinite,
    icyShimmer 3s ease-in-out infinite;
  letter-spacing: 3px;
  filter: drop-shadow(0 0 15px rgba(186, 230, 253, 0.5))
          drop-shadow(0 0 25px rgba(224, 242, 254, 0.3))
          drop-shadow(0 5px 10px rgba(125, 211, 252, 0.2));
  text-shadow: 
    0 0 8px rgba(255, 255, 255, 0.4),
    0 0 15px rgba(186, 230, 253, 0.3),
    0 0 20px rgba(125, 211, 252, 0.2);
}

@keyframes titleEntrance {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.8) rotateX(-90deg);
  }
  60% {
    transform: translateY(10px) scale(1.05) rotateX(10deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
  }
}

@keyframes icyGradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes icyShimmer {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(186, 230, 253, 0.5))
            drop-shadow(0 0 25px rgba(224, 242, 254, 0.3))
            drop-shadow(0 5px 10px rgba(125, 211, 252, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 35px rgba(186, 230, 253, 0.5))
            drop-shadow(0 5px 12px rgba(125, 211, 252, 0.3));
  }
}

.gift-cards-hero__subtitle {
  font-size: 1.3rem;
  opacity: 1;
  position: relative;
  z-index: 1;
  color: #e0f2fe;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #e0f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
  text-shadow: 0 0 20px rgba(224, 242, 254, 0.5);
  filter: drop-shadow(0 2px 10px rgba(186, 230, 253, 0.3));
  letter-spacing: 0.5px;
  animation: subtitleEntrance 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
}

@keyframes subtitleEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    filter: blur(10px);
  }
  60% {
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 0.95;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Snowflakes */
.snowflakes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.snowflake {
  position: absolute;
  top: -10%;
  color: #fff;
  font-size: 1.5rem;
  text-shadow: 
    0 0 5px rgba(186, 230, 253, 0.4),
    0 0 10px rgba(224, 242, 254, 0.3),
    0 0 15px rgba(125, 211, 252, 0.2);
  animation: snowfall linear infinite;
  opacity: 0;
}

@keyframes snowfall {
  0% { top: -10%; opacity: 0; }
  10% { opacity: 0.25; }
  90% { opacity: 0.25; }
  100% { top: 110%; opacity: 0; }
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; font-size: 1.2rem; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 10s; animation-delay: 1s; font-size: 1.8rem; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 7s; animation-delay: 2s; font-size: 1.4rem; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 9s; animation-delay: 0.5s; font-size: 1.6rem; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 11s; animation-delay: 1.5s; font-size: 1.3rem; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 8.5s; animation-delay: 2.5s; font-size: 1.7rem; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 9.5s; animation-delay: 0.8s; font-size: 1.5rem; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 10.5s; animation-delay: 1.8s; font-size: 1.4rem; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 7.5s; animation-delay: 2.2s; font-size: 1.6rem; }
.snowflake:nth-child(10) { left: 15%; animation-duration: 9.8s; animation-delay: 3s; font-size: 1.3rem; }

/* ==================== ADS SLIDER ==================== */
.ads-slider {
  width: 75%;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  box-shadow: 0 10px 40px rgba(183, 213, 255, 0.19);
}

.ads-slider__container {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.ads-slider__item {
  min-width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ads-slider__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.slider-arrow--prev { left: 20px; }
.slider-arrow--next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.slider-dot.active {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ==================== MAIN CONTENT ==================== */
.gift-cards-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  background: #1a1d2e;
  position: relative;
}

/* ==================== FLOATING ACTION BUTTONS ==================== */
.floating-actions {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, rgba(102, 126, 234, 1) 0%, rgba(118, 75, 162, 1) 100%);
}

.floating-btn:active {
  transform: scale(0.95);
}

/* ==================== SEARCH & FILTER BARS ==================== */
.search-filter-bar,
.filter-only-bar {
  width: 85%;
  max-width: 1300px;
  margin: 0 auto 0;
  background: linear-gradient(135deg, rgba(26, 29, 46, 0.98) 0%, rgba(35, 39, 58, 0.98) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 60px rgba(102, 126, 234, 0.2);
  display: none;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.search-filter-bar.active,
.filter-only-bar.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 2rem;
}

.bar-container {
  position: relative;
}

.bar-close {
  position: absolute;
  top: -0.5rem;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.bar-close:hover {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 5px 20px rgba(255, 59, 48, 0.4);
}

.bar-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-right: 3rem;
}

.search-box-inline {
  position: relative;
  width: 100%;
}

.search-box-inline input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  font-size: 1rem;
  color: white;
  transition: all 0.3s ease;
}

.search-box-inline input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-box-inline input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-box-inline i {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
}

.category-filters-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.category-btn,
.category-btn-filter {
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.category-btn:hover,
.category-btn-filter:hover {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.category-btn.active,
.category-btn-filter.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
  border-color: rgba(102, 126, 234, 0.8);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* Categories Filter (Hidden by default) */
.categories-filter {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideInFromLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.search-box-filter {
  position: relative;
  flex: 0 0 300px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-box-filter input {
  width: 100%;
  padding: 0.8rem 1.5rem 0.8rem 3rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  font-size: 1rem;
  color: white;
  transition: all 0.3s ease;
}

.search-box-filter input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-box-filter input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-box-filter i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
}

.category-btn {
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease both;
}

.category-btn:nth-child(2) { animation-delay: 0.3s; }
.category-btn:nth-child(3) { animation-delay: 0.4s; }
.category-btn:nth-child(4) { animation-delay: 0.5s; }
.category-btn:nth-child(5) { animation-delay: 0.6s; }
.category-btn:nth-child(6) { animation-delay: 0.7s; }
.category-btn:nth-child(7) { animation-delay: 0.8s; }

.category-btn:hover {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.category-btn.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
  border-color: rgba(102, 126, 234, 0.8);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* Gift Cards Grid */
.gift-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 0 auto 3rem;
  max-width: 1200px;
  width: 80%;
}

.gift-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.gift-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
  border-color: rgba(102, 126, 234, 0.5);
}

.gift-card__image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.gift-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gift-card:hover .gift-card__image img {
  transform: scale(1.1);
}

.gift-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.gift-card__content {
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.gift-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin: 0;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.gift-card__description {
  display: none; /* Hidden like in original backup file */
}

.gift-card__price-bar {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.8rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.gift-card:hover .gift-card__price-bar {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .gift-cards-hero {
    padding: 3rem 0 2rem;
    border-radius: 0 0 20px 20px;
  }

  .gift-cards-hero__title {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }

  .gift-cards-hero__subtitle {
    font-size: 1.1rem;
  }

  .snowflake {
    font-size: 1rem;
  }

  .ads-slider {
    width: 90%;
    border-radius: 15px;
  }

  .ads-slider__item {
    height: 180px;
  }

  .gift-cards-content {
    padding: 2rem 1rem;
  }

  .categories-filter {
    padding: 1rem;
  }

  .gift-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    width: 90%;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .slider-arrow--prev { left: 10px; }
  .slider-arrow--next { right: 10px; }

  /* Floating buttons on mobile */
  .floating-actions {
    right: 15px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  /* Search & Filter Bars on mobile */
  .search-filter-bar,
  .filter-only-bar {
    width: 95%;
    padding: 1.5rem 1rem;
    border-radius: 15px;
  }

  .bar-content {
    padding-right: 2.5rem;
    gap: 1rem;
  }

  .bar-close {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .search-box-inline input {
    padding: 0.9rem 1.2rem 0.9rem 3rem;
    font-size: 0.95rem;
  }

  .search-box-inline i {
    left: 1.2rem;
    font-size: 1rem;
  }

  .category-btn,
  .category-btn-filter {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
}
