
@layer base {
  :root {
    /* 60-25-10-5 Color Palette Variables */
    --color-bg-light: #F8FAFC;        /* 60% Light background canvas */
    --color-surface: #FFFFFF;         /* Card surface */
    --color-surface-hover: #F1F5F9;   /* Hover surface */

    --color-blue-primary: #1E40AF;    /* 25% Royal Blue */
    --color-blue-hover: #1D4ED8;
    --color-blue-light: #EFF6FF;
    --color-blue-border: #BFDBFE;

    --color-red-accent: #DC2626;      /* 10% High-contrast Red */
    --color-red-hover: #B91C1C;
    --color-red-light: #FEF2F2;

    --color-gold-accent: #D97706;     /* 5% Metallic Gold */
    --color-gold-hover: #B45309;
    --color-gold-light: #FEF3C7;

    --color-text-main: #0F172A;
    --color-text-muted: #475569;
  }

  body {
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
}

/* Custom background patterns for 60% SVG decoration requirement */
.bg-notebook-pattern {
  background-color: #ffffff;
  background-image: radial-gradient(#cbd5e1 0.75px, transparent 0.75px), radial-gradient(#cbd5e1 0.75px, #ffffff 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

.bg-hero-grid {
  background-color: #f8fafc;
  background-image: linear-gradient(to right, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* 60% Light canvas card styling with subtle shadow & border */
.theme-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 30px -10px rgba(30, 64, 175, 0.12);
}

/* 25% Blue primary button */
.btn-blue {
  background-color: #1e40af;
  color: #ffffff;
  font-weight: 500;
  border-radius: 0.625rem;
  transition: all 0.2s ease;
}

.btn-blue:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
}

/* 10% Red vibrant action button / tag */
.btn-red {
  background-color: #dc2626;
  color: #ffffff;
  font-weight: 500;
  border-radius: 0.625rem;
  transition: all 0.2s ease;
}

.btn-red:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

/* 5% Gold metallic badge & accent button */
.badge-gold {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
  border: 1px solid #f59e0b;
  font-weight: 600;
}

.btn-gold {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.625rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.2);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
}

/* Badge Pulse Animation for Red Cart Indicator */
@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.animate-badge-pop {
  animation: badgePulse 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Continuous Movable Marquee Animation for Ribbon Notice */
@keyframes noticeMarquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee-notice {
  display: flex;
  width: max-content;
  animation: noticeMarquee 60s linear infinite;
}

.animate-marquee-notice:hover {
  animation-play-state: paused;
}

/* Custom subtle scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
}
