/* ─── CrystalWars theme ─────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@600;700;800&display=swap");

:root {
  /* CrystalWars palette */
  --color-text:                 #e4e4f0;
  --color-text-darker:          #ffffff;
  --color-text-secondary:       #8888aa;
  --color-text-dark:            #08080f;
  --color-bg:                   #08080f;
  --color-brighter-bg:          #10101e;
https://creator.tebex.io/templates/304241/editor
  /* brand red-pink */
  --color-primary:              #f0325a;
  --color-primary-hover:        #ff4d72;
  --color-primary-text:         #ffffff;
  --color-primary-text-hover:   #ffffff;

  /* dark secondary buttons */
  --color-secondary:            #1b1b2e;
  --color-secondary-hover:      #262640;
  --color-secondary-text:       #e4e4f0;
  --color-secondary-text-hover: #ffffff;

  --color-tertiary:             transparent;
  --color-tertiary-hover:       rgb(255 255 255 / 8%);
  --color-tertiary-text:        #e4e4f0;
  --color-tertiary-text-hover:  #ffffff;

  --color-removed:              #ff4d6d;

  /* top background image (fades into the dark bg). Swap the URL for any image
     you upload to Tebex Assets, or delete the body::before block below. */
  --bg-image: url("https://crystalwars.org/images/nautilus.png");
}

/* ─── Fonts ─────────────────────────────────────────────────────────── */
body { font-family: "Inter", sans-serif; }

h1, h2, h3, h4, h5, h6,
.product-title,
.widget-title,
.basket-title,
.store-category-tiered-header,
.basket .basket-item .title {
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.01em;
}

