Actions

MediaWiki

Common.css: Difference between revisions

From Dune Awakening DB

mNo edit summary
mNo edit summary
Tag: Manual revert
 
(40 intermediate revisions by the same user not shown)
Line 1: Line 1:
/**********************************************************
/**********************************************************
  *  Enhanced Common.css – Clean version (minimal animations)
  *  Common.css – Global Styles Only
  *  (v3 clean · 2025-05-23)
*  Dune Awakening Theme for MediaWiki
  *  (v5 cleaned · 2025-05-24)
  **********************************************************/
  **********************************************************/


@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');


/*──────── 1. ENHANCED GLOBAL LAYOUT ───────*/
/* ░ MOBILE DISCLAIMER BANNER ░──────────────────────────────────────────── */
#tagline, h3#tagline{display:none!important;}
/* Hidden on desktop – visible on screens ≤ 768 px */
h1.title, .mw-page-title-main, h1.firstHeading{
#mobile-disclaimer {
   margin-top:0!important;  
    display: none;                    /* default = off */
   line-height:1.2!important;  
    position: relative;                /* stays in normal flow at top */
   font-size:32px!important;
    background: #3b0000;              /* dark red / tweak to match theme */
   text-transform: uppercase;
    color: #fce7c8;
   letter-spacing: 2px;
    font-family: "Orbitron", sans-serif;
   background: linear-gradient(135deg, #fce7c8 0%, #E3BB7A 100%);
    font-size: 12px;
   -webkit-background-clip: text;
    letter-spacing: 1px;
   -webkit-text-fill-color: transparent;
    text-align: center;
   background-clip: text;
    padding: 6px 10px;
   text-shadow: 0 0 20px rgba(252, 231, 200, 0.3);
    border-bottom: 2px solid #a855f7;  /* purple accent like your UI */
    z-index: 9999;                    /* sits above content */
}
 
@media (max-width: 768px) {
    #mobile-disclaimer { display: block; }
}
 
 
 
/* ================================================
  CSS VARIABLES
  ================================================ */
:root {
  /* Font sizes */
  --font-size-xs: 0.65rem;
  --font-size-sm: 0.75rem;
   --font-size-md: 0.85rem;
   --font-size-lg: 1.1rem;
   --font-size-xl: 1.3rem;
   --font-size-xxl: 1.7rem;
    
  /* Colors */
  --color-primary: #fce7c8;
   --color-secondary: #E3BB7A;
   --color-text: #E0E0E0;
   --color-bg-dark: rgba(0,0,2,.85);
  --color-bg-darker: rgba(12,10,20,.85);
   --color-border: rgba(252, 231, 200, 0.2);
   --color-border-hover: rgba(252, 231, 200, 0.4);
 
  /* Spacing */
  --header-height: 60px;
  --content-padding: 20px;
}
 
/* ================================================
  GLOBAL RESETS & LAYOUT FIXES
  ================================================ */
 
/* Remove all top spacing globally */
* {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
}


#content, .mw-body, .mw-content-ltr, .mw-content-rtl{
/* Body spacing for fixed header */
   padding-top:0!important;  
html, body {
   margin-top:0!important;
  margin: 0 !important;
   padding: 0 !important;
   overflow-x: hidden !important;
}
}


html, body{
body {
   overflow-x:hidden!important;
   padding-top: var(--header-height) !important;
   position: relative;
   background-color: #0a0a0a;
  color: var(--color-text);
  font-family: 'Rajdhani', sans-serif;
}
}


/* Subtle static tech pattern overlay */
/* Subtle tech pattern overlay */
body::before {
body::before {
   content: '';
   content: '';
Line 39: Line 87:
   right: 0;
   right: 0;
   bottom: 0;
   bottom: 0;
   background-image:  
   background-image: repeating-linear-gradient(
    repeating-linear-gradient(
    45deg,
      45deg,
    transparent,
      transparent,
    transparent 35px,
      transparent 35px,
    rgba(252, 231, 200, 0.01) 35px,
      rgba(252, 231, 200, 0.01) 35px,
    rgba(252, 231, 200, 0.01) 70px
      rgba(252, 231, 200, 0.01) 70px
  );
    );
   pointer-events: none;
   pointer-events: none;
   z-index: 1;
   z-index: 1;
}
}


/* Hide Pivot off-canvas elements */
/* ================================================
nav.tab-bar.hide-for-print,
  HIDE MEDIAWIKI DEFAULT ELEMENTS
  ================================================ */
h1.firstHeading,
h1.title,
.mw-page-title-main,
#firstHeading,
.firstHeading,
.page-header,
.mw-indicators,
#tagline,
h3#tagline,
#contentSub,
.mw-content-subtitle {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
 
/* Hide conflicting navigation elements */
body::after,
nav.tab-bar,
.tab-bar,
.tab-bar-section,
.left-off-canvas-toggle,
.left-off-canvas-toggle,
.right-off-canvas-toggle,
.right-off-canvas-toggle,
aside.right-off-canvas-menu,
aside.right-off-canvas-menu,
#right-nav-aside{display:none!important;}
#right-nav-aside,
 
#mw-header-container,
/*──────── 2. ENHANCED BREADCRUMB STRIP ───────*/
.mw-header {
.dune-breadcrumb-nav{
   display: none !important;
   display:flex;
  align-items:center;
  margin-bottom:20px;
  font-size:18px;
  background: linear-gradient(135deg, rgba(0,0,2,.9) 0%, rgba(12,10,20,.9) 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  padding: 8px 16px;
  position: relative;
  overflow: hidden;
  /* Hexagonal clip-path for futuristic look */
  clip-path: polygon(20px 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
}
}


/* Static glowing border effect */
/* ================================================
.dune-breadcrumb-nav::before {
  CONTENT AREA RESETS
  content: '';
  ================================================ */
  position: absolute;
#content,
  top: -2px;
.mw-body,
  left: -2px;
#mw-content-text,
  right: -2px;
.mw-content-ltr,
  bottom: -2px;
.mw-content-rtl,
  background: linear-gradient(45deg, #fce7c8, #E3BB7A, #fce7c8);
.mw-body-content,
  z-index: -1;
.mw-parser-output,
   opacity: 0.7;
#main-section,
   filter: blur(2px);
.main-section,
  /* REMOVED: animation */
#page-content,
#p-cactions,
.ve-init-mw-desktopArticleTarget-targetContainer {
   padding-top: 0 !important;
   margin-top: 0 !important;
}
}


.dune-breadcrumb-nav a{
/* Force first content element to start at top */
  color:#fce7c8;
.mw-parser-output > *:first-child,
  text-decoration:none;
.mw-body-content > *:first-child,
  transition: all 0.3s ease;
#mw-content-text > *:first-child,
  font-weight: 600;
#bodyContent > *:first-child {
   text-transform: uppercase;
   margin-top: 0 !important;
   letter-spacing: 1px;
   padding-top: 0 !important;
}
}


.dune-breadcrumb-nav a:hover{
/* ================================================
   color:#fff;
  REMOVE SIDEBAR & FORCE FULL WIDTH
   text-shadow: 0 0 10px rgba(252, 231, 200, 0.8);
  ================================================ */
#sidebar,
aside.columns,
.side-nav,
.sidebar,
[class*="large-2"][class*="medium-3"] {
   display: none !important;
   width: 0 !important;
}
}


.breadcrumb-home-link{
#page-content,
   display:flex;  
#main-section,
   align-items:center;
.main-section,
#p-cactions,
#content-wrapper,
.mw-body,
[class*="large-10"][class*="medium-9"] {
   width: 100% !important;
   max-width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}
}


.breadcrumb-home-icon{
/* Remove Foundation grid constraints */
   width:20px;  
.row {
   height:20px;  
   max-width: none !important;
   margin-right:8px;
   width: 100% !important;
  filter: drop-shadow(0 0 3px rgba(252, 231, 200, 0.5));
   margin: 0 !important;
}
}


.dune-breadcrumb-separator{
.columns {
   margin:0 12px;  
   padding: 0 !important;
   color:#E3BB7A;
   float: none !important;
  font-weight: bold;
   position: static !important;
   position: relative;
}
}


.dune-breadcrumb-separator::before {
/* Content wrapper */
   content: '◆';
#mw-content-text {
   font-size: 12px;
  padding: 0 var(--content-padding) !important;
  max-width: none !important;
   width: 100% !important;
   margin: 0 !important;
}
}


/*──────── 3. ENHANCED RADIAL MENU ───────*/
/* Fix nested wrappers */
.dune-radial-menu{
.off-canvas-wrap,
  position:fixed;
.docs-wrap,
  top:50%;
.inner-wrap {
  left:50%;
   padding: 0 !important;
  width:500px;
   margin: 0 !important;
  height:500px;
   width: 100% !important;
  transform:translate(-50%,-50%) scale(0);
  z-index:9999;
   opacity:0;  
   visibility:hidden;  
   pointer-events:none;
  transition:transform .4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity .3s ease;
}
}


.dune-radial-menu.active{
/* ================================================
   transform:translate(-50%,-50%) scale(1);
  ACTIONS BUTTON SPACING
  opacity:1;
  ================================================ */
  visibility:visible;  
#p-cactions {
   pointer-events:all;
   margin-bottom: 15px !important;
   padding-bottom: 0 !important;
}
}


