@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wdth,wght@0,62.5..100,100..900;1,62.5..100,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  --color-primary: #6A0DAD; /* Dark purple */
  --bg-image: url();
  --widget-padding: 24px;
  --content-padding: 20px;
}

@media (width > 960px) {
  :root {
    --content-padding: 40px;
  }
}

body {
  font-family: Lato, sans-serif;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  max-height: 400px;
  z-index: -1;
  background: var(--color-bg) var(--bg-image) center center/cover no-repeat;
  mask-image: linear-gradient(rgba(0, 0, 0, 0.5) 60%, transparent);
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Rubik, sans-serif;
  font-weight: 700;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
  border-radius: 2px;
}

.btn-primary:hover, .btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
  box-shadow: 0 0 6px rgba(106, 13, 173, 0.6); /* dark purple hover glow */
}

.quantity-field {
  border-radius: 2px;
  overflow: hidden;
}

.site-header-inner {
  font-family: Rubik, sans-serif;
}

.site-sale-banner {
  border-radius: 4px;
}

.site-home-categories {
  position: relative;
  z-index: 1;
}

.site-home-categories .category {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  padding: 32px;
  min-height: 215px;
  border-radius: 4px;
  overflow: hidden;
  font-family: Rubik, sans-serif;
}

.site-home-categories .category:hover {
  color: #6A0DAD; /* changed hover color to dark purple */
}

.site-home-categories .category::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(transparent 25%, var(--color-bg));
}

.site-home-categories .category img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-brighter-bg);
}

.store-text {
  background: #1c1c1c;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-text:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(106, 13, 173, 0.3); /* dark purple hover shadow */
}

.category-description {
  border-radius: 4px;
  border: 1px solid #2D2D2D;
  padding: calc(var(--widget-padding) - 1px);
  background: var(--color-brighter-bg);
}

.category-description h1, .category-description h2, .category-description h3, .category-description h4, .category-description h5, .category-description h6 {
  color: var(--color-text);
}

.store-product {
  border-radius: 4px;
  border: 1px solid #2D2D2D;
  background: var(--color-brighter-bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-product .descr h1, .store-product .descr h2, .store-product .descr h3, .store-product .descr h4, .store-product .descr h5, .store-product .descr h6 {
  color: var(--color-text);
}

.store-product:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px 3px #6A0DAD; /* dark purple glow */
  z-index: 2;
}

.no-products {
  border-radius: 4px;
  border: 1px solid #2D2D2D;
  background: var(--color-brighter-bg);
}

.site-navigation .menu,
.navigation-vertical .menu,
.navigation-horizontal .menu {
  font-family: Rubik, sans-serif;
  font-weight: 600;
  background: transparent !important;
}

@media (width > 960px) {
  .navigation-horizontal .menu {
    padding: 15px;
    border-radius: 4px;
    background: transparent;
  }
  .navigation-horizontal .menu > li {
    border: 1px solid transparent;
    line-height: 20px;
  }
  .navigation-horizontal .menu > li > a {
    padding: 10px calc(var(--widget-padding) / 2);
  }
  .navigation-horizontal .menu > li.active {
    border-color: transparent;
    border-radius: 4px;
    background: transparent;
  }
  .navigation-horizontal .menu > li.active > a {
    border-radius: 4px;
    border-color: transparent !important;
  }
}

.navigation-horizontal a.link-active {
  color: var(--color-text);
  font-weight: 700;
}

.navigation-horizontal .has-children > ul {
  border-radius: 4px;
}

.navigation-vertical {
  border-radius: 4px;
  border: 1px solid #2D2D2D;
  padding: calc(var(--widget-padding) / 2);
  background: var(--color-brighter-bg);
}

.widget {
  padding: 0;
}

.widget-title {
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 700;
}

.widget-content {
  border-radius: 4px;
  border: 1px solid #2D2D2D;
  padding: calc(var(--widget-padding) - 1px);
  background: var(--color-brighter-bg);
}

.widget-featured .store-product {
  border: 0;
  padding: 0;
}

.popup .popup-close {
  border-radius: 0 4px 0 0;
}

.store-product-tiered {
  border-radius: 4px;
  border: 1px solid #2D2D2D;
  background: var(--color-brighter-bg);
}

.store-category-tiered-header h1,
.store-category-tiered-header h2,
.store-category-tiered-header h3,
.store-category-tiered-header h4,
.store-category-tiered-header h5,
.store-category-tiered-header h6 {
  text-align: center;
}

.store-product-tiered {
  border-radius: 4px;
  border: 1px solid #2D2D2D;
  background: rgba(106, 13, 173, 0.5); /* dark purple overlay */
}

/* Dropdown styling on hover */
.navigation-horizontal .menu > li.has-children {
  position: relative;
}

.navigation-horizontal .menu > li.has-children > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a1a;
  border-radius: 4px;
  padding: 0;
  z-index: 1000;
  min-width: 180px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.navigation-horizontal .menu > li.has-children:hover > ul {
  display: block;
}

.navigation-horizontal .menu > li.has-children > ul > li > a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.navigation-horizontal .menu > li.has-children > ul > li:hover > a {
  background: #6A0DAD; /* dark purple hover */
  color: #fff;
}

.site-header .menu > li > a {
  color: #fff !important;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.navigation-horizontal .menu > li > a {
  color: #ffffff; /* default link color */
  transition: color 0.3s ease;
}

.navigation-horizontal .menu > li:hover > a {
  color: #6A0DAD !important; /* dark purple */
}

.navigation-horizontal .menu > li:hover {
  background-color: rgba(106, 13, 173, 0.15); /* light purple background */
  border-radius: 4px;
}

/* Full-page gradient background */
:root {
  --color-bg: linear-gradient(45deg, #3b0066, #000000, #4b0082);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  background: var(--color-bg);
  background-size: 600% 600%;
  animation: gradientFlow 20s ease-in-out infinite;
  pointer-events: none;
}

/* Floating particles */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(183,115,255,0.16) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(200,170,255,0.12) 0 2.5px, transparent 4px),
    radial-gradient(circle, rgba(160,100,255,0.10) 0 1.8px, transparent 3px),
    radial-gradient(circle, rgba(220,200,255,0.08) 0 3px, transparent 5px),
    radial-gradient(circle, rgba(140,80,255,0.11) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(183,115,255,0.14) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(200,170,255,0.12) 0 2.5px, transparent 4px),
    radial-gradient(circle, rgba(160,100,255,0.10) 0 1.8px, transparent 3px),
    radial-gradient(circle, rgba(220,200,255,0.08) 0 3px, transparent 5px),
    radial-gradient(circle, rgba(140,80,255,0.11) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(180,120,255,0.13) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(160,90,255,0.1) 0 2px, transparent 3px);
  background-repeat: no-repeat;
  background-position:
    10% 20%, 70% 30%, 40% 80%, 85% 60%, 55% 10%,
    20% 70%, 65% 75%, 30% 35%, 80% 15%, 45% 50%,
    15% 90%, 90% 40%;
  background-size:
    6px 6px, 8px 8px, 5px 5px, 10px 10px, 6px 6px,
    6px 6px, 7px 7px, 5px 5px, 9px 9px, 5px 5px,
    6px 6px, 5px 5px;
  animation: particlesFloat 35s ease-in-out infinite;
  will-change: background-position;
}

