/* ========================================
   🎄 CHRISTMAS THEME STYLES 🎄
   Gaming Zone Holiday Theme
   ======================================== */

/* ========================================
   Christmas Color Variables
   ======================================== */
:root {
  --christmas-red: #c41e3a;
  --christmas-green: #2f5233;
  --christmas-gold: #ffd700;
  --christmas-white: #ffffff;
  --christmas-dark-red: #dc143c;
  --christmas-light-green: #355b3b;
}

/* ========================================
   Base Modal Styles (Always Applied)
   ======================================== */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 800px;
  position: relative;
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: modalZoom 0.3s ease-out;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10002;
}

.modal-close:hover,
.modal-close:focus {
  color: #ff6b6b;
  text-decoration: none;
}

.modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 50px;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  margin-top: 15px;
}

@keyframes modalZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========================================
   Christmas Subscribe Button Styles
   ======================================== */
.christmas-subscribe-btn {
  background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-green) 50%, var(--christmas-gold) 100%);
  border: 2px solid var(--christmas-gold);
  color: var(--christmas-white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.3);
  transition: all 0.3s ease;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.christmas-subscribe-btn:hover {
  background: linear-gradient(135deg, var(--christmas-gold) 0%, var(--christmas-red) 50%, var(--christmas-green) 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
  color: var(--christmas-white);
}

.christmas-subscribe-btn .christmas-sparkle {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  animation: sparkleRotate 1.5s infinite ease-in-out;
  font-size: 14px;
}

.christmas-subscribe-btn:hover .christmas-sparkle {
  animation: sparkleRotate 0.8s infinite ease-in-out;
}

.christmas-subscribe-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.christmas-subscribe-btn:hover::before {
  left: 100%;
}

/* ========================================
   Christmas Play Now Button Styles
   ======================================== */
.christmas-play-btn {
  background: linear-gradient(135deg, var(--christmas-green) 0%, var(--christmas-red) 50%, var(--christmas-gold) 100%);
  border: 2px solid var(--christmas-gold);
  color: var(--christmas-white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(47, 82, 51, 0.3);
  transition: all 0.3s ease;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  font-size: 13px;
}

.christmas-play-btn:hover {
  background: linear-gradient(135deg, var(--christmas-gold) 0%, var(--christmas-green) 50%, var(--christmas-red) 100%);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  color: var(--christmas-white);
}

.christmas-play-btn .play-sparkle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  animation: playSparkle 2s infinite ease-in-out;
  font-size: 10px;
}

.christmas-play-btn:hover .play-sparkle {
  animation: playSparkle 1s infinite ease-in-out;
}

.christmas-play-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.4s;
}

.christmas-play-btn:hover::before {
  left: 100%;
}

.christmas-play-btn::after {
  content: '🎁';
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 8px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.christmas-play-btn:hover::after {
  opacity: 1;
  transform: scale(1) rotate(15deg);
  animation: giftBounce 0.6s ease-in-out;
}

/* ========================================
   Christmas Footer Styles
   ======================================== */
.christmas-footer {
  position: relative;
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
  border-top: 3px solid var(--christmas-gold);
  overflow: hidden;
}

.christmas-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(196, 30, 58, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(47, 82, 51, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.christmas-decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.christmas-lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg,
      var(--christmas-red) 0px, var(--christmas-red) 20px,
      var(--christmas-gold) 20px, var(--christmas-gold) 40px,
      var(--christmas-green) 40px, var(--christmas-green) 60px,
      #ff6b35 60px, #ff6b35 80px);
  animation: christmasLights 3s linear infinite;
}

.christmas-tree-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--christmas-green);
  animation: treeGlow 2s ease-in-out infinite alternate;
}

.christmas-tree-border::before {
  content: '🎄 ⭐ 🎄 ⭐ 🎄 ⭐ 🎄 ⭐ 🎄';
  letter-spacing: 20px;
}