/* Enhanced menu items with hexagonal shape */
#p-cactions > .row {
.dune-radial-item,
   margin-bottom: 0 !important;
.dune-radial-center,
.dune-subcategory-container{
   background: linear-gradient(135deg, #0c0a14 0%, #1a1a1a 100%);
  border: 2px solid #fce7c8;
  box-shadow:
    inset 0 0 20px rgba(0,0,0,0.5),
    0 0 20px rgba(252, 231, 200, 0.2);
  transition: all 0.3s ease;
}
}


.dune-radial-item:hover,
#drop {
.dune-radial-center:hover{
   margin-bottom: 0 !important;
   background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
   margin-top: 10px !important;
  border-color: #fff;
   box-shadow:
    inset 0 0 20px rgba(252, 231, 200, 0.1),
    0 0 30px rgba(252, 231, 200, 0.4);
  transform: scale(1.05);
}
}


.dune-subcategory-header{
/* ================================================
   background: linear-gradient(90deg, rgba(0,0,2,.9) 0%, rgba(12,10,20,.9) 100%);
  CUSTOM HEADER
   color:#fce7c8;
  ================================================ */
   border-bottom: 2px solid #fce7c8;
#dune-header {
   text-transform: uppercase;
  position: fixed !important;
   letter-spacing: 1px;
  top: 0 !important;
   font-weight: 700;
  left: 0 !important;
  right: 0 !important;
  height: var(--header-height) !important;
   background: linear-gradient(180deg, rgba(20, 18, 28, 0.95) 0%, rgba(10, 8, 16, 0.98) 100%);
   border-bottom: 3px solid var(--color-border-hover);
   box-shadow: 0 2px 20px rgba(0,0,0,0.8);
   z-index: 99999 !important;
   display: flex;
   align-items: center;
}
}


.dune-subcategory-item{
.dune-header-inner {
   color:#fce7c8;
   width: 100%;
   transition: all 0.2s ease;
   max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 100%;
}
}


.dune-subcategory-item:hover{
/* Logo */
   background: linear-gradient(90deg, rgba(252, 231, 200, 0.1) 0%, rgba(252, 231, 200, 0.2) 100%);
.dune-logo {
   padding-left: 20px;
  font-family: 'Orbitron', sans-serif !important;
   border-left: 3px solid #fce7c8;
  font-size: 22px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
   font-weight: 700;
  text-shadow: 0 0 15px rgba(252, 231, 200, 0.4);
   text-decoration: none;
   white-space: nowrap;
  transition: all 0.3s ease;
}
}


.dune-radial-overlay{
.dune-logo:hover {
   background: radial-gradient(circle at center, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
   color: #fff;
   backdrop-filter: blur(3px);
  text-shadow: 0 0 20px rgba(252, 231, 200, 0.6);
   text-decoration: none;
}
}


/* Mobile grid enhancements */
/* Navigation */
@media screen and (max-width:768px){
.dune-nav {
  .dune-radial-menu.mobile-grid{
  display: flex;
    background: linear-gradient(135deg, rgba(0,0,2,.95) 0%, rgba(12,10,20,.95) 100%);
  gap: 0;
    border: 2px solid #fce7c8;
   margin: 0 20px;
    border-radius: 0;
   height: 100%;
    clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
   }
 
  .dune-radial-item{
    border: 2px solid #fce7c8;
    background: rgba(0,0,2,.8);
   }
 
  .dune-subcategory-item{
    background: rgba(0,0,2,.8);
    border: 1px solid rgba(252, 231, 200, 0.3);
  }
}
}


/*──────── 4. CLEAN UTILITY CLASSES ───────*/
.dune-nav a {
/* Loading indicator for actual loading states */
   display: flex;
.tech-loader {
   align-items: center;
   width: 40px;
   padding: 0 18px;
   height: 40px;
   height: 100%;
   border: 3px solid rgba(252, 231, 200, 0.2);
   color: rgba(252, 231, 200, 0.8);
   border-top-color: #fce7c8;
   font-family: 'Rajdhani', sans-serif;
  border-radius: 50%;
   font-size: 14px;
  animation: loadingSpin 1s linear infinite;
  display: inline-block;
}
 
@keyframes loadingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
 
/* Static glitch text effect */
.glitch-text {
   text-shadow: 0 0 2px #fce7c8;
}
 
/**********************************************************
*  Additional UI Components for Dune Wiki
*  Clean version - minimal animations
**********************************************************/
 
/*──────── 1. HEXAGONAL BUTTONS ───────*/
.hex-button {
  position: relative;
  display: inline-block;
  padding: 12px 32px;
  margin: 8px;
  background: linear-gradient(135deg, rgba(252, 231, 200, 0.1) 0%, rgba(252, 231, 200, 0.05) 100%);
   color: var(--dune-gold);
   font-family: var(--font-display);
   font-weight: 600;
   font-weight: 600;
   text-transform: uppercase;
   text-transform: uppercase;
   letter-spacing: 2px;
   letter-spacing: 1.2px;
   cursor: pointer;
   text-decoration: none;
  transition: all 0.3s ease;
   border-right: 1px solid rgba(252, 231, 200, 0.1);
  clip-path: polygon(30px 0%, 100% 0%, calc(100% - 30px) 100%, 0% 100%);
   border: none;
}
 
.hex-button::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--dune-gold), var(--dune-gold-hover));
  clip-path: polygon(30px 0%, 100% 0%, calc(100% - 30px) 100%, 0% 100%);
  z-index: -1;
  opacity: 0.7;
   transition: all 0.3s ease;
   transition: all 0.3s ease;
  background: transparent;
  position: relative;
}
}


.hex-button:hover {
.dune-nav a:first-child {
   transform: translateY(-2px);
   border-left: 1px solid rgba(252, 231, 200, 0.1);
  color: var(--dune-gold-bright);
  text-shadow: 0 0 10px var(--dune-gold-glow);
}
}


.hex-button:hover::before {
.dune-nav a:hover {
   opacity: 1;
   background: rgba(252, 231, 200, 0.1);
   filter: blur(3px);
   color: var(--color-primary);
  text-shadow: 0 0 10px rgba(252, 231, 200, 0.5);
  text-decoration: none;
}
}


/*──────── 2. STATUS INDICATORS - No animation ───────*/
/* Search */
.status-indicator {
.dune-search {
   display: inline-flex;
   display: flex;
   align-items: center;
   align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 0, 2, 0.8);
  border: 1px solid rgba(252, 231, 200, 0.3);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}
}


/* Static status sweep effect */
.dune-search form {
.status-indicator::before {
   display: flex;
   content: '';
   align-items: stretch !important;
   position: absolute;
   gap: 0 !important;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
   background: linear-gradient(90deg, transparent 0%, rgba(252, 231, 200, 0.05) 100%);
  /* REMOVED: animation */
}
}


.status-indicator .status-dot {
.dune-search-input {
   width: 8px;
   background: rgba(0, 0, 2, 0.8);
   height: 8px;
   border: 2px solid rgba(252, 231, 200, 0.3);
   border-radius: 50%;
   border-radius: 0;
   background: var(--dune-gold);
   color: var(--color-primary);
   box-shadow: 0 0 10px var(--dune-gold-glow);
   padding: 8px 12px;
   /* REMOVED: animation: techPulse */
  width: 200px;
  font-size: 13px;
  font-family: 'Rajdhani', sans-serif;
  transition: all 0.3s ease;
   height: 38px !important;
  box-sizing: border-box !important;
}
}


.status-indicator.active .status-dot {
.dune-search-input:focus {
   background: #44ff44;
   outline: none;
   box-shadow: 0 0 10px rgba(68, 255, 68, 0.8);
  border-color: var(--color-primary);
   box-shadow: 0 0 10px rgba(252, 231, 200, 0.3);
  width: 250px;
}
}


.status-indicator.warning .status-dot {
.dune-search-input::placeholder {
   background: #ff8844;
   color: rgba(252, 231, 200, 0.5);
  box-shadow: 0 0 10px rgba(255, 136, 68, 0.8);
}
}


