/* ==============================================
   GALAXIS STUDIOS - CUSTOM THEME CSS
   Theme for Tebex Webstore
   ============================================== */

/* ============== CSS Variables ============== */
:root {
  --bg: #0c0d10;
  --text: #e5e7eb;
  --neon: #00BF63;
  --card: #151618;
  --header: #15181D;
  --border: #23242a;
}

/* ============== Base Styles ============== */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
}

/* ============== Background Noise Effect ============== */
/* Background SVG removed - keeping this for future use */


/* ============== Animations ============== */

/* Marquee Scroll Animation (Reviews & Payments) */
.marquee-track {
  display: inline-flex;
  animation: scroll-left 40s linear infinite;
  white-space: nowrap;
}

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

.payments-marquee {
  display: flex;
  gap: 1.5rem;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

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

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

/* ============== Utility Classes ============== */

/* Text Selection */
::selection {
  background: rgba(0, 191, 99, 0.2);
  color: #fff;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon);
}

/* Line Clamp Utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============== Tebex Integration ============== */

/* Featured Package in Grid */
.popular-scripts-section .grid .featured-package-item {
  /* Already in grid, no extra styling needed */
}

/* Recent Payments - Full Width, Outside Grid */
.popular-scripts-section .grid > section {
  grid-column: 1 / -1; /* Span all columns */
}

/* Quantity Input */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Countdown Timer */
[data-countdown] {
  font-variant-numeric: tabular-nums;
}

/* ============== Responsive Adjustments ============== */

@media (max-width: 768px) {
  .noise-layer::before {
    display: none; /* Disable noise on mobile for performance */
  }

  .marquee-track {
    animation-duration: 30s; /* Faster on mobile */
  }
}

/* ============== Mobile Navigation ============== */

/* Mobile Navigation Overlay */
.site-navigation.navigation-horizontal {
  display: none;
}

@media (min-width: 768px) {
  .site-navigation.navigation-horizontal {
    display: block;
  }
}

/* Mobile Menu (shown when toggle-navigation is clicked) */
@media (max-width: 767px) {
  .site-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #15181D;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.5);
  }

  .site-navigation.is-open {
    left: 0;
  }

  .site-navigation .navigation-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 0;
  }

  .site-navigation .navigation-list li {
    width: 100%;
    border-bottom: 1px solid #23242a;
  }

  .site-navigation .navigation-list a {
    display: block;
    width: 100%;
  }

  .close-navigation {
    display: block !important;
    position: absolute;
    top: 10px;
    right: 10px;
  }
}

/* ============== Accessibility ============== */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none !important;
  }
}

/* Focus Styles */
*:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

/* ============== Package Description Styling ============== */

.description-content {
  font-size: 0.95rem;
  line-height: 1.8;
}

.description-content p {
  margin-bottom: 0.75rem;
  color: #d1d5db;
}

/* Headings (##) with emoji icons */
.description-content .desc-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neon);
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding-left: 0 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.description-content .desc-heading::before {
  display: none !important;
}

/* Subheadings (###) */
.description-content .desc-subheading {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-left: 0 !important;
}

.description-content .desc-subheading::before {
  display: none !important;
}

/* List items (*) with green checkmarks */
.description-content .desc-list-item {
  position: relative;
  padding-left: 2rem !important;
  margin-bottom: 0;
  padding-bottom: 0.25rem;
  color: #d1d5db;
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
}

.description-content .desc-list-item::before {
  content: '✓' !important;
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--neon);
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blockquote (>) - Info boxes */
.description-content .desc-quote {
  border-left: 3px solid var(--neon);
  padding: 1rem 1.25rem !important;
  margin: 1.5rem 0;
  font-style: italic;
  color: #d1d5db;
  background: rgba(0, 191, 99, 0.08);
  border-radius: 0.5rem;
  line-height: 1.7;
}

.description-content .desc-quote::before {
  display: none !important;
}

/* Spacers (empty paragraphs with <br>) */
.description-content .desc-spacer {
  margin-bottom: 1rem;
  height: 0;
}

.description-content .desc-spacer::before {
  display: none !important;
}

/* Links */
.description-content a {
  color: var(--neon);
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.description-content a:hover {
  border-bottom-color: var(--neon);
  opacity: 0.8;
}

/* Bold text (**text**) */
.description-content strong,
.description-content b {
  color: #fff;
  font-weight: 600;
}

/* First paragraph after heading */
.description-content .desc-heading + p {
  margin-top: 0.5rem;
}

/* ============== Hide Empty Maps Category from Dropdown ============== */
/* Hide first item in Maps dropdown if it's the parent category link */
.site-navigation li.group ul li:first-child:has(a[href*="/category/"]):not(:has(a[href*="open-source"])):not(:has(a[href*="escrow"])):not(:has(a[href*="free"])) {
  display: none !important;
}

/* Alternative: Target by text content (if Maps is shown) */
.site-navigation li.group ul li a[href*="/category/"]:not([href*="open-source"]):not([href*="escrow"]):not([href*="free"]) {
  pointer-events: none;
  opacity: 0;
  height: 0;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

/* ============== Hide Empty Scripts Category from Dropdown ============== */
/* Hide first item in Scripts dropdown if it's the parent category link */
.site-navigation li.group ul li:first-child:has(a[href*="/category/"]):not(:has(a[href*="open-source"])):not(:has(a[href*="escrow"])):not(:has(a[href*="free"])):not(:has(a[href*="maps"])) {
  display: none !important;
}

/* Hide parent Scripts link in dropdown */
.site-navigation li.group ul li a[href*="/category/"]:not([href*="open-source"]):not([href*="escrow"]):not([href*="free"]):not([href*="maps"]) {
  pointer-events: none;
  opacity: 0;
  height: 0;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

/* ============== Hide Empty Parent Categories from Category Page Tabs ============== */
/* Hide parent category tabs (Scripts/Maps) that have no products - only show subcategories */
/* Only target category page, not home page - use body class selector */
.page-category .flex.justify-center.gap-6 a[href*="/category/"]:not([href*="_"]):not([href*="open-source"]):not([href*="opensource"]):not([href*="escrow"]):not([href*="free"]) {
  display: none !important;
}

/* ============== Discount Price Styling ============== */
.old-price {
  color: #ef4444 !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  text-decoration: line-through !important;
  text-decoration-color: #ef4444 !important;
  text-decoration-thickness: 2px !important;
}