/* ==================================================
FILE: /assets/02-home-page/css/jzhmpg-w04-global-mstr.css
LINK: <link rel="stylesheet" href="/assets/02-home-page/css/jzhmpg-w04-global-mstr.css">
PURPOSE: The Universal Staging Area Engine (Tabs, Tool Cards, Vault, Modals)
VERSION: v1.0 - DATE CREATED: 2026-04-11 - Initial v6.0 Translation
VERSION: v1.0 - DATE MODIFIED: 2026-04-11 - Integrated Fluid Vars & Exploding Blob
================================================== */

/* ==================================================
   SECTION 0 : BRAT TWEAKS (GRANULAR CONTROL)
================================================== */
:root {
  --w04-tab-gap: 10px; /* <-- Brat Tweak: Spacing between top tab buttons */
  --w04-tab-pb: 10px; /* <-- Brat Tweak: Padding bottom for the tab header */
  --w04-grid-gap: 12px; /* <-- Brat Tweak: Gap between the tool cards (Reduced from 15px) */
  --w04-card-min-w: 125px; /* <-- Brat Tweak: Minimum width of a card (Reduced from 140px) */
  --w04-card-min-h: 95px; /* <-- Brat Tweak: Base height of the cards (Reduced from 110px) */
  --w04-grid-pb: 15px; /* <-- Brat Tweak: Bottom breathing room under the grid of cards */
  --w04-icon-size: 34px; /* <-- Brat Tweak: The square wrapper for the tool icons (Reduced from 40px) */
  --w04-icon-img: 20px; /* <-- Brat Tweak: The actual image size inside the wrapper (Reduced from 24px) */
  --w04-title-size: 0.7rem; /* <-- Brat Tweak: Size for Tool Titles */
  --w04-desc-size: 0.6rem; /* <-- Brat Tweak: Size for Tool Descriptions */
  --w04-modal-bg: rgba(0, 0, 0, 0.6); /* <-- Brat Tweak: Modal backdrop opacity/color */
  --w04-badge-scale: 1.15; /* <-- Brat Tweak: How large the NEW badge explodes */
  --w04-tab-min-height: 600px; /* <-- Brat Tweak: Locks the Stage Area height so the page doesn't jump */
}

/* ==================================================
   SECTION 1 : TAB HEADER & BUTTONS
================================================== */
/* Wraps the entire staging logic */
.jz-tab-container {
  width: 100%;
}

/* The scrollable row of categories */
.jz-tab-header {
  display: flex; 
  gap: var(--w04-tab-gap); 
  border-bottom: 1px solid var(--jzn-container-border-c); 
  padding-bottom: var(--w04-tab-pb); 
  margin-bottom: 25px;
  overflow-x: auto; 
  white-space: nowrap; 
  scroll-snap-type: x mandatory; 
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--jzn-container-border-c) transparent;
  max-width: 100%;
  box-sizing: border-box;
}

.jz-tab-header::-webkit-scrollbar {
  height: 4px;
}
.jz-tab-header::-webkit-scrollbar-track {
  background: transparent; 
}
.jz-tab-header::-webkit-scrollbar-thumb {
  background-color: var(--jzn-container-border-c);
  border-radius: 10px;
  transition: background 0.3s;
}
.jz-tab-header:hover::-webkit-scrollbar-thumb {
  background-color: var(--jzn-hover); 
}

/* The individual category buttons */
.jz-tab-btn {
  background: transparent; 
  border: 1px solid transparent; 
  color: var(--jzn-text); 
  font-family: var(--jzn-active-font);
  font-size: var(--jzn-size-sub); 
  font-weight: 800; 
  text-transform: uppercase; 
  padding: 8px 12px; 
  border-radius: 50px;
  cursor: pointer; 
  opacity: 0.6; 
  transition: all 0.2s; 
  scroll-snap-align: start; 
  flex-shrink: 0;
}
.jz-tab-btn:hover { 
  opacity: 1; 
  background: var(--jzn-container); 
}
.jz-tab-btn.active { 
  opacity: 1; 
  color: var(--jzn-bg); 
  background: var(--jzn-hover); 
  box-shadow: 0 0 15px var(--jzn-hover); 
  border-color: var(--jzn-hover); 
}

/* ==================================================
   SECTION 2 : TOOL GRID & CARDS
================================================== */
/* Content wrapper for tools */
.jz-tab-content { 
  display: none; 
  animation: fadeIn 0.4s ease; 
  width: 100%;
  min-height: var(--w04-tab-min-height); /* <-- ADDED: Prevents the layout collapse */
  padding-bottom: var(--w04-grid-pb); /* <-- ADDED: Bottom clearance to push away the ad spot */
}

.jz-tab-content.active { 
  display: block; 
}

/* Auto-wrapping grid engine */
.jz-tool-grid {
  display: grid;
  gap: var(--w04-grid-gap);
  grid-template-columns: repeat(auto-fill, minmax(var(--w04-card-min-w), 1fr));
  width: 100%;
  box-sizing: border-box;
}