.status-indicator.error .status-dot {
.dune-search-btn {
   background: #ff4444;
   background: rgba(252, 231, 200, 0.1);
   box-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
   border: 2px solid rgba(252, 231, 200, 0.3);
  border-left: none;
  color: var(--color-primary);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  height: 38px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
}


/*──────── 3. RESOURCE BARS - Static shine ───────*/
.dune-search-btn:hover {
.resource-bar {
   background: rgba(252, 231, 200, 0.2);
  width: 100%;
   border-color: var(--color-primary);
  height: 24px;
   background: rgba(0, 0, 2, 0.9);
   border: 2px solid rgba(252, 231, 200, 0.3);
  position: relative;
  overflow: hidden;
  margin: 8px 0;
}
}


.resource-bar::before,
/* Mobile menu button */
.resource-bar::after {
.dune-mobile-menu-btn {
   content: '';
  display: none;
   position: absolute;
  background: transparent;
   width: 20px;
   border: 2px solid var(--color-primary);
   height: 20px;
   color: var(--color-primary);
   background: rgba(252, 231, 200, 0.2);
   font-size: 24px;
   transform: rotate(45deg);
   padding: 5px 10px;
   cursor: pointer;
   margin-right: 15px;
}
}


.resource-bar::before {
/* ================================================
   top: -10px;
  RADIAL MENU
   left: -10px;
  ================================================ */
.dune-radial-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%,-50%) scale(0);
  z-index: 9999;
  opacity: 0;
   visibility: hidden;
  pointer-events: none;
   transition: transform .4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity .3s ease;
}
}


.resource-bar::after {
.dune-radial-menu.active {
   bottom: -10px;
   transform: translate(-50%,-50%) scale(1);
   right: -10px;
  opacity: 1;
   visibility: visible;
  pointer-events: all;
}
}


.resource-fill {
.dune-radial-item,
  height: 100%;
.dune-radial-center,
   background: linear-gradient(90deg, var(--dune-gold-dark) 0%, var(--dune-gold) 50%, var(--dune-gold-dark) 100%);
.dune-subcategory-container {
   transition: width 0.6s ease;
   background: linear-gradient(135deg, #0c0a14 0%, #1a1a1a 100%);
  position: relative;
  border: 2px solid var(--color-primary);
   overflow: hidden;
   box-shadow:  
    inset 0 0 20px rgba(0,0,0,0.5),
    0 0 20px rgba(252, 231, 200, 0.2);
   transition: all 0.3s ease;
}
}


/* Static shine effect */
.dune-radial-item:hover,
.resource-fill::after {
.dune-radial-center:hover {
   content: '';
   background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  position: absolute;
   border-color: #fff;
  top: 0;
   box-shadow:  
  left: 20%;
    inset 0 0 20px rgba(252, 231, 200, 0.1),
   width: 30%;
    0 0 30px rgba(252, 231, 200, 0.4);
   height: 100%;
   transform: scale(1.05);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
   /* REMOVED: animation */
}
}


.resource-label {
.dune-subcategory-header {
   position: absolute;
   background: linear-gradient(90deg, rgba(0,0,2,.9) 0%, rgba(12,10,20,.9) 100%);
  top: 50%;
   color: var(--color-primary);
  left: 50%;
   border-bottom: 2px solid var(--color-primary);
   transform: translate(-50%, -50%);
   font-size: 12px;
  font-weight: 700;
   text-transform: uppercase;
   text-transform: uppercase;
   letter-spacing: 1px;
   letter-spacing: 1px;
   color: var(--dune-black);
   font-weight: 700;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}
}


/*──────── 4. TOOLTIP SYSTEM ───────*/
.dune-subcategory-item {
.tooltip-trigger {
   color: var(--color-primary);
   position: relative;
  transition: all 0.2s ease;
  cursor: help;
  border-bottom: 1px dotted var(--dune-gold);
}
}


.tooltip-content {
.dune-subcategory-item:hover {
  position: absolute;
   background: linear-gradient(90deg, rgba(252, 231, 200, 0.1) 0%, rgba(252, 231, 200, 0.2) 100%);
  bottom: 100%;
   padding-left: 20px;
  left: 50%;
   border-left: 3px solid var(--color-primary);
  transform: translateX(-50%) translateY(-8px);
  padding: 12px 16px;
   background: linear-gradient(135deg, rgba(0, 0, 2, 0.95) 0%, rgba(12, 10, 20, 0.95) 100%);
   border: 2px solid var(--dune-gold);
   color: var(--text-primary);
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px);
}
}


.tooltip-content::after {
.dune-radial-overlay {
   content: '';
   background: radial-gradient(circle at center, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
  position: absolute;
   backdrop-filter: blur(3px);
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
   width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--dune-gold);
}
}


.tooltip-trigger:hover .tooltip-content {
/* ================================================
  opacity: 1;
  GLOBAL TABLE STYLES
  visibility: visible;
  ================================================ */
  transform: translateX(-50%) translateY(-12px);
/* Remove MediaWiki table row alternating colors */
}
.skin-pivot table tr,
 
.skin-pivot table tbody tr,
/*──────── 5. NOTIFICATION BADGES - Static ───────*/
.skin-pivot table tbody tr:nth-child(odd),
.notification-badge {
.skin-pivot table tbody tr:nth-child(even),
  display: inline-flex;
.skin-pivot table tbody tr:nth-child(odd) td,
  align-items: center;
.skin-pivot table tbody tr:nth-child(even) td,
  gap: 8px;
.skin-pivot .wikitable tr,
  padding: 8px 16px;
.skin-pivot .wikitable tbody tr:nth-child(odd),
  background: linear-gradient(135deg, rgba(0, 0, 2, 0.9) 0%, rgba(20, 18, 28, 0.9) 100%);
.skin-pivot .wikitable tbody tr:nth-child(even) {
  border-left: 4px solid var(--dune-gold);
   background: transparent !important;
   position: relative;
   background-color: transparent !important;
   overflow: hidden;
  /* Simple fade in instead of slide */
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
  margin: 8px 0;
}
}


@keyframes fadeIn {
/* ================================================
   to {
  FOOTER
    opacity: 1;
  ================================================ */
   }
footer#footer {
   background: linear-gradient(180deg, transparent 0%, rgba(0,0,2,.9) 100%) !important;
  border-top: 2px solid rgba(252, 231, 200, 0.3);
  margin-top: 40px !important;
   padding: 20px !important;
}
}


.notification-badge::before {
footer#footer a {
   content: '';
   color: var(--color-primary) !important;
  position: absolute;
   margin: 0 10px;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--dune-gold);
   /* REMOVED: animation */
}
}


.notification-badge.success {
footer#footer li {
   border-left-color: #44ff44;
  display: inline-block !important;
   border: none !important;
}
}


.notification-badge.success::before {
/* ================================================
   background: #44ff44;
  BREADCRUMB NAVIGATION
  ================================================ */
.dune-breadcrumb-nav {
  display: flex;
  align-items: center;
  margin: 0 0 20px 0 !important;
  padding: 12px 18px !important;
  font-size: 18px !important;
  background: rgba(0,0,2,.3);
  border: 1px solid rgba(252, 231, 200, 0.15);
  position: relative;
  overflow: hidden;
   border-radius: 2px;
}
}


.notification-badge.warning {
.dune-breadcrumb-nav a {
   border-left-color: #ff8844;
  color: rgba(252, 231, 200, 0.6);
   text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}
}


.notification-badge.warning::before {
.dune-breadcrumb-nav a:hover {
   background: #ff8844;
   color: rgba(252, 231, 200, 0.9);
}
}


.notification-badge.error {
.dune-breadcrumb-separator {
   border-left-color: #ff4444;
   margin: 0 8px;
  color: rgba(252, 231, 200, 0.3);
}
}


.notification-badge.error::before {
.dune-breadcrumb-separator::before {
   background: #ff4444;
   content: '/';
  font-size: 16px;
}
}


/*──────── 6. ICON CONTAINERS ───────*/
.menu-button-wrapper {
.hex-icon {
   display: inline-flex;
   display: inline-flex;
   align-items: center;
   align-items: center;
   justify-content: center;
   margin-right: 8px;
  width: 48px;
}
   height: 48px;
 
   background: linear-gradient(135deg, rgba(252, 231, 200, 0.1) 0%, rgba(252, 231, 200, 0.05) 100%);
.menu-button-wrapper img {
  position: relative;
   height: 24px;
   clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
   width: auto;
   vertical-align: middle;
}
}


.hex-icon::before {
/* ================================================
  content: '';
  SCROLLBAR
  position: absolute;
  ================================================ */
  top: -2px;
::-webkit-scrollbar {
  left: -2px;
   width: 8px !important;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--dune-gold), var(--dune-gold-hover));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -1;
   opacity: 0.6;
}
}


/* Simple scale on hover */
::-webkit-scrollbar-track {
.hex-icon:hover {
   background: rgba(0,0,2,.8);
   transform: scale(1.1);
  transition: all 0.3s ease;
}
}


.hex-icon img,
::-webkit-scrollbar-thumb {
.hex-icon svg {
   background: var(--color-secondary);
   width: 24px;
  border-radius: 4px;
  height: 24px;
  filter: drop-shadow(0 0 3px var(--dune-gold-glow));
}
}


