/*
Theme Name: Treasure Game Box Child Theme
Theme URI: https://treasuregamebox.com
Description: Premium dark fantasy/gaming child theme for Treasure Game Box.
Author: Antigravity AI
Version: 1.1.0
Template: hello-elementor
*/

/* ==========================================================================
   🎮 CORE DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
  --brand-cyan: #00C7CC;
  --brand-cyan-hover: #00e0e6;
  --brand-purple: #5D48D3;
  --brand-purple-light: #7A40FF;
  
  --bg-space: #08041C;
  --bg-card: #120935;
  --bg-input: #1b124a;
  
  --text-primary: #FFFFFF;
  --text-secondary: #A09BB9;
  --text-muted: #64748B;
  --text-dark: #08041C;
  
  --border-glass: rgba(140, 82, 255, 0.15);
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  
  --glow-purple: 0 0 15px rgba(93, 72, 211, 0.45);
  --glow-cyan: 0 0 15px rgba(0, 199, 204, 0.45);
}

/* ==========================================================================
   🌌 GLOBAL OVERRIDES (Dark Mode Spaceship Feel)
   ========================================================================== */
body {
  background-color: var(--bg-space) !important;
  color: var(--text-primary) !important;
  background-image: 
    radial-gradient(circle at top right, rgba(122, 64, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at bottom left, rgba(0, 199, 204, 0.08) 0%, transparent 45%) !important;
  background-attachment: fixed !important;
}

/* Restrict site custom logo dimensions to fit in the header */
.custom-logo,
.custom-logo-link img,
.site-header img,
.site-logo img,
.header-logo img,
a.custom-logo-link img {
  max-height: 48px !important;
  width: auto !important;
  display: inline-block !important;
}

/* Page Containers Override (Removes white container blocks of standard themes) */
#primary, 
#content, 
.site-content, 
.site-main, 
.post-content, 
.entry-content, 
.page-content, 
.woocommerce-content, 
article {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Heading Typography */
h1, h2, h3, h4, h5, h6, .entry-title {
  color: var(--text-primary) !important;
  font-weight: 850 !important;
  letter-spacing: -0.5px !important;
}

/* ==========================================================================
   🛒 WOOCOMMERCE PRODUCT CARDS & LOOP STYLING
   ========================================================================== */
.woocommerce ul.products li.product {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--border-radius-lg) !important;
  padding: 16px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  transition: all 0.3s ease !important;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-5px) !important;
  border-color: var(--brand-purple) !important;
  box-shadow: 0 8px 25px rgba(93, 72, 211, 0.25), var(--glow-purple) !important;
}

/* Card Thumbnail */
.woocommerce ul.products li.product img {
  border-radius: var(--border-radius-md) !important;
  background-color: var(--bg-input) !important;
  padding: 8px !important;
  margin-bottom: 12px !important;
}

/* Card Titles */
.woocommerce ul.products li.product .woocommerce-loop-product__title, 
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
}

/* Card Prices */
.woocommerce ul.products li.product .price,
.woocommerce .product .price {
  color: #ffffff !important;
  font-weight: 850 !important;
  font-size: 1.15rem !important;
  margin-bottom: 12px !important;
}
.woocommerce ul.products li.product .price ins,
.woocommerce .product .price ins {
  color: var(--brand-cyan) !important;
  text-decoration: none !important;
  font-weight: 850 !important;
}
.woocommerce ul.products li.product .price del,
.woocommerce .product .price del {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 0.9rem !important;
  margin-right: 6px !important;
}

/* Card Add-To-Cart Buttons */
.woocommerce ul.products li.product .button,
.woocommerce .button.alt,
.woocommerce #respond input#submit {
  background: var(--brand-purple) !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  padding: 10px 20px !important;
  font-weight: 750 !important;
  font-size: 0.85rem !important;
  border: 1px solid var(--border-glass) !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce .button.alt:hover,
.woocommerce #respond input#submit:hover {
  background: var(--brand-purple-light) !important;
  box-shadow: var(--glow-purple) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   🔑 FORM FIELDS & INPUTS OVERRIDES (Dark Form theme)
   ========================================================================== */
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row select, 
.woocommerce form .form-row textarea,
input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="password"], 
select, 
textarea {
  background-color: var(--bg-input) !important;
  border: 1px solid var(--border-glass) !important;
  color: #ffffff !important;
  border-radius: var(--border-radius-sm) !important;
  padding: 10px 14px !important;
  transition: all 0.3s ease !important;
}
.woocommerce form .form-row input.input-text:focus,
input[type="text"]:focus, 
select:focus,
textarea:focus {
  border-color: var(--brand-cyan) !important;
  box-shadow: var(--glow-cyan) !important;
  outline: none !important;
}