@keyframes particlesFloat {
  0% { background-position: 10% 20%, 70% 30%, 40% 80%, 85% 60%, 55% 10%, 20% 70%, 65% 75%, 30% 35%, 80% 15%, 45% 50%, 15% 90%, 90% 40%; }
  25% { background-position: 13% 18%, 66% 35%, 43% 82%, 82% 58%, 50% 12%, 23% 68%, 63% 78%, 28% 38%, 77% 18%, 47% 52%, 18% 88%, 88% 42%; }
  50% { background-position: 8% 23%, 73% 28%, 38% 78%, 88% 64%, 58% 8%, 18% 72%, 69% 72%, 34% 33%, 82% 20%, 42% 54%, 13% 86%, 86% 38%; }
  75% { background-position: 11% 19%, 69% 33%, 45% 81%, 86% 56%, 52% 14%, 21% 69%, 66% 76%, 31% 37%, 79% 16%, 44% 51%, 16% 89%, 89% 41%; }
  100% { background-position: 10% 20%, 70% 30%, 40% 80%, 85% 60%, 55% 10%, 20% 70%, 65% 75%, 30% 35%, 80% 15%, 45% 50%, 15% 90%, 90% 40%; }
}

/* Transparent Tebex footers */
.site-footer,
.site-footer .footer-copyright,
.tebex-footer {
  background: transparent !important;
  border: none;
  box-shadow: none;
}

.site-footer,
.site-footer a,
.tebex-footer,
.tebex-footer a {
  color: #ccc;
}

.site-footer a:hover,
.tebex-footer a:hover {
  color: #fff;
}

/* --- LOGO STYLING --- */

/* Homepage only */
body.page-index h1.site-title img {
  max-height: 600px !important;
  width: auto !important;
  height: auto !important;
}

body.page-index .site-title {
  margin-top: 100px !important;
  display: block !important;
  text-align: center !important;
}

/* Default (all other pages) */
h1.site-title img {
  max-height: 300px !important;
  width: auto; !important;
  height: auto; !important;
}

.site-title {
  margin-top: 0;
  text-align: left;
}