/*──────── 7. DATA CARDS ───────*/
::-webkit-scrollbar-thumb:hover {
.data-card {
   background: var(--color-primary);
   background: linear-gradient(135deg, rgba(0, 0, 2, 0.9) 0%, rgba(12, 10, 20, 0.9) 100%);
  border: 1px solid rgba(252, 231, 200, 0.3);
  padding: 16px;
  margin: 8px 0;
  position: relative;
  overflow: hidden;
}
}


.data-card-header {
/* ================================================
   display: flex;
  MOBILE RESPONSIVE
   align-items: center;
  ================================================ */
   justify-content: space-between;
@media (max-width: 768px) {
   margin-bottom: 12px;
  .dune-header-inner {
   padding-bottom: 8px;
    padding: 0 10px;
   border-bottom: 1px solid rgba(252, 231, 200, 0.2);
  }
 
  .dune-logo {
    font-size: 18px;
    letter-spacing: 2px;
  }
 
   .dune-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 8, 16, 0.98);
    flex-direction: column;
    border-top: 2px solid var(--color-primary);
    margin: 0;
   }
 
  .dune-nav.mobile-active {
    display: flex;
   }
 
  .dune-nav a {
    border-right: none;
    border-left: none;
    border-bottom: 1px solid rgba(252, 231, 200, 0.1);
    height: 50px;
  }
 
   .dune-search {
    display: none;
  }
 
  .dune-mobile-menu-btn {
    display: block;
  }
 
  /* Breadcrumb adjustments */
  .dune-breadcrumb-nav {
    font-size: 14px !important;
    padding: 8px 12px !important;
  }
 
  .menu-button-wrapper img {
    height: 20px;
   }
 
  /* Mobile radial menu adjustments */
  .dune-radial-menu.mobile-grid {
    background: linear-gradient(135deg, rgba(0,0,2,.95) 0%, rgba(12,10,20,.95) 100%);
    border: 2px solid var(--color-primary);
    border-radius: 0;
    clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
   }
 
  .dune-radial-item {
    border: 2px solid var(--color-primary);
    background: rgba(0,0,2,.8);
  }
 
  .dune-subcategory-item {
    background: rgba(0,0,2,.8);
    border: 1px solid rgba(252, 231, 200, 0.3);
  }
}
}


.data-card-title {
@media (max-width: 1200px) {
   font-family: var(--font-display);
   .dune-nav a {
  font-size: 18px;
    padding: 0 15px;
   font-weight: 600;
    font-size: 13px;
  color: var(--dune-gold);
   }
  text-transform: uppercase;
  letter-spacing: 1px;
}
}


.data-card-value {
/* ================================================
   font-size: 24px;
  UTILITY CLASSES
   font-weight: 700;
  ================================================ */
   color: var(--dune-gold-bright);
/* Loading spinner */
   text-shadow: 0 0 10px var(--dune-gold-glow);
.tech-loader {
   width: 40px;
  height: 40px;
   border: 3px solid rgba(252, 231, 200, 0.2);
   border-top-color: var(--color-primary);
   border-radius: 50%;
  animation: loadingSpin 1s linear infinite;
  display: inline-block;
}
}


.data-card-footer {
@keyframes loadingSpin {
   display: flex;
   0% { transform: rotate(0deg); }
  align-items: center;
   100% { transform: rotate(360deg); }
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(252, 231, 200, 0.2);
   font-size: 14px;
  color: var(--text-secondary);
}
}


.data-card-trend {
/* Content loading state */
   display: flex;
.content-loading {
   align-items: center;
   position: relative;
  gap: 4px;
   min-height: 100px;
}
}


.data-card-trend.up {
.content-loading::before {
   color: #44ff44;
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(252, 231, 200, 0.2);
   border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: loadingSpin 1s linear infinite;
}
}


.data-card-trend.down {
/* Glitch text effect */
   color: #ff4444;
.glitch-text {
   text-shadow: 0 0 2px var(--color-primary);
}
}


/*──────── 8. LOADING SKELETON - Kept for loading states ───────*/
/* Skeleton loader */
.skeleton-loader {
.skeleton-loader {
   background: linear-gradient(90deg,  
   background: linear-gradient(90deg,  
Line 636: Line 723:
}
}


/*──────── Enhanced BuildingPage Styles - Clean Version ───────*/


/*──────── Card Component - Clean & Sleek ───────*/
.dune-card{
  background: linear-gradient(135deg, rgba(0,0,2,.85) 0%, rgba(12,10,20,.85) 100%);
  color:#E0E0E0;
  padding:0;
  margin:0 0 24px 0;
  border: 2px solid rgba(252, 231, 200, 0.2);
  position: relative;
  overflow: hidden;
  /* Hexagonal clip for futuristic look */
  clip-path: polygon(
    0 20px,
    20px 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    20px 100%,
    0 calc(100% - 20px)
  );
  box-shadow:
    0 0 30px rgba(0,0,0,.8),
    inset 0 0 30px rgba(252, 231, 200, 0.05);
  /* Equal-height support */
  display:flex;
  flex-direction:column;
  flex:1 0 auto;
  height:100%;
}


/* Inner padding container */
 
.dune-card-inner {
 
   padding: 20px;
/* === Footer actions button + dropdown === */
   position: relative;
 
  z-index: 1;
#footer {
   text-align: center;
   position: relative; /* needed for absolutely positioned dropdown inside */
}
}


/* Tech decoration corner - static, no pulsing */
/* Optional: space below footer links */
.dune-card-decoration {
#footer #custom-footer-note {
   position: absolute;
   font-family: 'Rajdhani', sans-serif;
   top: 0;
   font-size: 14px;
   right: 0;
   color: rgba(252,231,200,0.7);
   width: 60px;
   margin: 8px auto 4px;
   height: 60px;
   max-width: 720px;
   background: linear-gradient(135deg, transparent 50%, rgba(252, 231, 200, 0.1) 50%);
   line-height: 1.4;
   z-index: 2;
   text-transform: none;
}
}


.dune-card-decoration::before {
/* Ensure dropdown menu is readable */
   content: '';
#drop1 {
   position: absolute;
   min-width: 180px;
  top: 10px;
   padding: 6px 0;
  right: 10px;
   border-radius: 4px;
  width: 6px;
   background-color: #1a1a1a;
   height: 6px;
   box-shadow: 0 2px 6px rgba(0,0,0,0.5);
   background: #fce7c8;
  border-radius: 50%;
   box-shadow: 0 0 10px #fce7c8;
  opacity: 0.7;
  /* REMOVED: animation: techPulse 2s ease-in-out infinite; */
}
}


/* Enhanced labels */
/* Optional: style menu items if not styled already */
.dune-card-label{
#drop1 li a {
   color:#E3BB7A;
   color: #fce7c8;
   font-size:11px;
   font-family: 'Rajdhani', sans-serif;
  text-transform:uppercase;
  margin-bottom:8px;
  letter-spacing: 2px;
  font-weight: 700;
  display: inline-block;
   padding: 4px 12px;
   padding: 4px 12px;
   background: linear-gradient(90deg, rgba(252, 231, 200, 0.1) 0%, transparent 100%);
   display: block;
   border-left: 3px solid #fce7c8;
  text-decoration: none;
  position: relative;
  transition: background 0.2s;
}
#drop1 li a:hover {
  background-color: rgba(252,231,200,0.1);
   color: #fff;
}
}


/* Enhanced titles - static underline */
.dune-card-title{
  margin:0;
  font-size:24px;
  color:#fce7c8;
  text-transform:uppercase;
  padding-bottom:12px;
  margin-bottom:16px;
  display:flex;
  align-items:center;
  position: relative;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(252, 231, 200, 0.5);
}


/* Static title underline - no animation */
/* ================================================
.dune-card-title::after {
  ENHANCED JOURNEY MATERIALS POPUP — CLEAN RULESET
   content: '';
  ================================================ */
   position: absolute;
 
  bottom: 0;
/* ▸ Popup size */
  left: 0;
.journey-popup.items-popup{
  right: 0;
   min-width:1000px!important;
  height: 2px;
   max-width:95%!important;
  background: linear-gradient(90deg,
    transparent 0%,
    #fce7c8 20%,
    #E3BB7A 50%,
    #fce7c8 80%,
    transparent 100%
  );
  /* REMOVED: animation: slideGlow 3s ease-in-out infinite; */
}
}


.dune-card-title .icon{
/* ▸ Container */
   margin-right:12px;
.materials-enhanced-container{
   font-size: 28px;
   padding:10px;
  color: #fce7c8;
   background:rgba(0,0,2,.4);
  filter: drop-shadow(0 0 5px rgba(252, 231, 200, 0.7));
  border-radius:8px;
}
}


