@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");
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   CUBECONQUEST MODERN THEME
   Inspired by Hypixel Design
   ============================================ */

:root {
  /* CubeConquest Brand Colors - Purple/Pink/Blue gradient from logo */
  --color-primary: #9D4EDD;
  --color-primary-light: #C77DFF;
  --color-primary-dark: #7B2CBF;
  --color-accent: #E0AAFF;
  --color-accent-bright: #FF6EC7;
  --color-blue: #5390D9;
  --color-blue-dark: #4361EE;
  
  /* Gradients inspired by CubeConquest logo */
  --gradient-primary: linear-gradient(135deg, #9D4EDD 0%, #C77DFF 50%, #E0AAFF 100%);
  --gradient-accent: linear-gradient(135deg, #7B2CBF 0%, #9D4EDD 50%, #C77DFF 100%);
  --gradient-blue: linear-gradient(135deg, #4361EE 0%, #5390D9 100%);
  --gradient-rainbow: linear-gradient(135deg, #9D4EDD 0%, #C77DFF 25%, #E0AAFF 50%, #5390D9 75%, #4361EE 100%);
  
  /* Background - Modern dark like Hypixel */
  --bg-image: url("https://template-assets.tebex.io/images/page-bg.jpg");
  --bg-overlay: rgba(13, 13, 13, 0.85);
}

/* ============================================
   BODY & BACKGROUND
   ============================================ */

body {
  font-family: 'Poppins', 'Lato', sans-serif;
  background: #0a0a0a;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: var(--bg-image) center center/cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(ellipse at top, rgba(157, 78, 221, 0.1) 0%, transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(83, 144, 217, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* ============================================
   BUTTONS - Modern with gradient effects
   ============================================ */

.btn-primary,
.btn-secondary,
.btn-tertiary {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  font-size: 13px;
}

.btn-primary {
  background: var(--gradient-primary) !important;
  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
  border: none;
}

.btn-primary:hover, 
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(157, 78, 221, 0.5) !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
  box-shadow: 0 0 6px rgb(from var(--btn-color-bg-hover) r g b/0.6);
  transform: translateY(-1px);
}

.quantity-field {
  border-radius: 8px;
  border: 2px solid rgba(157, 78, 221, 0.3);
  background: rgba(13, 13, 13, 0.8);
  transition: all 0.3s ease;
}

.quantity-field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.3);
}

/* ============================================
   HEADER - Modern styling
   ============================================ */

.site-header-inner .info .image {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.2);
}

.site-sale-banner {
  border-radius: 12px;
  background: var(--gradient-primary);
  padding: 16px 24px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 30px rgba(157, 78, 221, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* ============================================
   HOME CATEGORIES - Gamemode Cards
   Modern cards like Hypixel
   ============================================ */

.site-home-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.site-home-categories .category {
  border-radius: 16px;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.1) 0%, rgba(13, 13, 13, 0.95) 100%);
  border: 2px solid rgba(157, 78, 221, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}

.site-home-categories .category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.site-home-categories .category:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--color-primary);
  box-shadow: 0 12px 40px rgba(157, 78, 221, 0.4),
              0 0 60px rgba(157, 78, 221, 0.2);
  color: #fff;
}

.site-home-categories .category:hover::before {
  opacity: 0.15;
}

.site-home-categories .category .image,
.site-home-categories .category img {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(157, 78, 221, 0.3));
  transition: transform 0.4s ease;
  max-width: 128px;
  height: auto;
}

.site-home-categories .category:hover .image,
.site-home-categories .category:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 8px 20px rgba(157, 78, 221, 0.5));
}

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

/* ============================================
   CATEGORY DESCRIPTION
   ============================================ */

.category-description {
  border-radius: 16px;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(157, 78, 221, 0.15);
  padding: 24px;
  margin-bottom: 32px;
}

/* ============================================
   STORE TEXT - Content Sections
   ============================================ */

.store-text {
  border-radius: 16px;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(157, 78, 221, 0.15);
  padding: 40px;
}

.store-text h1,
.store-text h2,
.store-text h3,
.store-text h4,
.store-text h5,
.store-text h6 {
  text-align: center;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-bottom: 20px;
}

.store-text h1 {
  font-size: 48px;
  letter-spacing: 2px;
}

.store-text h2 {
  font-size: 36px;
}

.store-text h3 {
  font-size: 28px;
}

.store-text p {
  line-height: 1.8;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.store-text ul,
.store-text ol {
  margin: 20px 0;
  padding-left: 32px;
}

.store-text li {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   PRODUCTS - Package Cards
   Modern design like Hypixel packages
   ============================================ */

.store-products-list .store-product,
.store-products-images .store-product {
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.08) 0%, rgba(13, 13, 13, 0.95) 100%);
  border: 2px solid rgba(157, 78, 221, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  padding: 24px;
}

.store-products-list .store-product::before,
.store-products-images .store-product::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.store-products-list .store-product:hover,
.store-products-images .store-product:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 35px rgba(157, 78, 221, 0.35),
              0 0 50px rgba(157, 78, 221, 0.15);
}

.store-products-list .store-product:hover::before,
.store-products-images .store-product:hover::before {
  opacity: 1;
}

.store-products-images .store-product {
  text-align: center;
}

.store-product .product-name {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.store-product .product-price {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 24px;
  position: relative;
  z-index: 1;
}

/* ============================================
   WIDGETS - Sidebar modules
   ============================================ */

.widget-title {
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.widget {
  border-radius: 16px;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(157, 78, 221, 0.15);
  padding: 24px;
  margin-bottom: 24px;
}

.widget .store-product {
  text-align: center;
  background: rgba(157, 78, 221, 0.05);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(157, 78, 221, 0.1);
  transition: all 0.3s ease;
}

.widget .store-product:hover {
  background: rgba(157, 78, 221, 0.12);
  border-color: rgba(157, 78, 221, 0.3);
  transform: scale(1.02);
}

/* ============================================
   NO PRODUCTS
   ============================================ */

.no-products {
  color: var(--color-text-secondary);
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(157, 78, 221, 0.15);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  font-size: 18px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .site-home-categories {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .store-text h1 {
    font-size: 32px;
  }
  
  .store-text h2 {
    font-size: 24px;
  }
  
  .store-text {
    padding: 24px;
  }
}

/* ============================================
   CUSTOM ANIMATIONS
   ============================================ */

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.6);
  }
}

.featured-product {
  animation: glow 2s ease-in-out infinite;
}