/* Base structural layout for the tool card */
.jz-tool-card {
  position: relative; 
  background: var(--jzn-container); 
  border-radius: 12px; 
  padding: 15px 5px;
  text-align: center; 
  text-decoration: none; 
  display: flex; 
  flex-direction: column; 
  align-items: center;
  gap: 8px; 
  z-index: 1; 
  transition: transform 0.2s; 
  min-width: 0; 
  width: 100%;
  min-height: var(--w04-card-min-h);
  box-sizing: border-box;
}

/* RGB Flow Border */
.jz-tool-card::before {
  content: ""; 
  position: absolute; 
  inset: -2px; 
  border-radius: inherit; 
  padding: 2px;
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, magenta, red);
  background-size: 400% 400%; 
  animation: rgbFlow 16s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; 
  mask-composite: exclude; 
  z-index: -1; 
  transition: inset 0.2s ease, filter 0.2s ease;
}
.jz-tool-card:hover { 
  transform: translateY(-5px); 
}
.jz-tool-card:hover::before { 
  inset: -3px; 
  padding: 3px; 
  filter: brightness(1.3); 
}

/* ==================================================
   SECTION 3 : ICONS & TYPOGRAPHY
================================================== */
/* Inner icon bounding box */
.tool-icon-box {
  width: var(--w04-icon-size); 
  height: var(--w04-icon-size); 
  margin-bottom: 5px; 
  border-radius: 8px; 
  background: rgba(0,0,0,0.2);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  position: relative; 
  z-index: 1;
}

/* Icon RGB Flow Border */
.tool-icon-box::before {
  content: ""; 
  position: absolute; 
  inset: -1.5px; 
  border-radius: inherit; 
  padding: 1.5px;
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, magenta, red);
  background-size: 400% 400%; 
  animation: rgbFlow 8s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; 
  mask-composite: exclude; 
  z-index: -1;
}

.tool-icon-img { 
  width: var(--w04-icon-img); 
  height: var(--w04-icon-img); 
  object-fit: contain; 
}

/* Dynamic Font Application */
.tool-title { 
  font-family: var(--jzn-active-font);
  font-size: var(--w04-title-size); /* <-- Bound to Brat Tweak */
  font-weight: 800; 
  color: var(--jzn-heading-color); 
  text-transform: uppercase; 
  line-height: 1.2; 
  word-wrap: break-word; 
  hyphens: auto; 
  max-width: 100%;
}

.tool-desc {
  font-family: var(--jzn-active-font);
  font-size: var(--w04-desc-size); /* <-- Bound to Brat Tweak */
  color: var(--jzn-subtext-color); 
  opacity: 0.6; 
  line-height: 1.2;
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden;
}

/* Ghost Pulse Override for Coming Soon */
.jz-tool-card.coming-soon {
  cursor: pointer; /* <-- Brat Tweak: Changed so users know it's clickable */
  /* pointer-events: none; <-- DELETE THIS LINE COMPLETELY */
  transition: none; 
}

.jz-tool-card.coming-soon:hover {
  transform: translateY(0);
  box-shadow: none;
}

.jz-tool-card.coming-soon::before {
  filter: grayscale(100%) brightness(1.5) !important;
  opacity: 0.4 !important;
}

.jz-tool-card.coming-soon .tool-icon-box::before {
  filter: grayscale(100%) brightness(3.0) !important; 
  opacity: 0.8 !important; 
}

.jz-tool-card.coming-soon .tool-icon-box,
.jz-tool-card.coming-soon .tool-title,
.jz-tool-card.coming-soon .tool-desc {
  opacity: 0.4; 
  filter: grayscale(100%); 
  transition: opacity 0.3s, filter 0.3s;
}

/* ==================================================
   SECTION 4 : THE COBALT VAULT (AES-256 SPECIALTY)
================================================== */
/* Vault Flex Container */
.jux-cobalt-wrapper {
  grid-column: 1 / -1; 
  display: flex;
  flex-direction: row; 
  flex-wrap: wrap; 
  gap: 20px; 
  justify-content: center;
  align-items: center;
  border: 2px solid rgba(0, 80, 255, 0.6);
  background: linear-gradient(180deg, rgba(0, 10, 40, 0.4) 0%, rgba(0, 80, 255, 0.1) 100%);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 0 20px rgba(0, 80, 255, 0.15), inset 0 0 20px rgba(0, 80, 255, 0.05);
  position: relative;
  animation: cobaltPulse 4s infinite alternate;
}

/* Vault Badge */
.jux-cobalt-wrapper::before {
  content: "AES-256 VAULT";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--jzn-bg);
  color: #0088ff; /* <-- Brat Tweak: Vault Accent remains fixed for brand */
  padding: 2px 12px;
  font-family: var(--jzn-active-font);
  font-size: var(--jzn-size-micro);
  font-weight: 800;
  border: 1px solid rgba(0, 80, 255, 0.6);
  border-radius: 50px;
  letter-spacing: var(--jzn-letter-spacing-micro, 1px);
  z-index: 2;
}