/* ==========================================================================
   👤 USER MY ACCOUNT DASHBOARD
   ========================================================================== */
.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
}
.woocommerce-MyAccount-navigation li a {
  display: block !important;
  padding: 12px 18px !important;
  border-radius: var(--border-radius-md) !important;
  background: var(--bg-card) !important;
  color: var(--text-secondary) !important;
  font-weight: 750 !important;
  margin-bottom: 8px !important;
  border: 1px solid var(--border-glass) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}
.woocommerce-MyAccount-navigation li:hover a,
.woocommerce-MyAccount-navigation li.is-active a {
  background: var(--brand-purple) !important;
  color: #ffffff !important;
  box-shadow: var(--glow-purple) !important;
  border-color: var(--brand-purple-light) !important;
}

/* Account Content Wrapper */
.woocommerce-MyAccount-content {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--border-radius-lg) !important;
  padding: 30px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

/* Tables (Order details & billing) */
.woocommerce-table--order-details, 
.shop_table.order_details, 
.shop_table.customer_details,
.shop_table.my_account_orders {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--border-radius-lg) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}
.woocommerce-table--order-details th,
.shop_table.order_details th,
.shop_table.my_account_orders th {
  background: var(--bg-input) !important;
  color: var(--text-primary) !important;
  font-weight: 750 !important;
  border-bottom: 1px solid var(--border-glass) !important;
  padding: 14px 16px !important;
}
.woocommerce-table--order-details td,
.shop_table.order_details td,
.shop_table.my_account_orders td {
  border-bottom: 1px solid var(--border-glass) !important;
  color: var(--text-secondary) !important;
  padding: 14px 16px !important;
}
.woocommerce-table--order-details tr:last-child td,
.shop_table.order_details tr:last-child td {
  border-bottom: none !important;
}

/* ==========================================================================
   📦 CUSTOM PRE-ORDER TIMELINE TRACKER STYLING
   ========================================================================== */
.preorder-progress-wrapper {
  margin-top: 30px;
  width: 100%;
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-glass);
  box-sizing: border-box;
}
.preorder-eta {
  font-size: 0.9rem;
  color: #fbbf24; /* Amber/gold */
  font-weight: 800;
  margin-bottom: 20px;
}
.preorder-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 40px;
  padding-bottom: 10px;
}
.preorder-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}
.preorder-timeline-progress {
  position: absolute;
  top: 10px;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-purple-light) 0%, var(--brand-cyan) 100%);
  z-index: 2;
  transition: width 0.6s ease;
}
.preorder-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  width: 100px;
  text-align: center;
}
.preorder-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 4px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.preorder-step.completed .preorder-step-dot {
  background: var(--brand-purple);
  border-color: var(--brand-purple-light);
  box-shadow: var(--glow-purple);
}
.preorder-step.active .preorder-step-dot {
  background: var(--brand-cyan);
  border-color: #ffffff;
  box-shadow: var(--glow-cyan), 0 0 0 4px rgba(0, 199, 204, 0.2);
  transform: scale(1.2);
}
.preorder-step-lbl {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-secondary);
  line-height: 1.3;
}
.preorder-step.active .preorder-step-lbl {
  color: var(--brand-cyan);
  text-shadow: 0 0 10px rgba(0, 199, 204, 0.2);
}

@media (max-width: 768px) {
  .preorder-timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-left: 20px;
  }
  .preorder-timeline::before {
    top: 0;
    left: 10px;
    width: 4px;
    height: 100%;
  }
  .preorder-timeline-progress {
    top: 0;
    left: 10px;
    width: 4px;
    height: 0;
  }
  .preorder-step {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: auto;
    text-align: left;
  }
  .preorder-step-dot {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   🔔 HEADER UTILITIES (Language Switcher & Cart Buttons)
   ========================================================================== */
.lang-toggle-btn,
.cart-btn-original {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(140, 82, 255, 0.15) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
}

.lang-toggle-btn:hover,
.cart-btn-original:hover {
  background: rgba(122, 64, 255, 0.2) !important;
  border-color: #00C7CC !important;
  box-shadow: 0 0 15px rgba(0, 199, 204, 0.45) !important;
  color: #00C7CC !important;
}

.lang-toggle-btn {
  font-size: 0.85rem !important;
  font-weight: 850 !important;
  font-family: 'Outfit', sans-serif !important;
  cursor: pointer !important;
  line-height: 40px !important;
}

.cart-btn-original svg {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
}