.snow-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.christmas-greeting {
  position: relative;
  z-index: 2;
  background: rgba(196, 30, 58, 0.1);
  border: 2px solid var(--christmas-gold);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.christmas-text {
  color: var(--christmas-gold);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: textGlow 2s ease-in-out infinite alternate;
  margin-bottom: 10px;
}

.holiday-message {
  color: var(--christmas-white);
  font-style: italic;
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.christmas-copyright {
  position: relative;
  z-index: 2;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.christmas-nav {
  position: relative;
  z-index: 2;
}

.christmas-link {
  color: var(--christmas-white) !important;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 20px;
  background: rgba(47, 82, 51, 0.2);
  border: 1px solid transparent;
  transition: all 0.3s ease;
  margin: 0 5px;
  display: inline-block;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.christmas-link:hover {
  background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
  border-color: var(--christmas-gold);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
  color: var(--christmas-white) !important;
}

/* ========================================
   Christmas Modal Enhancements
   ======================================== */
.image-modal {
  background:
    radial-gradient(circle at 20% 50%, rgba(196, 30, 58, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(47, 82, 51, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
    rgba(0, 0, 0, 0.9);
}

.modal-content::before {
  content: "❄️ ✨ 🎄";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  letter-spacing: 15px;
  animation: sparkle 2s infinite ease-in-out;
}

.modal-close {
  background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-dark-red) 100%);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--christmas-gold);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
  color: var(--christmas-white);
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10002;
  position: absolute;
  top: 15px;
  right: 35px;
}

.modal-close:hover {
  background: linear-gradient(135deg, var(--christmas-gold) 0%, #ffed4e 100%);
  color: var(--christmas-red) !important;
  transform: scale(1.1) rotate(90deg);
  text-decoration: none;
}

.modal-caption {
  background: linear-gradient(135deg, rgba(47, 82, 51, 0.8) 0%, rgba(53, 94, 59, 0.8) 100%);
  border: 1px solid var(--christmas-gold);
  color: var(--christmas-white);
  font-weight: 600;
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  padding: 10px 0;
  height: 50px;
  font-size: 16px;
  border-radius: 10px;
  margin-top: 15px;
}

/* Christmas Play Now Button Text Color Override */
.christmas-play-btn .play-text,
.christmas-subscribe-btn .btn-text {
  color: var(--christmas-white) !important;
}

/* ========================================
   Game Card Christmas Enhancements
   ======================================== */
.nft-card:hover .christmas-play-btn {
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

.nft-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nft-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Christmas Animations
   ======================================== */
@keyframes sparkleRotate {

  0%,
  100% {
    transform: translateY(-50%) rotate(0deg) scale(1);
  }

  25% {
    transform: translateY(-50%) rotate(90deg) scale(1.2);
  }

  50% {
    transform: translateY(-50%) rotate(180deg) scale(0.8);
  }

  75% {
    transform: translateY(-50%) rotate(270deg) scale(1.2);
  }
}

@keyframes playSparkle {

  0%,
  100% {
    transform: translateY(-50%) rotate(0deg) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-50%) rotate(180deg) scale(1.3);
    opacity: 1;
  }
}

@keyframes giftBounce {

  0%,
  100% {
    transform: scale(1) rotate(15deg);
  }

  50% {
    transform: scale(1.2) rotate(-15deg);
  }
}

@keyframes christmasLights {
  0% {
    filter: brightness(1) hue-rotate(0deg);
  }

  25% {
    filter: brightness(1.2) hue-rotate(90deg);
  }

  50% {
    filter: brightness(0.8) hue-rotate(180deg);
  }

  75% {
    filter: brightness(1.2) hue-rotate(270deg);
  }

  100% {
    filter: brightness(1) hue-rotate(360deg);
  }
}

@keyframes textGlow {
  from {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.3);
  }

  to {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.6);
  }
}

@keyframes treeGlow {
  from {
    filter: brightness(1) drop-shadow(0 0 5px rgba(47, 82, 51, 0.5));
  }

  to {
    filter: brightness(1.2) drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
  }
}

@keyframes sparkle {

  0%,
  100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

/* Add falling snow effect */
.snow-container::after {
  content: '❄️ ❄️ ❄️ ❄️ ❄️';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  letter-spacing: 50px;
  animation: snowfall 8s linear infinite;
}

@keyframes snowfall {
  from {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  to {
    transform: translateY(200px) rotate(360deg);
    opacity: 0;
  }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding-top: 20px;
  }

  .modal-close {
    top: 10px;
    right: 20px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }

  .modal-content::before {
    font-size: 16px;
    letter-spacing: 10px;
  }

  .christmas-subscribe-btn {
    padding: 12px 20px;
    font-size: 14px;
    color: var(--christmas-white) !important;
  }

  .christmas-subscribe-btn .christmas-sparkle {
    right: 10px;
    font-size: 12px;
  }

  .christmas-play-btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  .christmas-play-btn .play-sparkle {
    right: 6px;
    font-size: 8px;
  }

  .christmas-play-btn::after {
    font-size: 6px;
    top: -3px;
    right: -3px;
  }

  .christmas-greeting {
    padding: 15px;
    margin-bottom: 20px;
  }

  .christmas-text {
    font-size: 18px;
  }

  .holiday-message {
    font-size: 14px;
  }

  .christmas-tree-border {
    font-size: 18px;
  }

  .christmas-tree-border::before {
    letter-spacing: 10px;
    content: '🎄 🎄 🎄 🎄 🎄';
  }

  .christmas-link {
    margin: 2px;
    padding: 6px 10px;
    font-size: 14px;
  }

  .christmas-lights {
    height: 6px;
  }
}

/* ========================================
   Print Styles (Hide Christmas decorations in print)
   ======================================== */
@media print {

  .christmas-decorations,
  .snow-container,
  .christmas-lights,
  .christmas-tree-border {
    display: none;
  }

  .christmas-subscribe-btn,
  .christmas-play-btn {
    background: #333 !important;
    color: white !important;
    box-shadow: none !important;
  }
}