@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");

:root {
  --color-primary: #f6a5b5;
  --bg-image: url("https://i.postimg.cc/J0kPNBYP/valleycraft2.png");
  --sakura-bg: #FFEFED;
  --widget-bg-image: url("https://i.postimg.cc/7YH2M42x/bg.png");
}

body {
  font-family: Lato, sans-serif;
  background-color: var(--sakura-bg);
  color: #1a1a1a;
}

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

/* Slight tint for page wrappers */
.main-content,
.content,
.page-content {
  background-color: transparent;
}

/* Hide the white ValleyCraft text/logo overlay */
.site-header-inner .info,
.site-header h1,
.site-header .info,
.site-header .store-name {
  display: none !important;
}

/* Shared page wrappers */
.home-page-wrap,
.category-page-wrap,
.cms-page-wrap {
  position: relative;
  margin-top: 100px;
  max-width: 1600px;
  width: calc(100% - 80px);
  margin-left: auto;
  margin-right: auto;
  padding-top: 0;
}

/* Homepage layout */
.home-page-wrap .site-content,
.home-page-wrap .site-content-widgets {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  column-gap: 28px !important;
  align-items: start !important;
}

.home-page-wrap .site-content {
  gap: 28px;
}

/* Category / Ranks page layout */
.category-page-wrap .site-content,
.category-page-wrap .site-content-widgets {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  column-gap: 28px !important;
  align-items: start !important;
}

.category-page-wrap .site-content {
  gap: 28px;
}

/* CMS/custom pages like Contact Us */
.cms-page-wrap .site-content,
.cms-page-wrap .site-content-widgets {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  column-gap: 28px !important;
  align-items: start !important;
}

.cms-page-wrap .site-content {
  gap: 28px;
}

.cms-page-wrap .store-text {
  min-width: 0;
  width: 100%;
}

/* Buttons */
.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 rgb(from var(--btn-color-bg-hover) r g b / 0.6);
}

.btn-primary,
button.btn-primary,
.store-product .btn-primary {
  background-color: #f6a5b5 !important;
  border-color: #f6a5b5 !important;
  color: #ffffff !important;
}

.btn-primary:hover,
button.btn-primary:hover,
.store-product .btn-primary:hover {
  background-color: #ec8fa3 !important;
  border-color: #ec8fa3 !important;
  color: #ffffff !important;
}

.btn-primary:active,
button.btn-primary:active {
  background-color: #e07c92 !important;
  border-color: #e07c92 !important;
}

.progress-bar,
.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  background-color: #f6a5b5 !important;
}

/* General rounded elements */
.quantity-field,
.site-header-inner .info .image,
.site-sale-banner,
.popup-content,
.basket-item,
.media-slider .slider,
.media-slider .thumb,
.popup.popup-media-slider .thumb,
.popup.popup-media-slider .popup-close {
  border-radius: 5px;
}

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

.basket-popup-content,
.basket-popup-content .popup-close {
  border-radius: 0;
}

.basket-item .quantity,
.toast-close,
.media-slider .open-lightbox,
.widget-gift-card .gift-card-input,
.widget-community-goal .progress,
.widget-goal .progress,
.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  border-radius: 2px;
}

.widget-top-donator .avatar {
  border-radius: 50%;
}

.toast {
  border-radius: 6px;
}

/* Shared petal panel styling */
.widget,
.store-text,
.store-category-tiered,
.store-product,
.store-product-full,
.store-products-list .store-product,
.store-products-images .store-product,
.no-products,
.category-description,
.store-product-tiered {
  border-radius: 5px;
  background-image: var(--widget-bg-image);
  background-size: 450px;
  background-repeat: repeat;
  background-position: top left;
  background-color: rgba(255, 255, 255, 0.75);
  background-blend-mode: lighten;
}

/* Headings */
.store-text h1,
.store-text h2,
.store-text h3,
.store-text h4,
.store-text h5,
.store-text h6,
.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,
.widget-title {
  text-align: center;
}

/* Product cards */
.store-products-images .store-product,
.widget .store-product {
  text-align: center;
}

/* Inputs and controls */
.store-product .quantity-field,
.page-category .quantity-field,
.page-category .store-product .quantity-field {
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.75);
}

.store-product .quantity-field input[type="number"],
.page-category .store-product .quantity-field input[type="number"] {
  border: none;
  background: transparent;
  color: #1a1a1a;
}

