@import "tailwindcss";

@layer base {
  body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
  }
}

/* Uniform Button UI Styles across all pages */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  color: #334155;
  border: 1px solid #e2e8f0;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover {
  background-color: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 0.75rem;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}
.btn-accent:hover {
  background-color: #d1fae5;
  color: #065f46;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: #0f172a;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}
.btn-dark:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom light minimal scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Animated Bot Icon Keyframes */
@keyframes bot-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2.5px);
  }
}

@keyframes bot-blink {
  0%, 88%, 100% {
    transform: scaleY(1);
  }
  94% {
    transform: scaleY(0.1);
  }
}

@keyframes bot-antenna-glow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes bot-halo {
  0%, 100% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes chat-slide-up {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bot-animated-icon {
  animation: bot-float 3s ease-in-out infinite;
  transform-origin: center;
  overflow: visible;
}

.bot-eye {
  animation: bot-blink 3.5s infinite;
  transform-origin: center;
}

.bot-beacon {
  animation: bot-antenna-glow 1.8s ease-in-out infinite;
  transform-origin: center;
}

.bot-halo-spin {
  animation: bot-halo 10s linear infinite;
}

.animate-chat-popup {
  animation: chat-slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes indeterminate {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}

.animate-indeterminate {
  animation: indeterminate 1.5s infinite linear;
}

/* Animated Coupon & Ticket Visuals */
@keyframes coupon-ticket-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(-1.5deg);
  }
}

@keyframes coupon-sparkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
}

@keyframes coupon-dash-flow {
  to {
    stroke-dashoffset: -20;
  }
}

@keyframes coupon-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes coupon-pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(79, 70, 229, 0);
  }
}

@keyframes coupon-snip {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-15deg);
  }
}

.animate-coupon-ticket {
  animation: coupon-ticket-float 3.5s ease-in-out infinite;
}

.animate-coupon-sparkle {
  animation: coupon-sparkle 2s ease-in-out infinite;
}

.animate-coupon-dash {
  stroke-dasharray: 4, 4;
  animation: coupon-dash-flow 1.2s linear infinite;
}

.animate-coupon-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: coupon-shimmer 2.8s infinite;
}

.animate-coupon-pulse-glow {
  animation: coupon-pulse-glow 2.5s infinite;
}

.animate-coupon-snip {
  animation: coupon-snip 2s ease-in-out infinite;
  transform-origin: center;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Nav Link Animated Underline */
.nav-link-animated {
  position: relative;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
}
.nav-link-animated::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #4f46e5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}
.nav-link-animated:hover::after {
  width: 100%;
}
.nav-link-animated:hover {
  transform: translateY(-1px);
  background-color: rgba(79, 70, 229, 0.05);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.1);
  border-radius: 0.5rem;
}
.nav-link-animated:active {
  transform: translateY(0) scale(0.98);
}

/* Smooth Accordion Transitions */
.faq-accordion-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}
.faq-accordion-content-wrapper.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-accordion-content-inner {
  overflow: hidden;
}
.path-animate {
  stroke-dasharray: 10, 10;
  animation: dash-move 20s linear infinite;
}

@keyframes dash-move {
  to {
    stroke-dashoffset: -200;
  }
}

.plane-animate {
  animation: plane-move 6s ease-in-out infinite;
  offset-rotate: auto;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

/* Print Optimization for Clean Scorecard Printing */
@media print {
  header, footer, #site-header, #site-footer, #analytics-actions-container, #analytics-header-nav, #questions-header-nav, #analytics-coupon-container, #questions-coupon-container, #global-coupon-mount, #rankbot-widget-container, #app-toast, .nav-btn, button {
    display: none !important;
  }
  body, main {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #sec-analytics, #overview-card-container, #section-table-container {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
  }
}