/* Navigation top-left */
header .site-navigation {
  position: absolute !important;
  top: 35px !important;
  left: -125px !important;
  margin: 0 !important;
  padding: 12px 20px !important;
}

/* Left top-left logo */
.left-logo img {
  position: absolute;
  top: -130px;
  left: -250px;
  z-index: 1000;
  max-width: 90px;
  height: auto;
}

a.log-in.btn-tertiary {
  position: absolute;
  top: 60px;
  right: -150px;
  z-index: 1000;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Disable clicking ONLY on the main "Peds" link */
.site-navigation .menu > li.has-children > a[href="/category/peds"] {
  pointer-events: none;
  cursor: default;
  color: #aaa; /* optional: gray it out so it looks inactive */
}

/* Main homepage logo animation */
body.page-index h1.site-title img {
  max-height: 300px;
  width: auto;
  display: block;
  margin: 0 auto;
  animation: smoothFloat 6s ease-in-out infinite;
  transition: transform 0.8s ease, filter 0.8s ease;
  filter: drop-shadow(0 0 10px #6A0DAD); /* soft purple glow */
}

/* Spin + scale + brighter glow on hover */
body.page-index h1.site-title img:hover {
  transform: scale(1.1) rotate(360deg);
  filter: drop-shadow(0 0 25px #6A0DAD);
}

/* Continuous smooth floating effect */
@keyframes smoothFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ---------------------------------------------
   MOBILE FIXES (max-width: 960px)
--------------------------------------------- */
@media (max-width: 960px) {

  /* Header: stack elements vertically */
  header {
    flex-direction: column !important;
    align-items: center !important;
    padding: 1rem !important;
  }

  /* Logo: center and reduce size */
  .left-logo img {
    position: static !important;
    max-width: 70px !important;
    margin-bottom: 0.5rem !important;
  }

  /* Homepage logo */
  h1.site-title {
    text-align: center !important;
    margin-top: 0.5rem !important;
  }

  h1.site-title img {
    max-height: 200px !important;
  }

  /* User actions / top-right buttons */
  .user-actions {
    position: static !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0.5rem 0 !important;
  }

  a.log-in.btn-tertiary,
  .user-actions button {
    position: static !important;
    top: auto !important;
    right: auto !important;
    font-size: 16px !important;
  }

  /* Navigation menu */
  .site-navigation {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }

  .navigation-horizontal .menu {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .navigation-horizontal .menu > li {
    display: block !important;
    width: 100% !important;
  }

  .navigation-horizontal .menu > li > a {
    display: block !important;
    width: 100% !important;
    padding: 10px !important;
  }
}

/* --- Click to Join buttons (forced white + subtle purple glow) --- */
a.action[href*="cfx.re/join"],
a.info.discord .action {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

a.action[href*="cfx.re/join"]:hover,
a.info.discord .action:hover {
  color: #ffffff !important;
  text-shadow: 0 0 6px rgba(106, 13, 173, 0.8); /* subtle purple glow */
}

/* --- Product cards grid layout --- */
.store-products-images {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr); /* 4 cards per row */
  gap: 20px; /* spacing between cards */
  justify-content: center; /* center grid content */
  max-width: 1400px; /* keep it centered on large screens */
  margin: 0 auto; /* center on page */
}

/* Make sure cards scale nicely */
.store-product {
  text-align: center;
  background: rgba(0, 0, 0, 0.4); /* optional: subtle card background */
  border-radius: 12px;
  padding: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(106, 13, 173, 0.5); /* purple hover glow */
}

body.page-index .store-sidebar {
  display: none; /* hides sidebar ONLY on homepage */
}

/* Match recent payment purchases to product card style */
.store-sidebar .purchase {
  background: #1c1c1c; /* match product card bg */
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Avatar spacing */
.store-sidebar .purchase .avatar {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  margin-right: 10px;
}

/* Text styling */
.store-sidebar .purchase .info h6 {
  font-size: 14px;
  color: #fff;
  margin: 0;
}

/* Hover effect same as store cards */
.store-sidebar .purchase:hover {
  transform: translateY(-4px) scale(1.02);
  bo

}

/* Base dropdown container */
.site-navigation ul ul {
  background: rgba(25, 25, 25, 0.9) !important; /* semi-transparent dark */
  border-radius: 10px !important;
  padding: 6px 0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}

/* Each dropdown item */
.site-navigation ul ul li a {
  display: block !important;
  padding: 10px 16px !important;
  font-weight: 500 !important;
  color: #fff !important;
  border-radius: 6px !important;
  transition: background 0.25s ease, transform 0.2s ease !important;
}

/* Hover effect */
.site-navigation ul ul li a:hover {
  background: #6a0dad !important; /* your purple highlight */
  transform: translateX(4px) !important;
}