.site-header-inner .site-title {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

/* ─── Top background image ──────────────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(8, 8, 15, 0.72), rgba(8, 8, 15, 0.88)),
    var(--bg-image) center center / cover no-repeat;
  pointer-events: none;
}

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-tertiary { border-radius: 8px; }

.btn-primary:hover, .btn-primary:focus,
.btn-secondary:hover, .btn-secondary:focus {
  box-shadow: 0 0 10px rgb(from var(--color-primary) r g b / 0.45);
}

/* ─── Cards / surfaces (dark + rounded like crystalwars.org) ─────────── */
.site-home-categories .category,
.category-description,
.store-text,
.store-products-list .store-product,
.store-products-images .store-product,
.store-product-full,
.store-product .quantity-field,
.no-products,
.widget,
.basket-item,
.store-category-tiered,
.store-product-tiered,
.popup-content {
  border-radius: 14px;
  background: var(--color-brighter-bg);
}

.site-home-categories .category {
  padding: 22px var(--widget-padding);
  transition: color 0.15s, background 0.15s, transform 0.1s;
}
.site-home-categories .category:hover {
  color: var(--color-primary);
  background: #181828;
}
.site-home-categories .category:active { transform: scale(1.03); }

/* category titles a touch bigger/bolder to match the site cards */
.site-home-categories .category {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

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

.quantity-field { border-radius: 8px; }
.quantity-field input[type=number] { border: none; }

/* nav bar + dropdowns */
@media (width > 960px) {
  .navigation-horizontal > ul { border-radius: 12px; }
}
.navigation-horizontal .has-children > ul { border-radius: 10px; }

.site-home-categories .category-soon {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
/* misc rounding to match */
.basket-item .quantity { border-radius: 6px; }
.toast { border-radius: 8px; }
.popup-close { border-radius: 0 14px 0 14px; }

/* Blue hover is the template's default colour showing through — force brand red */
:root {
  --color-primary:       #f0325a !important;
  --color-primary-hover: #ff4d72 !important;
}

/* Remove the "Home" tab from the nav */

.site-navigation .nav-soon a { opacity: 0.5; cursor: not-allowed; }
.site-navigation .nav-soon a:hover { color: inherit; }
.site-navigation .menu > li:has(> a[href="/"]) { display: none; }

/* Remove the homepage "Wow this is really cool" text */
.page-index .store-text { display: none; }
/* Remove the sidebar navigation menu entirely (big homepage cards stay) */
.site-navigation,
.store-sidebar { display: none !important; }

/* Content fills the space now that the sidebar is gone */
/* ─── Homepage category cards (match crystalwars.org) ─── */
.site-home-categories {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1rem !important;
  max-width: 1100px;   /* was 760px — wider like the old store */
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 600px) {
  .site-home-categories { grid-template-columns: 1fr !important; }
}

.site-home-categories .category {
  position: relative;
  overflow: hidden;
  display: block !important;
  min-height: 210px;
  padding: 2.4rem 2rem 1.6rem !important;
  border-radius: 14px;
  background: var(--color-brighter-bg);
  text-align: left !important;
  transition: background 0.15s, transform 0.1s;
}
.site-home-categories .category:hover { background: #181828; color: var(--color-text); }
.site-home-categories .category:active { transform: scale(1.04); }
.site-home-categories .category-soon:active { transform: none; }

.site-home-categories .cat-name {
  font-family: "Work Sans", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}
.site-home-categories .cat-browse {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  position: relative;
  z-index: 1;
}

.site-home-categories .cat-icon {
  position: absolute;
  right: 0.6rem; bottom: 0.6rem;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s;
}
.site-home-categories .category:hover .cat-icon { opacity: 0.9; }
.site-home-categories .cat-icon img {
  width: 140px; height: 140px;
  object-fit: contain;
  image-rendering: pixelated;
}
/* barrier + sunflower have transparent padding — scale up + nudge into the corner */
.site-home-categories .cat-punishments .cat-icon img,
.site-home-categories .cat-tokens .cat-icon img { width: 186px; height: 186px; }
.site-home-categories .cat-punishments .cat-icon,
.site-home-categories .cat-tokens .cat-icon { right: -0.8rem; bottom: -0.8rem; }

/* soft red glow behind the icon on hover */
.site-home-categories .category::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(170px 170px at 86% 80%, rgba(255,255,255,0.05), transparent 70%);
  transition: background 0.25s;
  pointer-events: none;
}
.site-home-categories .category:hover::before {
  background: radial-gradient(210px 210px at 86% 80%, rgba(240,50,90,0.22), transparent 70%);
}
.site-home-categories .category-soon:hover::before {
  background: radial-gradient(170px 170px at 86% 80%, rgba(255,255,255,0.05), transparent 70%);
}

/* coming soon dimmed */
.site-home-categories .category-soon {
  opacity: 0.55;
  cursor: not-allowed;
}
.site-content-widgets { display: block !important; }

/* ─── Featured bar (website / logo / discord) ─── */
.store-featured {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 1rem;
  max-width: calc(1100px - var(--content-padding) * 2);
  width: calc(100% - var(--content-padding) * 2);
  margin: 0 auto var(--widget-padding);
  padding: 1rem 1.4rem;
  background: var(--color-brighter-bg);
  border-radius: 14px;
}

.store-featured .feat-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.store-featured .feat-block {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-text);
  text-decoration: none;
}
.store-featured .feat-block:hover { text-decoration: none; }
.store-featured .feat-block.feat-discord { justify-content: flex-end; }
.store-featured .feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--color-primary);
  color: #fff;
}
.store-featured .feat-discord .feat-icon { background: #5865f2; }
.store-featured .feat-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-featured .feat-text.right { text-align: right; }
.store-featured .feat-text strong { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; }
.store-featured .feat-text em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
}
.store-featured .feat-logo {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.store-featured .feat-logo span { color: var(--color-primary); }

@media (max-width: 600px) {
  .store-featured { flex-direction: column; gap: 0.8rem; text-align: center; }
  .store-featured .feat-logo { position: static; transform: none; }
  .store-featured .feat-block,
  .store-featured .feat-cart { justify-content: center; width: 100%; }
  .store-featured .feat-text,
  .store-featured .feat-text.right { text-align: center; }
}
  
.site-header .header-account {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.6rem;
}
.store-featured .feat-block { background: none; border: none; cursor: pointer; }
.store-featured .feat-cart {
  justify-self: end;
  justify-content: flex-end;
}
.store-back {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.store-back:hover { color: var(--color-primary); }
/* Hide the now-dead mobile menu button */
.toggle-navigation { display: none !important; }
.site-header { margin-top: 70px; }
@media (max-width: 600px) {
  .site-header { margin-top: 40px; }
}