/* PlanZap - Custom styles complementing Tailwind CDN */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fafafb;
  color: #0b0b12;
}

.font-display { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
.font-serif-italic { font-family: 'Instrument Serif', serif; font-style: italic; }

/* Marquee */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-track { animation: marquee 32s linear infinite; }

/* Fade in up */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both; }

/* Float */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float { animation: float 3.5s ease-in-out infinite; }

/* Blob morph */
@keyframes blob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(0, 0) rotate(0deg); }
  33% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: translate(20px, -30px) rotate(120deg); }
  66% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; transform: translate(-15px, 20px) rotate(240deg); }
}
.blob { animation: blob 14s ease-in-out infinite; }

/* Pulse ring */
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(79,70,229,0.55); }
  70% { box-shadow: 0 0 0 14px rgba(79,70,229,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,70,229,0); }
}
.pulse-ring { animation: pulseRing 2s infinite; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glass */
.glass-dark {
  background: rgba(11, 11, 18, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f4f4f5; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1aa; }

/* Product card hover */
.product-card { transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.4s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(79, 70, 229, 0.25); }
.product-card:hover img { transform: scale(1.1); }
.product-card img { transition: transform 0.7s ease; }

/* Selection */
::selection { background: #4f46e5; color: white; }

/* Shine on button */
.shine-btn { position: relative; overflow: hidden; }
.shine-btn::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transition: left 0.7s ease;
}
.shine-btn:hover::after { left: 100%; }

/* Ticker gradient mask */
.mask-fade-x { -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }

/* Underline hover */
.link-underline { position: relative; }
.link-underline::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s ease;
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* Cart drawer */
.cart-drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.cart-drawer.open { pointer-events: auto; }
.cart-drawer .overlay { position: absolute; inset: 0; background: rgba(11,11,18,0.5); opacity: 0; transition: opacity .3s; }
.cart-drawer.open .overlay { opacity: 1; }
.cart-drawer .panel { position: absolute; top: 0; right: 0; height: 100%; width: 100%; max-width: 440px; background: #fff; box-shadow: -20px 0 60px -20px rgba(0,0,0,.2); transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.9,.3,1); display: flex; flex-direction: column; }
.cart-drawer.open .panel { transform: translateX(0); }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.mobile-menu.open { pointer-events: auto; }
.mobile-menu .overlay { position: absolute; inset: 0; background: rgba(11,11,18,0.5); opacity: 0; transition: opacity .3s; }
.mobile-menu.open .overlay { opacity: 1; }
.mobile-menu .panel { position: absolute; top: 0; right: 0; height: 100%; width: 280px; background: #fff; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; padding: 20px; }
.mobile-menu.open .panel { transform: translateX(0); }

/* FAQ accordion */
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; font-weight: 400; color: #6366f1; transition: transform .2s; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer { padding: 0 20px 20px; color: #525252; line-height: 1.7; }

/* Toast */
.toast { position: fixed; top: 20px; right: 20px; z-index: 100; }
.toast .msg { background: #0b0b12; color: #fff; padding: 12px 18px; border-radius: 12px; margin-bottom: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: fadeInUp .35s ease both; max-width: 320px; font-size: 14px; }
.toast .msg.error { background: #dc2626; }
.toast .msg.success { background: #10b981; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(11,11,18,0.7); backdrop-filter: blur(4px); z-index: 60; display: none; padding-top: 100px; }
.search-overlay.open { display: block; }

/* Admin sidebar nav */
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: #404040; text-decoration: none; transition: background .15s; }
.admin-nav a:hover { background: #f5f5f5; }
.admin-nav a.active { background: linear-gradient(to right, #4f46e5, #4338ca); color: #fff; box-shadow: 0 6px 20px -8px rgba(79,70,229,.5); }

/* Utility text truncation */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* Tabs */
.tabs-list { display: inline-flex; background: #f5f5f5; padding: 4px; border-radius: 12px; gap: 4px; }
.tabs-list a { padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #525252; text-decoration: none; }
.tabs-list a.active { background: #fff; color: #0b0b12; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
