/* 
 * DiscountGiftCards.com.au - Custom Modern Marketplace Styles
 * Australia's Premier Discount Gift Card Exchange (Crimson / Red Theme)
 */

:root {
  --primary-color: #e11d48;
  --primary-hover: #be123c;
  --accent-gold: #f59e0b;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --card-hover-shadow: 0 20px 30px -10px rgba(225, 29, 72, 0.18), 0 10px 15px -5px rgba(0, 0, 0, 0.08);
}

/* Glassmorphism & UI Accents */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark .glass-panel {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gift Card Skeuomorphic Simulation */
.gift-card-visual {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.gift-card-visual:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 35px -8px rgba(225, 29, 72, 0.25);
}

.gift-card-hologram {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(255, 255, 255, 0.2) 45%,
    rgba(255, 255, 255, 0.05) 60%,
    transparent 100%
  );
  pointer-events: none;
}

/* Animated Shimmer Effect */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.animate-shimmer {
  position: relative;
  overflow: hidden;
}
.animate-shimmer::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  animation: shimmer 2.5s infinite;
}

/* Barcode Display Simulator */
.barcode-lines {
  background: repeating-linear-gradient(
    to right,
    #0f172a 0px,
    #0f172a 2px,
    transparent 2px,
    transparent 4px,
    #0f172a 4px,
    #0f172a 7px,
    transparent 7px,
    transparent 9px,
    #0f172a 9px,
    #0f172a 10px,
    transparent 10px,
    transparent 13px,
    #0f172a 13px,
    #0f172a 16px,
    transparent 16px,
    transparent 18px,
    #0f172a 18px,
    #0f172a 22px,
    transparent 22px,
    transparent 25px
  );
  height: 54px;
  width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  animation: slideInRight 0.3s ease forwards;
  transition: all 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Print Styles for Gift Vouchers */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-voucher, #printable-voucher * {
    visibility: visible;
  }
  #printable-voucher {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* Badge Glows */
.discount-badge {
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

/* Tab active state */
.tab-btn.active {
  background-color: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
}

/* Range input custom styling */
input[type="range"] {
  accent-color: #e11d48;
}

/* Code card preview styling */
.code-preview-box {
  letter-spacing: 0.15em;
  font-family: 'Courier New', Courier, monospace;
}

/* Demo Notice & Corner Badge Styling */
#demo-corner-badge {
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
  animation: demoBadgeFloat 4s ease-in-out infinite;
}

@keyframes demoBadgeFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

#demo-notice-modal {
  transition: opacity 0.25s ease-out;
}

#demo-notice-modal .relative {
  animation: demoModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes demoModalPop {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