/* Vault Cards Overrides */
.jux-cobalt-wrapper .jz-tool-card {
  flex: 0 1 200px; 
  max-width: 220px; 
  min-width: 140px; 
  width: auto !important; 
  margin: 0 !important; 
}
.cobalt-icon { 
  width: 70px; 
  height: auto; 
  filter: drop-shadow(0 0 8px rgba(0,180,255,0.4)); 
  margin: 0 auto 5px auto; 
  display: block; 
}

/* ==================================================
   SECTION 5 : THE GLOBAL MODAL
================================================== */
.juxta-modal {
  display: none; 
  position: fixed; 
  z-index: 10000; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  overflow: auto;
  background-color: var(--w04-modal-bg); 
  backdrop-filter: blur(8px); 
  -webkit-backdrop-filter: blur(8px);
}

.juxta-modal-content {
  position: relative; 
  background: var(--jzn-container); 
  margin: 15% auto; 
  padding: 40px; 
  border-radius: 16px;
  width: 90%; 
  max-width: 500px; 
  text-align: center; 
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
  color: var(--jzn-text); 
  z-index: 1;
}

.juxta-modal-content::before {
  content: ""; 
  position: absolute; 
  inset: -3px; 
  border-radius: inherit; 
  padding: 3px;
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, magenta, red);
  background-size: 400% 400%; 
  animation: rgbFlow 16s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; 
  mask-composite: exclude; 
  z-index: -1;
}

.close-modal {
  color: transparent; 
  position: absolute; 
  top: 10px; 
  right: 20px; 
  font-size: var(--jzn-size-h2); 
  font-weight: bold; 
  cursor: pointer; 
  transition: color 0.3s;
}
.close-modal:hover { 
  color: var(--jzn-hover); 
}

.modal-header { 
  font-family: var(--jzn-active-heading-font);
  font-size: var(--jzn-size-h2); 
  font-weight: 800; 
  margin-bottom: 10px; 
  text-transform: uppercase; 
  color: var(--jzn-heading-color);
}

.modal-desc { 
  font-family: var(--jzn-active-font);
  font-size: var(--jzn-size-text); 
  opacity: 0.8; 
  margin-bottom: 20px; 
}

.modal-email {
  font-family: var(--jzn-active-font); 
  background: var(--jzn-container);
  border: 1px solid var(--jzn-container-border-c);
  padding: 5px 10px; 
  border-radius: 4px; 
  font-size: var(--jzn-size-sub); 
  display: inline-block; 
  margin-bottom: 25px;
}

.modal-btn {
  background-color: var(--jzn-bg); 
  color: var(--jzn-text); 
  border: 3px solid var(--jzn-container-border-c); 
  padding: 12px 30px; 
  font-family: var(--jzn-active-font);
  font-size: var(--jzn-size-text); 
  font-weight: 700; 
  text-transform: uppercase; 
  cursor: pointer; 
  border-radius: 50px; 
  text-decoration: none; 
  display: inline-block; 
  transition: all 0.2s;
}

.modal-btn:hover {
  background-color: var(--jzn-hover); 
  border-color: var(--jzn-hover); 
  color: var(--jzn-bg);
  transform: scale(1.05); 
  box-shadow: 0 0 15px var(--jzn-hover);
}

/* ==================================================
   SECTION 6 : THE EXPLODING BADGE
================================================== */
.jz-new-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #FFD700; /* <-- Brat Tweak: Kept distinct for urgency */
  color: #D80000;      
  font-family: var(--jzn-active-font);
  font-size: var(--jzn-size-micro);
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 40% 15% 50% 15%; 
  border: 2px solid var(--jzn-text);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  z-index: 10;
  transform: rotate(15deg);
  pointer-events: none; 
  animation: badgePulse 2s infinite ease-in-out;
}

/* ==================================================
   SECTION 7 : KEYFRAMES & MOBILE TWEAKS
================================================== */
@keyframes fadeIn { 
  from { opacity: 0; } 
  to { opacity: 1; } 
}

@keyframes rgbFlow { 
  0% { background-position: 0% 50%; } 
  100% { background-position: 400% 50%; } 
}

@keyframes cobaltPulse {
  0% { border-color: rgba(0, 80, 255, 0.4); box-shadow: 0 0 15px rgba(0, 80, 255, 0.1); }
  100% { border-color: rgba(0, 120, 255, 0.9); box-shadow: 0 0 25px rgba(0, 80, 255, 0.3); }
}

@keyframes badgePulse {
  0% { transform: rotate(15deg) scale(1); box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
  50% { transform: rotate(15deg) scale(var(--w04-badge-scale)); box-shadow: 0 0 25px rgba(255, 215, 0, 1); }
  100% { transform: rotate(15deg) scale(1); box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
}

@media (max-width: 600px) {
  .jz-tool-grid {
      grid-template-columns: repeat(2, 1fr); 
      gap: 6px; 
  }
  .tool-icon-box { 
      width: 32px; 
      height: 32px; 
  }
  .tool-icon-img { 
      width: 18px; 
      height: 18px; 
  }
  .tool-desc { 
      display: none; 
  }
  .jz-tool-card { 
      min-height: 90px; 
      padding: 10px 2px; 
  }
  .jz-tab-header::-webkit-scrollbar { 
      display: none; 
  }
}