/* Navigation */
@media (width > 960px) {
  .navigation-horizontal > ul {
    border-radius: 5px;
  }
}

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

@media (width <= 960px) {
  .widget.site-navigation {
    border-radius: 0;
    background: transparent;
  }
}

/* Basket and misc spacing */
.basket-items {
  padding: var(--widget-padding) calc(var(--content-padding) - var(--widget-padding));
}

/* Dark text for light floral panels */
body,
.widget,
.store-text,
.store-category-tiered,
.store-product,
.store-product-full,
.store-product-tiered,
.widget-title,
.store-text h1,
.store-text h2,
.store-text h3,
.store-text h4,
.store-text h5,
.store-text h6,
.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,
.page-category,
.page-category a,
.page-category p,
.page-category span,
.page-category li,
.page-category strong {
  color: #1a1a1a !important;
}

.widget a {
  color: #1a1a1a !important;
}

/* Homepage changelog / announcement post */
.home-announcement {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-announcement-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(120, 90, 110, 0.15);
}

.home-announcement-avatar {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  image-rendering: pixelated;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.home-announcement-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-announcement-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2a2226;
  line-height: 1.1;
}

.home-announcement-role {
  display: inline-block;
  width: fit-content;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: #f6a5b5;
  padding: 4px 10px;
  border-radius: 999px;
}

.home-announcement-date {
  font-size: 0.9rem;
  color: #6f5a65;
}

.home-announcement-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2a2226;
  margin: 0;
}

.home-announcement-body {
  line-height: 1.8;
  color: #2a2226;
}

.home-announcement-body p {
  margin: 0 0 14px 0;
}

.home-announcement-body ul {
  margin: 0;
  padding-left: 20px;
}

.home-announcement-body li {
  margin-bottom: 8px;
}

.home-changelog {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(120, 90, 110, 0.15);
}

.home-changelog-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2a2226;
}

.home-changelog-entry {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.home-changelog-bullet {
  color: #f6a5b5;
  font-weight: 700;
  line-height: 1.4;
}

.home-changelog-text {
  color: #2a2226;
  line-height: 1.6;
}

.home-announcement + .home-announcement {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(120, 90, 110, 0.15);
}

/* Global floating cards on all pages */
.global-floating-actions {
  position: absolute;
  top: 285px;
  left: 155px;
  right: 155px;
  z-index: 20;
  pointer-events: none;
}

.global-floating-left,
.global-floating-right {
  position: absolute;
  top: 0;
  pointer-events: auto;
}

.global-floating-left {
  left: 0;
}

.global-floating-right {
  right: 0;
}

/* Floating cards */
.home-action-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none !important;
  width: 260px;
  height: 120px;
  padding: 14px 16px;
  border-radius: 8px;
  background-image: var(--widget-bg-image);
  background-size: 450px;
  background-repeat: repeat;
  background-position: top left;
  background-color: rgba(255, 255, 255, 0.80);
  background-blend-mode: lighten;
  color: #1a1a1a !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.home-action-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7d5a67;
  margin-bottom: 8px;
  text-align: center;
}

.home-action-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f6a5b5;
  margin-bottom: 6px;
  text-align: center;
}

.home-action-discord .home-action-value {
  color: #e88fa6;
}

.home-action-subtext {
  font-size: 0.92rem;
  color: #6c5961;
  text-align: center;
}

.home-action-discord:hover,
.home-action-ip:hover {
  transform: translateY(-2px);
  transition: transform 0.15s ease;
}

.home-action-ip {
  cursor: pointer;
}

.home-action-ip:active {
  transform: scale(0.97);
}

/* Mobile */
@media (max-width: 960px) {
  .home-page-wrap,
  .category-page-wrap,
  .cms-page-wrap {
    width: calc(100% - 32px);
  }

  .global-floating-actions {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 16px 16px 24px;
    pointer-events: auto;
  }

  .global-floating-left,
  .global-floating-right {
    position: static;
  }

  .home-action-card {
    width: 100%;
    min-height: auto;
  }

  .home-page-wrap .site-content,
  .home-page-wrap .site-content-widgets,
  .category-page-wrap .site-content,
  .category-page-wrap .site-content-widgets,
  .cms-page-wrap .site-content,
  .cms-page-wrap .site-content-widgets {
    grid-template-columns: 1fr !important;
  }
}