/* Enhanced description boxes */
/* ▸ Progress header */
.dune-card-description{
.materials-progress-header{
   font-size:16px;
   background:linear-gradient(135deg,rgba(0,0,2,.8)0%,rgba(12,10,20,.8)100%);
  line-height:1.6;
   border:2px solid rgba(252,231,200,.2);
  background: rgba(0,0,2,.8);
  border-radius:8px;
   border: 1px solid rgba(252, 231, 200, 0.2);
   padding:15px;
   padding:16px;
   margin-bottom:20px;
   margin-bottom:16px;
   position:relative;
   position: relative;
  overflow: hidden;
}
}
 
.materials-progress-header.completed{
/* Tech corner accents for descriptions */
   box-shadow:0 0 12px rgba(227,187,122,.6);
.dune-card-description::before,
.dune-card-description::after {
   content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(252, 231, 200, 0.3);
}
}
 
.progress-bar-container{
.dune-card-description::before {
   width:100%;height:8px;
   top: -1px;
   background:rgba(0,0,0,.3);
   left: -1px;
   border-radius:4px;
   border-right: none;
   margin-bottom:10px;
   border-bottom: none;
  overflow:hidden;
}
}
 
.progress-bar{
.dune-card-description::after {
   height:100%;
   bottom: -1px;
   background:linear-gradient(90deg,#E3BB7A 0%,#fce7c8 100%);
   right: -1px;
   border-radius:4px;
   border-left: none;
   transition:width .35s ease;
   border-top: none;
}
}
 
.materials-progress-text{
/* Enhanced image styling */
  font-family:'Orbitron',sans-serif;
.dune-card-image{
  font-size:14px;
  text-transform:uppercase;
   text-align:center;
   text-align:center;
   margin:16px 0;
   letter-spacing:1px;
   position: relative;
  color:#fce7c8;
}
.materials-progress-count{
  font-size:18px;font-weight:700;
   text-shadow:0 0 10px rgba(252,231,200,.5);
}
}


.dune-card-image img{
/* ▸ Grid & columns */
   max-width:220px;
.materials-grid{
   max-height:220px;
   display:grid;
   object-fit:contain;
  grid-template-columns:repeat(3,1fr);
   filter: drop-shadow(0 0 20px rgba(252, 231, 200, 0.3));
   gap:20px;
   transition: all 0.3s ease;
  margin-bottom:20px;
   min-height:400px;
}
.material-column{
   background:rgba(0,0,2,.6);
  border:1px solid rgba(252,231,200,.2);
   border-radius:8px;
  padding:15px 12px 12px;
}
}
.level-1-column{border-color:#fce7c8;}
.level-2-column{border-color:#d4b896;}
.level-3-column{border-color:#a08968;}


.dune-card-image:hover img {
.column-header{
   transform: scale(1.05);
  font-family:'Orbitron',sans-serif;
   filter: drop-shadow(0 0 30px rgba(252, 231, 200, 0.5));
  font-size:14px;font-weight:700;
   text-transform:uppercase;
  letter-spacing:1px;
  margin-bottom:15px;
   padding-bottom:8px;
  border-bottom:1px solid rgba(252,231,200,.2);
  display:flex;align-items:center;gap:8px;
}
}


.has-border,
/* ▸ Material rows */
.card-image-border{
.material-item{
   border: 3px solid transparent;
   background:rgba(0,0,2,.4);
   background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%) padding-box,
   border:1px solid rgba(252,231,200,.1);
              linear-gradient(135deg, #fce7c8 0%, #E3BB7A 100%) border-box;
  border-radius:6px;
   padding:8px;
  padding:8px 10px;
   position: relative;
  margin-bottom:10px;
   overflow: hidden;
  display:flex;align-items:flex-start;        /* ★ top-align name/qty */
  cursor:pointer;
  transition:background .25s,border-color .25s;
}
.material-item:hover{
  background:rgba(252,231,200,.06);
   border-color:rgba(252,231,200,.3);
}
.material-item.checked{
   opacity:.7;
   background:rgba(227,187,122,.1);
}
}


/* Static shimmer effect - no animation */
/* ▸ Faux checkbox */
.has-border::before {
.material-checkbox-wrapper{margin-right:4px;}
   content: '';
.material-checkbox{
   position: absolute;
   position:relative;
   top: 0;
   display:inline-block;
   left: 0;
   width:18px;height:18px;
   right: 0;
   margin-top:1px;
   bottom: 0;
}
   background: linear-gradient(45deg, transparent 30%, rgba(252, 231, 200, 0.05) 50%, transparent 70%);
.material-checkbox::before{
   /* REMOVED: animation: shimmer 3s ease-in-out infinite; */
   content:'';
   position:absolute;inset:0;
   border:2px solid rgba(252,231,200,.35);
  border-radius:3px;
  background:transparent;
   transition:background .2s;
}
.material-checkbox.completed::before{background:#E3BB7A;}
.material-checkbox.completed::after{
  content:'✓';
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  color:#0a0a0a;font-size:13px;font-weight:700;
}
}


/* Enhanced locked-behind box */
/* ▸ Hide the blank icon that looked like a 2nd box */
.dune-card-locked{
.material-icon:empty{display:none;}
  margin:20px 0;
 
  background: linear-gradient(135deg, rgba(160, 123, 64, 0.2) 0%, rgba(0,0,2,.8) 100%);
.material-icon{width:32px;height:32px;flex-shrink:0;display:flex;align-items:center;justify-content:center;}
  border: 2px solid rgba(252, 231, 200, 0.4);
 
  padding:16px;
.material-name{flex:1 1 auto;font-size:13px;color:#E0E0E0;line-height:1.2;}
  text-align:center;
.material-item.checked .material-name{text-decoration:line-through;color:#888;}
  position: relative;
  clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
}


.dune-card-locked-label{
.material-qty{
  min-width:38px;
  text-align:right;
  font-family:'Orbitron',sans-serif;
  font-size:14px;font-weight:700;
   color:#fce7c8;
   color:#fce7c8;
  font-weight:700;
   padding-left:6px;
  font-size:13px;
  margin-bottom:12px;
   padding-bottom:8px;
  text-transform:uppercase;
  letter-spacing: 2px;
  border-bottom: 2px solid rgba(252, 231, 200, 0.3);
}
}


.dune-card-locked-icon{
/* ▸ List-view override */
  display:inline-block;
.materials-enhanced-container.list-view .materials-grid{display:block;}
  width:20px;
.materials-enhanced-container.list-view .material-column{margin-bottom:20px;}
  height:20px;
.materials-enhanced-container.list-view .material-item{display:flex;align-items:center;}
  margin-right:8px;
 
   color:#fce7c8;
/* hide stray empty <p><br></p> lines that MediaWiki inserts */
   font-size:18px;
.material-items>p{display:none;}
   /* REMOVED: animation: techPulse 2s ease-in-out infinite; */
 
/* ── row layout ─────────────────────────────────────────── */
.material-item{
   display:flex;
   align-items:center;         /* centre checkbox + text vertically */
   margin-bottom:8px;          /* ↓ 2 px less than the old 10 px    */
}
}


.dune-card-locked-value{
/* checkbox wrapper spacing */
   color:#fff;
.material-checkbox-wrapper{
  font-size:18px;
   margin:0 6px;               /* 6 px left + right padding         */
  padding:8px 16px;
  background: rgba(252, 231, 200, 0.1);
  border: 1px solid rgba(252, 231, 200, 0.3);
  display:inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: inset 0 0 10px rgba(252, 231, 200, 0.1);
}
}


/*──────── Clean Tables - No triangles, simple headers ───────*/
/* inner content row (name + qty) */
.dune-table-wrapper{
.material-content{
   border: 2px solid rgba(252, 231, 200, 0.3);
   flex:1;
  overflow:hidden;
   display:flex;
  width:100%;
   align-items:center;         /* keeps name + qty centred too      */
   position: relative;
  background: rgba(0,0,2,.6);
   box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
  /* REMOVED: Corner triangles */
}
}


table.infobox-dune-two-column,
/* item name */
table.infobox-dune-standard-table{
.material-name{
   width:100%;
   flex:1 1 auto;
   table-layout:fixed;
   line-height:1.25;
  border-collapse:separate;
   padding-top:5px !important; /* slight drop for optical centre    */
   border-spacing:0;
  background: transparent;
  position: relative;
}
}


/* Enhanced table cells */
/* quantity */
table.infobox-dune-two-column th,
.material-qty{
table.infobox-dune-two-column td,
   margin-left:auto;
table.infobox-dune-standard-table th,
   text-align:right;
table.infobox-dune-standard-table td{
   padding-top:5px !important; /* matches the name’s drop            */
   padding:12px 8px;
   font-size:15px;
   color:#E0E0E0;
  background: rgba(12,10,20,.6);
  border-bottom: 1px solid rgba(252, 231, 200, 0.2);
  transition: all 0.2s ease;
}
}


/* Hover effect for table rows */
/* remove phantom squares when no icon exists */
table.infobox-dune-two-column tr:hover td,
.material-icon:empty{display:none;}
table.infobox-dune-standard-table tr:hover td {
  background: rgba(252, 231, 200, 0.05);
  color: #fff;
}


/* Clean table headers - no gradient, simple dark background */
table.infobox-dune-two-column thead th,
table.infobox-dune-standard-table thead th,
.tr-dark{
  background: rgba(0,0,2,.9);
  color:#fce7c8;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  border-bottom: 2px solid rgba(252, 231, 200, 0.4);
  /* REMOVED: gradient and text-shadow */
}


table.infobox-dune-two-column th .icon,
/* ▸ Responsive */
table.infobox-dune-standard-table th .icon{
@media(max-width:1000px){
  display:inline-flex;
  .materials-grid{grid-template-columns:1fr;}
   align-items:center;
   .material-column{max-height:300px;overflow-y:auto;}
  justify-content:center;
  margin-right:8px;
  width:20px;
  color:#fce7c8;
  filter: drop-shadow(0 0 3px rgba(252, 231, 200, 0.7));
}
}


table.infobox-dune-two-column tr:last-child td,
/* ░░░  J O U R N E Y  P O P U P  —  M O B I L E  ░░░────────────────── */
table.infobox-dune-standard-table tr:last-child td{
@media (max-width: 768px) {
  border-bottom:none;
}


/* Icon column styling */
  /* 1 ▸ full-width overlay (keeps the dark backdrop) */
table.infobox-dune-two-column th:first-child,
  .journey-popup-overlay {
table.infobox-dune-standard-table th:first-child {
    align-items: flex-start;      /* start at top so address bar doesn’t hide it */
  width: 40%;
    padding: 10px;               /* breathing-room around the popup */
  text-align: left;
   }
   padding-left: 16px;
}


/* Video container enhancement - no shimmer */
  /* 2 ▸ responsive popup container */
.dune-card-video {
  .journey-popup {
  border: 3px solid transparent;
    width: 100%;                 /* stretch edge-to-edge */
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%) padding-box,
    max-width: 100%;
              linear-gradient(135deg, #fce7c8 0%, #E3BB7A 100%) border-box;
    min-width: 0;                /* override the desktop min-width */
  padding: 4px;
    height: auto;
  position: relative;
    max-height: 92vh;           /* leave a sliver for the browser chrome */
  overflow: hidden;
    padding: 14px 16px;         /* tighter padding on small screens */
  box-shadow: 0 0 30px rgba(252, 231, 200, 0.3);
    border-radius: 4px;
}
    transform: translate(-50%, 0) scale(1) !important; /* stop vertical centring jerks */
    top: 8px !important;         /* sit just under the URL bar */
    left: 50%;
  }


/* Responsive adjustments */
  /* 3 ▸ header tweaks */
@media screen and (max-width:600px){
  .journey-popup .popup-header {
  .dune-card{
     flex-wrap: wrap;            /* allow title to wrap instead of overflowing */
     clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
    padding: 10px 0 14px;
   }
   }
 
   .journey-popup .popup-title {
   .dune-card-title {
     font-size: 15px;
     font-size: 20px;
    line-height: 1.3;
    flex: 1 1 100%;
    margin-bottom: 6px;
   }
   }
    
   .journey-popup .popup-close {
  table.infobox-dune-two-column th,
    position: absolute;
  table.infobox-dune-two-column td,
    top: 8px;
  table.infobox-dune-standard-table th,
    right: 8px;
  table.infobox-dune-standard-table td{
    width: 32px;
     padding:10px 6px;
     height: 32px;
     font-size:14px;
     font-size: 22px;
   }
   }
}


/*──────── Recipe formatting ───────*/
  /* 4 ▸ content scroll area */
.recipe-item {
  .journey-popup .popup-content {
  display: inline-flex;
    padding: 0 2px 12px 0;       /* trim side padding, keep bottom */
  align-items: center;
    overflow-y: auto;
  background: rgba(252, 231, 200, 0.1);
    -webkit-overflow-scrolling: touch; /* smooth iOS scrolling */
  border: 1px solid rgba(252, 231, 200, 0.3);
   }
  padding: 4px 8px;
  margin: 2px;
  border-radius: 2px;
   transition: all 0.2s ease;
}


.recipe-item:hover {
  /* 5 ▸ make the “Items” popup work nicely */
  background: rgba(252, 231, 200, 0.2);
  .journey-popup.items-popup {
   border-color: #fce7c8;
    width: 100%;
  transform: translateY(-2px);
    max-width: 100%;
}
    min-width: 0;
   }
  .materials-grid {
    grid-template-columns: 1fr !important; /* single column on phones */
    gap: 14px;
  }


/* Loading animation for dynamic content (kept for actual loading states) */
  /* 6 ▸ bigger, thumb-friendly buttons */
.content-loading {
   .action-button {
  position: relative;
    padding: 12px;
   min-height: 100px;
    font-size: 13px;
}
   }
 
.content-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(252, 231, 200, 0.2);
  border-top-color: #fce7c8;
   border-radius: 50%;
  animation: loadingSpin 1s linear infinite;
}
 
/* Only animation kept - for loading states */
@keyframes loadingSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
}

Latest revision as of 00:07, 3 June 2025

/**********************************************************
 *  Common.css – Global Styles Only
 *  Dune Awakening Theme for MediaWiki
 *  (v5 cleaned · 2025-05-24)
 **********************************************************/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

/* ░ MOBILE DISCLAIMER BANNER ░──────────────────────────────────────────── */
/* Hidden on desktop – visible on screens ≤ 768 px */
#mobile-disclaimer {
    display: none;                     /* default = off */
    position: relative;                /* stays in normal flow at top */
    background: #3b0000;               /* dark red / tweak to match theme */
    color: #fce7c8;
    font-family: "Orbitron", sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-align: center;
    padding: 6px 10px;
    border-bottom: 2px solid #a855f7;  /* purple accent like your UI */
    z-index: 9999;                     /* sits above content */
}

@media (max-width: 768px) {
    #mobile-disclaimer { display: block; }
}



/* ================================================
   CSS VARIABLES
   ================================================ */
:root {
  /* Font sizes */
  --font-size-xs: 0.65rem;
  --font-size-sm: 0.75rem;
  --font-size-md: 0.85rem;
  --font-size-lg: 1.1rem;
  --font-size-xl: 1.3rem;
  --font-size-xxl: 1.7rem;
  
  /* Colors */
  --color-primary: #fce7c8;
  --color-secondary: #E3BB7A;
  --color-text: #E0E0E0;
  --color-bg-dark: rgba(0,0,2,.85);
  --color-bg-darker: rgba(12,10,20,.85);
  --color-border: rgba(252, 231, 200, 0.2);
  --color-border-hover: rgba(252, 231, 200, 0.4);
  
  /* Spacing */
  --header-height: 60px;
  --content-padding: 20px;
}

/* ================================================
   GLOBAL RESETS & LAYOUT FIXES
   ================================================ */

/* Remove all top spacing globally */
* {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Body spacing for fixed header */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

body {
  padding-top: var(--header-height) !important;
  background-color: #0a0a0a;
  color: var(--color-text);
  font-family: 'Rajdhani', sans-serif;
}

/* Subtle tech pattern overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 35px,
    rgba(252, 231, 200, 0.01) 35px,
    rgba(252, 231, 200, 0.01) 70px
  );
  pointer-events: none;
  z-index: 1;
}

/* ================================================
   HIDE MEDIAWIKI DEFAULT ELEMENTS
   ================================================ */
h1.firstHeading,
h1.title,
.mw-page-title-main,
#firstHeading,
.firstHeading,
.page-header,
.mw-indicators,
#tagline,
h3#tagline,
#contentSub,
.mw-content-subtitle {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide conflicting navigation elements */
body::after,
nav.tab-bar,
.tab-bar,
.tab-bar-section,
.left-off-canvas-toggle,
.right-off-canvas-toggle,
aside.right-off-canvas-menu,
#right-nav-aside,
#mw-header-container,
.mw-header {
  display: none !important;
}

/* ================================================
   CONTENT AREA RESETS
   ================================================ */
#content,
.mw-body,
#mw-content-text,
.mw-content-ltr,
.mw-content-rtl,
.mw-body-content,
.mw-parser-output,
#main-section,
.main-section,
#page-content,
#p-cactions,
.ve-init-mw-desktopArticleTarget-targetContainer {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Force first content element to start at top */
.mw-parser-output > *:first-child,
.mw-body-content > *:first-child,
#mw-content-text > *:first-child,
#bodyContent > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ================================================
   REMOVE SIDEBAR & FORCE FULL WIDTH
   ================================================ */
#sidebar,
aside.columns,
.side-nav,
.sidebar,
[class*="large-2"][class*="medium-3"] {
  display: none !important;
  width: 0 !important;
}

#page-content,
#main-section,
.main-section,
#p-cactions,
#content-wrapper,
.mw-body,
[class*="large-10"][class*="medium-9"] {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

/* Remove Foundation grid constraints */
.row {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.columns {
  padding: 0 !important;
  float: none !important;
  position: static !important;
}

/* Content wrapper */
#mw-content-text {
  padding: 0 var(--content-padding) !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Fix nested wrappers */
.off-canvas-wrap,
.docs-wrap,
.inner-wrap {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* ================================================
   ACTIONS BUTTON SPACING
   ================================================ */
#p-cactions {
  margin-bottom: 15px !important;
  padding-bottom: 0 !important;
}

#p-cactions > .row {
  margin-bottom: 0 !important;
}

#drop {
  margin-bottom: 0 !important;
  margin-top: 10px !important;
}

/* ================================================
   CUSTOM HEADER
   ================================================ */
#dune-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: var(--header-height) !important;
  background: linear-gradient(180deg, rgba(20, 18, 28, 0.95) 0%, rgba(10, 8, 16, 0.98) 100%);
  border-bottom: 3px solid var(--color-border-hover);
  box-shadow: 0 2px 20px rgba(0,0,0,0.8);
  z-index: 99999 !important;
  display: flex;
  align-items: center;
}

.dune-header-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 100%;
}

/* Logo */
.dune-logo {
  font-family: 'Orbitron', sans-serif !important;
  font-size: 22px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(252, 231, 200, 0.4);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.dune-logo:hover {
  color: #fff;
  text-shadow: 0 0 20px rgba(252, 231, 200, 0.6);
  text-decoration: none;
}

/* Navigation */
.dune-nav {
  display: flex;
  gap: 0;
  margin: 0 20px;
  height: 100%;
}

.dune-nav a {
  display: flex;
  align-items: center;
  padding: 0 18px;
  height: 100%;
  color: rgba(252, 231, 200, 0.8);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-decoration: none;
  border-right: 1px solid rgba(252, 231, 200, 0.1);
  transition: all 0.3s ease;
  background: transparent;
  position: relative;
}

.dune-nav a:first-child {
  border-left: 1px solid rgba(252, 231, 200, 0.1);
}

.dune-nav a:hover {
  background: rgba(252, 231, 200, 0.1);
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(252, 231, 200, 0.5);
  text-decoration: none;
}

/* Search */
.dune-search {
  display: flex;
  align-items: center;
}

.dune-search form {
  display: flex;
  align-items: stretch !important;
  gap: 0 !important;
}

.dune-search-input {
  background: rgba(0, 0, 2, 0.8);
  border: 2px solid rgba(252, 231, 200, 0.3);
  border-radius: 0;
  color: var(--color-primary);
  padding: 8px 12px;
  width: 200px;
  font-size: 13px;
  font-family: 'Rajdhani', sans-serif;
  transition: all 0.3s ease;
  height: 38px !important;
  box-sizing: border-box !important;
}

.dune-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(252, 231, 200, 0.3);
  width: 250px;
}

.dune-search-input::placeholder {
  color: rgba(252, 231, 200, 0.5);
}

.dune-search-btn {
  background: rgba(252, 231, 200, 0.1);
  border: 2px solid rgba(252, 231, 200, 0.3);
  border-left: none;
  color: var(--color-primary);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  height: 38px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.dune-search-btn:hover {
  background: rgba(252, 231, 200, 0.2);
  border-color: var(--color-primary);
}

/* Mobile menu button */
.dune-mobile-menu-btn {
  display: none;
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 24px;
  padding: 5px 10px;
  cursor: pointer;
  margin-right: 15px;
}

/* ================================================
   RADIAL MENU
   ================================================ */
.dune-radial-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%,-50%) scale(0);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity .3s ease;
}

.dune-radial-menu.active {
  transform: translate(-50%,-50%) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.dune-radial-item,
.dune-radial-center,
.dune-subcategory-container {
  background: linear-gradient(135deg, #0c0a14 0%, #1a1a1a 100%);
  border: 2px solid var(--color-primary);
  box-shadow: 
    inset 0 0 20px rgba(0,0,0,0.5),
    0 0 20px rgba(252, 231, 200, 0.2);
  transition: all 0.3s ease;
}

.dune-radial-item:hover,
.dune-radial-center:hover {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-color: #fff;
  box-shadow: 
    inset 0 0 20px rgba(252, 231, 200, 0.1),
    0 0 30px rgba(252, 231, 200, 0.4);
  transform: scale(1.05);
}

.dune-subcategory-header {
  background: linear-gradient(90deg, rgba(0,0,2,.9) 0%, rgba(12,10,20,.9) 100%);
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.dune-subcategory-item {
  color: var(--color-primary);
  transition: all 0.2s ease;
}

.dune-subcategory-item:hover {
  background: linear-gradient(90deg, rgba(252, 231, 200, 0.1) 0%, rgba(252, 231, 200, 0.2) 100%);
  padding-left: 20px;
  border-left: 3px solid var(--color-primary);
}

.dune-radial-overlay {
  background: radial-gradient(circle at center, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
  backdrop-filter: blur(3px);
}

/* ================================================
   GLOBAL TABLE STYLES
   ================================================ */
/* Remove MediaWiki table row alternating colors */
.skin-pivot table tr,
.skin-pivot table tbody tr,
.skin-pivot table tbody tr:nth-child(odd),
.skin-pivot table tbody tr:nth-child(even),
.skin-pivot table tbody tr:nth-child(odd) td,
.skin-pivot table tbody tr:nth-child(even) td,
.skin-pivot .wikitable tr,
.skin-pivot .wikitable tbody tr:nth-child(odd),
.skin-pivot .wikitable tbody tr:nth-child(even) {
  background: transparent !important;
  background-color: transparent !important;
}

/* ================================================
   FOOTER
   ================================================ */
footer#footer {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,2,.9) 100%) !important;
  border-top: 2px solid rgba(252, 231, 200, 0.3);
  margin-top: 40px !important;
  padding: 20px !important;
}

footer#footer a {
  color: var(--color-primary) !important;
  margin: 0 10px;
}

footer#footer li {
  display: inline-block !important;
  border: none !important;
}

/* ================================================
   BREADCRUMB NAVIGATION
   ================================================ */
.dune-breadcrumb-nav {
  display: flex;
  align-items: center;
  margin: 0 0 20px 0 !important;
  padding: 12px 18px !important;
  font-size: 18px !important;
  background: rgba(0,0,2,.3);
  border: 1px solid rgba(252, 231, 200, 0.15);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.dune-breadcrumb-nav a {
  color: rgba(252, 231, 200, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.dune-breadcrumb-nav a:hover {
  color: rgba(252, 231, 200, 0.9);
}

.dune-breadcrumb-separator {
  margin: 0 8px;
  color: rgba(252, 231, 200, 0.3);
}

.dune-breadcrumb-separator::before {
  content: '/';
  font-size: 16px;
}

.menu-button-wrapper {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}

.menu-button-wrapper img {
  height: 24px;
  width: auto;
  vertical-align: middle;
}

/* ================================================
   SCROLLBAR
   ================================================ */
::-webkit-scrollbar {
  width: 8px !important;
}

::-webkit-scrollbar-track {
  background: rgba(0,0,2,.8);
}

::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ================================================
   MOBILE RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  .dune-header-inner {
    padding: 0 10px;
  }
  
  .dune-logo {
    font-size: 18px;
    letter-spacing: 2px;
  }
  
  .dune-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 8, 16, 0.98);
    flex-direction: column;
    border-top: 2px solid var(--color-primary);
    margin: 0;
  }
  
  .dune-nav.mobile-active {
    display: flex;
  }
  
  .dune-nav a {
    border-right: none;
    border-left: none;
    border-bottom: 1px solid rgba(252, 231, 200, 0.1);
    height: 50px;
  }
  
  .dune-search {
    display: none;
  }
  
  .dune-mobile-menu-btn {
    display: block;
  }
  
  /* Breadcrumb adjustments */
  .dune-breadcrumb-nav {
    font-size: 14px !important;
    padding: 8px 12px !important;
  }
  
  .menu-button-wrapper img {
    height: 20px;
  }
  
  /* Mobile radial menu adjustments */
  .dune-radial-menu.mobile-grid {
    background: linear-gradient(135deg, rgba(0,0,2,.95) 0%, rgba(12,10,20,.95) 100%);
    border: 2px solid var(--color-primary);
    border-radius: 0;
    clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
  }
  
  .dune-radial-item {
    border: 2px solid var(--color-primary);
    background: rgba(0,0,2,.8);
  }
  
  .dune-subcategory-item {
    background: rgba(0,0,2,.8);
    border: 1px solid rgba(252, 231, 200, 0.3);
  }
}

@media (max-width: 1200px) {
  .dune-nav a {
    padding: 0 15px;
    font-size: 13px;
  }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
/* Loading spinner */
.tech-loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(252, 231, 200, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: loadingSpin 1s linear infinite;
  display: inline-block;
}

@keyframes loadingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Content loading state */
.content-loading {
  position: relative;
  min-height: 100px;
}

.content-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(252, 231, 200, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: loadingSpin 1s linear infinite;
}

/* Glitch text effect */
.glitch-text {
  text-shadow: 0 0 2px var(--color-primary);
}

/* Skeleton loader */
.skeleton-loader {
  background: linear-gradient(90deg, 
    rgba(252, 231, 200, 0.05) 0%, 
    rgba(252, 231, 200, 0.1) 50%, 
    rgba(252, 231, 200, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeletonWave 1.5s linear infinite;
  border-radius: 2px;
}

@keyframes skeletonWave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 16px;
  margin: 8px 0;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin: 12px 0;
}

.skeleton-image {
  height: 200px;
  width: 100%;
  margin: 16px 0;
}





/* === Footer actions button + dropdown === */

#footer {
  text-align: center;
  position: relative; /* needed for absolutely positioned dropdown inside */
}

/* Optional: space below footer links */
#footer #custom-footer-note {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  color: rgba(252,231,200,0.7);
  margin: 8px auto 4px;
  max-width: 720px;
  line-height: 1.4;
  text-transform: none;
}

/* Ensure dropdown menu is readable */
#drop1 {
  min-width: 180px;
  padding: 6px 0;
  border-radius: 4px;
  background-color: #1a1a1a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Optional: style menu items if not styled already */
#drop1 li a {
  color: #fce7c8;
  font-family: 'Rajdhani', sans-serif;
  padding: 4px 12px;
  display: block;
  text-decoration: none;
  transition: background 0.2s;
}
#drop1 li a:hover {
  background-color: rgba(252,231,200,0.1);
  color: #fff;
}


/* ================================================
   ENHANCED JOURNEY MATERIALS POPUP — CLEAN RULESET
   ================================================ */

/* ▸ Popup size */
.journey-popup.items-popup{
  min-width:1000px!important;
  max-width:95%!important;
}

/* ▸ Container */
.materials-enhanced-container{
  padding:10px;
  background:rgba(0,0,2,.4);
  border-radius:8px;
}

/* ▸ Progress header */
.materials-progress-header{
  background:linear-gradient(135deg,rgba(0,0,2,.8)0%,rgba(12,10,20,.8)100%);
  border:2px solid rgba(252,231,200,.2);
  border-radius:8px;
  padding:15px;
  margin-bottom:20px;
  position:relative;
}
.materials-progress-header.completed{
  box-shadow:0 0 12px rgba(227,187,122,.6);
}
.progress-bar-container{
  width:100%;height:8px;
  background:rgba(0,0,0,.3);
  border-radius:4px;
  margin-bottom:10px;
  overflow:hidden;
}
.progress-bar{
  height:100%;
  background:linear-gradient(90deg,#E3BB7A 0%,#fce7c8 100%);
  border-radius:4px;
  transition:width .35s ease;
}
.materials-progress-text{
  font-family:'Orbitron',sans-serif;
  font-size:14px;
  text-transform:uppercase;
  text-align:center;
  letter-spacing:1px;
  color:#fce7c8;
}
.materials-progress-count{
  font-size:18px;font-weight:700;
  text-shadow:0 0 10px rgba(252,231,200,.5);
}

/* ▸ Grid & columns */
.materials-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-bottom:20px;
  min-height:400px;
}
.material-column{
  background:rgba(0,0,2,.6);
  border:1px solid rgba(252,231,200,.2);
  border-radius:8px;
  padding:15px 12px 12px;
}
.level-1-column{border-color:#fce7c8;}
.level-2-column{border-color:#d4b896;}
.level-3-column{border-color:#a08968;}

.column-header{
  font-family:'Orbitron',sans-serif;
  font-size:14px;font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  margin-bottom:15px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(252,231,200,.2);
  display:flex;align-items:center;gap:8px;
}

/* ▸ Material rows */
.material-item{
  background:rgba(0,0,2,.4);
  border:1px solid rgba(252,231,200,.1);
  border-radius:6px;
  padding:8px 10px;
  margin-bottom:10px;
  display:flex;align-items:flex-start;        /* ★ top-align name/qty */
  cursor:pointer;
  transition:background .25s,border-color .25s;
}
.material-item:hover{
  background:rgba(252,231,200,.06);
  border-color:rgba(252,231,200,.3);
}
.material-item.checked{
  opacity:.7;
  background:rgba(227,187,122,.1);
}

/* ▸ Faux checkbox */
.material-checkbox-wrapper{margin-right:4px;}
.material-checkbox{
  position:relative;
  display:inline-block;
  width:18px;height:18px;
  margin-top:1px;
}
.material-checkbox::before{
  content:'';
  position:absolute;inset:0;
  border:2px solid rgba(252,231,200,.35);
  border-radius:3px;
  background:transparent;
  transition:background .2s;
}
.material-checkbox.completed::before{background:#E3BB7A;}
.material-checkbox.completed::after{
  content:'✓';
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  color:#0a0a0a;font-size:13px;font-weight:700;
}

/* ▸ Hide the blank icon that looked like a 2nd box */
.material-icon:empty{display:none;}

.material-icon{width:32px;height:32px;flex-shrink:0;display:flex;align-items:center;justify-content:center;}

.material-name{flex:1 1 auto;font-size:13px;color:#E0E0E0;line-height:1.2;}
.material-item.checked .material-name{text-decoration:line-through;color:#888;}

.material-qty{
  min-width:38px;
  text-align:right;
  font-family:'Orbitron',sans-serif;
  font-size:14px;font-weight:700;
  color:#fce7c8;
  padding-left:6px;
}

/* ▸ List-view override */
.materials-enhanced-container.list-view .materials-grid{display:block;}
.materials-enhanced-container.list-view .material-column{margin-bottom:20px;}
.materials-enhanced-container.list-view .material-item{display:flex;align-items:center;}

/* hide stray empty <p><br></p> lines that MediaWiki inserts */
.material-items>p{display:none;}

/* ── row layout ─────────────────────────────────────────── */
.material-item{
  display:flex;
  align-items:center;          /* centre checkbox + text vertically */
  margin-bottom:8px;           /* ↓ 2 px less than the old 10 px     */
}

/* checkbox wrapper spacing */
.material-checkbox-wrapper{
  margin:0 6px;                /* 6 px left + right padding          */
}

/* inner content row (name + qty) */
.material-content{
  flex:1;
  display:flex;
  align-items:center;          /* keeps name + qty centred too       */
}

/* item name */
.material-name{
  flex:1 1 auto;
  line-height:1.25;
  padding-top:5px !important;  /* slight drop for optical centre     */
}

/* quantity */
.material-qty{
  margin-left:auto;
  text-align:right;
  padding-top:5px !important;  /* matches the name’s drop            */
}

/* remove phantom squares when no icon exists */
.material-icon:empty{display:none;}


/* ▸ Responsive */
@media(max-width:1000px){
  .materials-grid{grid-template-columns:1fr;}
  .material-column{max-height:300px;overflow-y:auto;}
}

/* ░░░  J O U R N E Y   P O P U P   —   M O B I L E  ░░░────────────────── */
@media (max-width: 768px) {

  /* 1 ▸ full-width overlay (keeps the dark backdrop) */
  .journey-popup-overlay {
    align-items: flex-start;      /* start at top so address bar doesn’t hide it */
    padding: 10px;               /* breathing-room around the popup */
  }

  /* 2 ▸ responsive popup container */
  .journey-popup {
    width: 100%;                 /* stretch edge-to-edge */
    max-width: 100%;
    min-width: 0;                /* override the desktop min-width */
    height: auto;
    max-height: 92vh;            /* leave a sliver for the browser chrome */
    padding: 14px 16px;          /* tighter padding on small screens */
    border-radius: 4px;
    transform: translate(-50%, 0) scale(1) !important; /* stop vertical centring jerks */
    top: 8px !important;         /* sit just under the URL bar */
    left: 50%;
  }

  /* 3 ▸ header tweaks */
  .journey-popup .popup-header {
    flex-wrap: wrap;             /* allow title to wrap instead of overflowing */
    padding: 10px 0 14px;
  }
  .journey-popup .popup-title {
    font-size: 15px;
    line-height: 1.3;
    flex: 1 1 100%;
    margin-bottom: 6px;
  }
  .journey-popup .popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 22px;
  }

  /* 4 ▸ content scroll area */
  .journey-popup .popup-content {
    padding: 0 2px 12px 0;       /* trim side padding, keep bottom */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;  /* smooth iOS scrolling */
  }

  /* 5 ▸ make the “Items” popup work nicely */
  .journey-popup.items-popup {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .materials-grid {
    grid-template-columns: 1fr !important; /* single column on phones */
    gap: 14px;
  }

  /* 6 ▸ bigger, thumb-friendly buttons */
  .action-button {
    padding: 12px;
    font-size: 13px;
  }
}