MediaWiki:Common.css: Difference between revisions

From Ragnafied Wiki
No edit summary
Tag: Reverted
No edit summary
 
(130 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ===== CONSOLIDATED MEDIAWIKI COMMON.CSS ENHANCEMENTS ===== */
/* ==========================================================================
/* Last updated: 2024 - CONSOLIDATED VERSION */
  00. DESIGN TOKENS & SYSTEM VARIABLES
 
  Allows site-wide theme tweaks instantly from one central location.
/* === Improved Tables === */
  ========================================================================== */
.wikitable {
:root {
     border-collapse: collapse;
     /* Brand Gradients & Accents */
     border-spacing: 0;
    --ragna-grad-primary: linear-gradient(135deg, #ff6a00 0%, #f4b400 30%, #d93800 100%);
     width: 100%;
     --ragna-grad-accent: linear-gradient(135deg, #af011c, #d93800);
     margin: 1em 0;
     --ragna-gold-text: #ffd700;
     background: white;
      
     border: 1px solid #a2a9b1;
    /* Layout Variables */
     border-radius: 8px;
    --radius-sm: 6px;
     overflow: hidden;
     --radius-md: 10px;
     box-shadow: 0 2px 4px rgba(0,0,0,0.1);
     --radius-lg: 14px;
     --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
     --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.12);
     --shadow-lg: 0 12px 32px rgba(255, 106, 0, 0.15);
    --transition-smooth: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
   
    /* Global Semantic Colors */
    --bg-card-dark: #1e2a36;
    --border-light: rgba(0, 0, 0, 0.06);
}
}


.wikitable th {
/* ==========================================================================
    background: linear-gradient(135deg, #2c5e9e 0%, #1e3a5f 100%);
  01. BASE ELEMENTS & TYPOGRAPHY CLEANUP
     color: white;
  ========================================================================== */
     font-weight: 600;
h2, h3 {
     text-align: center;
     overflow: visible !important;
    padding: 12px 8px;
     padding-top: 14px;
     border-bottom: 2px solid #1e3a5f;
     margin-bottom: 12px;
     font-size: 14px;
     clear: both;
     font-family: system-ui, -apple-system, sans-serif;
}
}


.wikitable td {
code {
     padding: 10px 8px;
     transition: var(--transition-smooth);
    border: 1px solid #ddd;
    vertical-align: top;
}
 
.wikitable tr:nth-child(even) {
    background-color: #f8f9fa;
}
 
.wikitable tr:nth-child(odd) {
    background-color: #ffffff;
}
 
.wikitable tr:hover {
    background-color: #e3f2fd;
    transition: background-color 0.2s ease;
}
 
/* === Enhanced Navigation === */
#toc {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 6px;
    padding: 15px;
    margin: 1em 0;
}
 
.tocnumber {
    color: #2c5e9e;
    font-weight: bold;
}
 
/* === Better Links === */
a {
    color: #0645ad;
    text-decoration: none;
    transition: color 0.2s ease;
}
 
a:hover {
    color: #0b0080;
    text-decoration: underline;
}
 
a:visited {
    color: #0b0080;
}
 
a.new {
    color: #c20;
}
 
/* === Content Improvements === */
#content {
    line-height: 1.6;
    color: #202122;
}
 
#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
    color: #2c5e9e;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 0.3em;
    margin-top: 1.5em;
}
 
#content h1 {
    border-bottom: 2px solid #2c5e9e;
}
 
/* === Code Blocks === */
pre, code {
    background: #f8f9fa;
    border: 1px solid #eaecf0;
    border-radius: 4px;
    padding: 2px 4px;
    font-family: monospace;
}
 
pre {
    padding: 12px;
    overflow-x: auto;
}
 
/* === Infoboxes and Special Elements === */
.infobox {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 6px;
    padding: 15px;
    margin: 1em 0;
}
 
.navbox {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    padding: 5px;
}
 
/* === Custom Header Colors === */
.mw-headline {
    color: #2c5e9e;
}
 
/* === Button Improvements === */
.mw-ui-button {
    background: #2c5e9e;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
     cursor: pointer;
     cursor: pointer;
     transition: background-color 0.2s ease;
     background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}
}
 
code:hover {
.mw-ui-button:hover {
     filter: brightness(1.15);
     background: #1e3a5f;
}
}


/* === Form Elements === */
/* ==========================================================================
.mw-input,
  02. COMPONENT HERO & CONTAINERS
textarea {
  ========================================================================== */
    border: 1px solid #a2a9b1;
.ragnawiki-hero {
    border-radius: 4px;
     background: var(--ragna-grad-primary);
    padding: 8px;
     color: #ffffff;
    font-size: 14px;
     padding: 30px 25px;
}
     border-radius: var(--radius-lg);
 
     text-align: center;
.mw-input:focus,
     margin: 20px 0;
textarea:focus {
     box-shadow: var(--shadow-md);
    border-color: #2c5e9e;
     position: relative;
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 94, 158, 0.2);
}
 
/* === Logo Replacement === */
#p-logo a {
     background-image: url('https://wiki.ragnafied.net/images/e/ee/Ragnawikilogo.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
     background-color: transparent !important;
     display: block !important;
     min-width: 135px !important;
    min-height: 135px !important;
    transition: all 0.3s ease !important;
}
 
#p-logo a:hover {
    opacity: 0.8 !important;
    transform: scale(1.05) !important;
}
 
#p-logo a img {
    opacity: 0 !important;
    width: 135px !important;
     height: 135px !important;
}
 
/* === MODERN CARD SYSTEM (CONSOLIDATED) === */
 
/* Container System */
.wiki-header-container,
.quick-nav-container,
.about-container,
.guide-container,
.accounts-container,
.autoloot-container,
.stats-container,
.vip-container,
.systems-container,
.episode-container,
.quest-container {
    max-width: 1200px;
     margin: 0 auto;
     padding: 20px;
}
 
/* Card Base Styles */
.info-card,
.nav-card,
.stat-card,
.substat-card,
.trait-card,
.status-card,
.vip-comparison-card,
.system-card,
.plan-card,
.feature-card,
.benefits-section,
.ticket-card,
.quest-card,
.rewards-card,
.instance-card,
.unlock-card,
.summary-card,
.reputation-card,
.completion-card {
    background: white;
     border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
     overflow: hidden;
     overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e1e8ed;
    margin-bottom: 25px;
}
}


/* Card Hover Effects */
.ragnawiki-hero-title {
.info-card:hover,
    font-size: 30px;
.nav-card:hover,
    font-weight: 800;
.stat-card:hover,
    margin-bottom: 8px;
.system-card:hover,
     text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
.feature-card:hover,
    letter-spacing: -0.5px;
.ticket-card:hover,
.quest-card:hover {
    transform: translateY(-5px);
     box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
}


.substat-card:hover,
.ragnawiki-hero-subtitle {
.trait-card:hover,
.status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}
 
/* Card Header System */
.card-header,
.nav-header,
.stat-header,
.substat-header,
.trait-header,
.status-header,
.comparison-header,
.system-header,
.plan-header,
.benefits-header,
.ticket-header,
.quest-header,
.unlock-header,
.summary-header,
.quest-header-box {
    padding: 18px 25px;
    color: white;
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
 
.quest-header-box {
    background: linear-gradient(135deg, #2c5e9e 0%, #1e3a5f 100%);
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-size: 28px;
    margin: 0;
    padding: 20px;
}
 
.quest-header-box h1 {
    color: white;
    border-bottom: none;
    margin: 0;
    padding: 0;
    font-size: 28px;
    text-align: center;
}
 
/* Smaller Headers */
.substat-header,
.trait-header,
.status-header,
.plan-header,
.ticket-header,
.quest-header,
.unlock-header,
.summary-header {
    padding: 14px 18px;
     font-size: 16px;
     font-size: 16px;
     margin: 0;
    opacity: 0.95;
     margin-bottom: 0;
}
}


/* Card Content System */
/*  
.card-content,
  ENHANCEMENT: Switched to CSS Grid.  
.nav-content,
  Prevents dynamic flexing issues where elements stretch unevenly.
.stat-content,
*/
.substat-content,
.ragnawiki-grid,
.trait-content,
.ragnawiki-nav-grid {
.status-content,
.comparison-content,
.system-content,
.plan-content,
.benefits-content,
.ticket-content,
.quest-content,
.unlock-content,
.summary-content {
    padding: 25px;
    line-height: 1.6;
}
 
.nav-content {
    padding: 0;
}
 
.substat-content,
.trait-content,
.status-content,
.quest-content,
.unlock-content,
.summary-content {
    padding: 18px;
}
 
/* === GRID SYSTEMS (CONSOLIDATED) === */
 
.stats-grid {
     display: grid;
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 20px;
     gap: 20px;
     margin: 25px 0;
     margin: 25px 0;
}
}


.substats-grid {
/* ==========================================================================
     display: grid;
  03. CARDS & PANELS
     grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  ========================================================================== */
     gap: 20px;
.ragnawiki-card,
     margin: 25px 0;
.ragnawiki-nav-card {
     background: #ffffff;
     border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
     overflow: hidden;
     transition: var(--transition-smooth);
    border: 1px solid var(--border-light);
}
}


.trait-stats-grid {
.ragnawiki-card:hover,
     display: grid;
.ragnawiki-nav-card:hover {
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     transform: translateY(-4px);
    gap: 20px;
     box-shadow: var(--shadow-lg);
    margin: 25px 0;
}
}


.status-breakdown-grid {
.ragnawiki-card-header,
     display: grid;
.ragnawiki-nav-header {
     grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
     color: #ffffff;
     gap: 20px;
    padding: 14px 18px;
     margin: 25px 0;
     font-weight: 700;
     font-size: 14px;
     letter-spacing: 0.3px;
}
}


.feature-grid {
.ragnawiki-card-content {
     display: grid;
     padding: 18px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}
}


.benefits-grid {
/* ==========================================================================
    display: grid;
  04. TABLES & DATA LISTS
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  ========================================================================== */
    gap: 20px;
.ragnawiki-list,
    margin: 25px 0;
.ragnawiki-nav-table {
}
 
.systems-comparison,
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 25px 0;
}
 
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
     width: 100%;
     width: 100%;
    border-collapse: collapse;
    border: none;
}
}


.quest-grid {
.ragnawiki-list tr td,
     display: grid;
.ragnawiki-nav-table tr td {
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     padding: 10px 12px;
     gap: 20px;
     border-bottom: 1px solid #f0f0f5;
     margin: 20px 0;
     vertical-align: middle;
     font-size: 13px;
}
}


.side-quests-grid,
.ragnawiki-list tr:last-child td,
.daily-quests-grid {
.ragnawiki-nav-table tr:last-child td {
     display: grid;
     border-bottom: none;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
}


.rewards-grid,
.ragnawiki-nav-table tr:nth-child(odd) td {
.reputation-grid {
     background: rgba(240, 248, 255, 0.4);
    display: grid;
    grid-template-columns: 1fr 1fr;
     gap: 20px;
    margin: 20px 0;
}
}


.unlocks-grid {
.ragnawiki-nav-table tr:nth-child(even) td {
    display: grid;
     background: #ffffff;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
     margin: 20px 0;
}
}


.quest-summary-grid {
.ragna-value {
     display: grid;
     font-weight: 700;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
}


.instance-grid {
/* Modernized Global Wikipedia Tables to harmonize with your theme */
     display: grid;
.wikitable {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     border-collapse: collapse;
     gap: 15px;
     width: 100%;
     margin: 20px 0;
     margin: 20px 0;
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
}


/* === LIST SYSTEMS (CONSOLIDATED) === */
.wikitable th {
 
     background: linear-gradient(135deg, #667eea, #764ba2);
.modern-list,
     color: #ffffff;
.stat-list,
     padding: 14px 12px;
.substat-list,
     font-weight: 700;
.trait-list,
.feature-list,
.compact-quest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
 
.list-item,
.feature-item,
.benefit-item,
.drop-item,
.map-drop-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
 
.list-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e1e8ed;
    margin-bottom: 15px;
}
 
.list-item:hover {
    background: rgba(240, 247, 255, 0.9);
    transform: translateX(5px);
}
 
.feature-item {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
 
.benefit-item {
    background: rgba(39, 174, 96, 0.1);
    border-left: 4px solid #27ae60;
    align-items: center;
}
 
.drop-item {
    background: rgba(30, 144, 255, 0.05);
    border: 1px solid rgba(30, 144, 255, 0.1);
    align-items: center;
    margin-bottom: 12px;
}
 
.drop-item:hover {
    background: rgba(30, 144, 255, 0.1);
    transform: translateX(3px);
}
 
.map-drop-item {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    margin-bottom: 15px;
}
 
.map-drop-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(3px);
}
 
/* List Items */
.stat-list li,
.substat-list li,
.trait-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
}
 
.stat-list li:last-child,
.substat-list li:last-child,
.trait-list li:last-child {
    border-bottom: none;
}
 
.stat-list li:before,
.substat-list li:before,
.trait-list li:before {
    content: "•";
    color: #2c5e9e;
    font-weight: bold;
    position: absolute;
    left: 0;
}
 
.stat-list li.negative:before {
    content: "⛔";
    color: #e74c3c;
}
 
.compact-quest-list {
    counter-reset: quest-step;
}
 
.compact-quest-list > li {
    counter-increment: quest-step;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}
 
.compact-quest-list > li:hover {
    background: rgba(240, 247, 255, 0.9);
    transform: translateX(5px);
}
 
.compact-quest-list > li:before {
    content: counter(quest-step);
     background: linear-gradient(135deg, #2c5e9e, #1e3a5f);
     color: white;
     width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
     font-weight: bold;
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
     font-size: 14px;
     font-size: 14px;
}
}


.compact-quest-list > li strong {
.wikitable td {
     color: #2c5e9e;
     padding: 12px 10px;
    font-weight: 600;
     border-bottom: 1px solid #f0f0f5;
     display: block;
     font-size: 13px;
    margin-bottom: 8px;
     font-size: 15px;
}
}


.compact-quest-list code {
.wikitable tr:nth-child(even) {
     background: #2c5e9e;
     background: rgba(240, 248, 255, 0.4);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin: 0 2px;
}
}


/* Nested Lists */
/* ==========================================================================
.compact-quest-list ul {
  05. ALERT BOXES, RIBBONS, HOVER WRAPPERS
    list-style: none;
  ========================================================================== */
    padding: 0;
.ragnawiki-tip-box, .tip-box,
    margin: 10px 0 0 0;
.ragnawiki-warning-box {
}
     padding: 14px 16px;
 
     border-radius: var(--radius-sm);
.compact-quest-list ul li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.4;
}
 
.compact-quest-list ul li:last-child {
    border-bottom: none;
}
 
.compact-quest-list ul li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}
 
/* Navigation Lists */
.navi-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}
 
.navi-list li {
    padding: 4px 0;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: #666;
}
 
/* List Icons */
.list-icon {
    background: linear-gradient(135deg, #2c5e9e, #1e3a5f);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}
 
.feature-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}
 
.benefit-icon {
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}
 
.feature-icon-large {
    font-size: 40px;
    margin-bottom: 15px;
}
 
.drop-icon,
.map-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
 
.drop-icon img,
.map-icon img {
     max-width: 100%;
    max-height: 100%;
     border-radius: 4px;
}
 
.map-icon {
    margin-right: 15px;
}
 
/* Content Areas */
.list-content,
.feature-text,
.benefit-text,
.drop-text,
.map-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}
 
.map-text {
     font-size: 13px;
     font-size: 13px;
}
     margin: 12px 0;
 
.map-name {
    font-weight: 600;
    color: #B8860B;
    font-size: 14px;
     margin-bottom: 4px;
}
 
.map-drop {
    color: #666;
    line-height: 1.4;
}
 
/* === SPECIAL ELEMENTS === */
.notes-box {
    transition: transform 0.2s ease;
}
 
.notes-box:hover {
    transform: scale(1.02);
}
 
.tip-box {
     border-left: 4px solid;
     border-left: 4px solid;
    transition: var(--transition-smooth);
}
}


.note-box {
.ragnawiki-tip-box, .tip-box {
    font-size: 12px;
     background: #fff5f5;
}
     border-left-color: #b22222;
 
     color: #801010;
/* === CODE & EXAMPLES === */
code {
     background: #2c5e9e;
    color: white;
    padding: 4px 8px;
     border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}
 
.compact-list code {
    background: #2c5e9e;
     color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-family: 'Courier New', monospace;
}
 
.command-examples code,
.command-grid code,
.examples-grid code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
}
 
.example-box {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
}
 
/* === HOVER EFFECTS === */
.quick-overview > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
 
.quick-overview > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
 
.command-examples > div,
.examples-grid > div {
    transition: transform 0.2s ease;
}
 
.command-examples > div:hover,
.examples-grid > div:hover {
    transform: scale(1.02);
}
 
.discord-cta,
.exploration-tip,
.vip-cta {
    transition: transform 0.2s ease;
}
}


.discord-cta:hover,
.ragnawiki-warning-box {
.exploration-tip:hover {
    background: #fffbeb;
     transform: scale(1.02);
    border-left-color: #f39c12;
     color: #8a5100;
}
}


.vip-cta:hover {
.ragnawiki-tip-box:hover, .tip-box:hover, .ragnawiki-warning-box:hover {
     transform: translateY(-3px);
     transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.3);
}
}


.vip-cta a {
/* Universal Clean Hover Interactions for Content Modules */
     transition: all 0.3s ease;
.hero-section, .quick-overview > div, .info-card,
.command-examples > div, .example-box, .command-section > div,
.examples-grid > div, .item-types-grid > div {
     transition: var(--transition-smooth);
}
}


.vip-cta a:hover {
.hero-section:hover, .quick-overview > div:hover, .info-card:hover,
    background: #8e44ad !important;
.command-examples > div:hover, .command-section > div:hover, .examples-grid > div:hover {
     color: white !important;
     transform: translateY(-4px);
     transform: scale(1.05);
     box-shadow: var(--shadow-md);
}
}


/* === SPECIAL LAYOUTS === */
.example-box:hover {
.free-plan {
     transform: translateX(6px);
     background: linear-gradient(135deg, #f8f9fa, #e9ecef);
     box-shadow: var(--shadow-sm);
     border-right: 2px dashed #dee2e6;
}
}


.vip-plan {
.item-types-grid > div:hover {
     background: linear-gradient(135deg, #fffaf0, #fff5e6);
     transform: scale(1.03);
}
}


.plan-content {
/* Ribbons Layout */
    height: calc(100% - 70px);
.ragna-ribbon-container {
}
 
.feature-title {
    font-weight: 600;
    font-size: 18px;
    color: #2c5e9e;
    margin-bottom: 10px;
}
 
.feature-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
 
.status-content {
    font-size: 14px;
    line-height: 1.5;
}
 
.system-description {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #555;
}
 
.rate-info {
    text-align: center;
    margin: 20px 0;
}
 
.rate-badge {
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
}
 
.drops-grid,
.map-drops-grid {
     display: flex;
     display: flex;
     flex-direction: column;
     justify-content: center;
     margin: 20px 0;
     flex-wrap: wrap;
}
 
.drops-grid {
     gap: 12px;
     gap: 12px;
    margin: 25px 0;
}
}


.map-drops-grid {
.ragna-ribbon {
     gap: 15px;
    background: #2c3e50;
    color: var(--ragna-gold-text);
    padding: 10px 24px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%, 6% 0);
    border-top: 2px solid var(--ragna-gold-text);
    border-bottom: 2px solid var(--ragna-gold-text);
     transition: var(--transition-smooth);
}
}


/* === TICKET CARD SPECIFIC === */
.ragna-ribbon:hover {
.ticket-card {
     transform: translateY(-2px) scale(1.03);
     display: flex;
     background: #34495e;
    flex-direction: column;
     color: #ffffff;
     height: 100%;
     min-width: 0;
}
}


.ticket-info {
/* ==========================================================================
     margin-bottom: 15px;
  6. FIX: USER-FRIENDLY COLLAPSIBLE DESIGN
     flex-grow: 1;
  ========================================================================== */
}
.mw-collapsible {
 
     display: block !important;
.ticket-episode {
     width: 100% !important;
     font-weight: 600;
     margin-bottom: 15px !important;
     color: #2c5e9e;
     background: transparent !important;
     font-size: 14px;
     overflow: hidden;
     margin-bottom: 8px;
     border: none !important;
     line-height: 1.3;
     box-shadow: none !important;
}
}


.ticket-description {
/* Style the text toggle link nicely so users see it clearly */
     font-size: 13px;
.mw-collapsible-toggle {
     color: #666;
     display: inline-block !important;
    float: none !important;
     text-align: left !important;
     margin-bottom: 12px;
     margin-bottom: 12px;
     line-height: 1.4;
     padding: 6px 14px !important;
}
     background: #f1f3f5;
 
     border: 1px solid rgba(0,0,0,0.06);
.ticket-requirements {
     border-radius: 6px;
    font-size: 12px;
     font-size: 13px !important;
    color: #7f8c8d;
    margin-bottom: 10px;
    line-height: 1.3;
}
 
.ticket-price {
    font-size: 13px;
    color: #27ae60;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
 
.ticket-link-container {
    margin-top: auto;
    text-align: center;
}
 
.ticket-link-container .plainlinks a {
    display: inline-block;
     background: #3498db;
     color: white;
    padding: 6px 12px;
     border-radius: 4px;
    text-decoration: none;
     font-size: 12px;
     font-weight: 600;
     font-weight: 600;
    color: #FF6A00 !important;
    cursor: pointer !important;
     transition: all 0.2s ease;
     transition: all 0.2s ease;
    white-space: nowrap;
}
}


.ticket-link-container .plainlinks a:hover {
.mw-collapsible-toggle:hover {
     background: #2980b9;
     background: #FF6A00;
     transform: translateY(-1px);
     color: #ffffff !important;
     text-decoration: none;
    border-color: #FF6A00;
    color: white;
     text-decoration: none !important;
}
}


/* === EPISODE TIMELINE === */
.mw-collapsible-content {
.episode-table-container {
     padding: 5px 0 !important;
     overflow-x: auto;
    background: transparent !important;
     margin: 20px 0;
     box-shadow: none !important;
}
}


.episode-timeline {
/* ==========================================================================
     width: 100%;
  07. MEDIAWIKI RE-ENGINEERED COLLAPSIBLES
     border-collapse: collapse;
  ========================================================================== */
     font-size: 13px;
.mw-collapsible {
    display: block !important;
     width: 100% !important;
    margin-bottom: 24px !important;
    background: #ffffff;
     border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
     transition: var(--transition-smooth);
    border: 1px solid var(--border-light);
}
}


.episode-timeline th {
.mw-collapsible:hover {
     background: linear-gradient(135deg, #34495e, #2c3e50);
     box-shadow: var(--shadow-lg);
    color: white;
    font-weight: 600;
    padding: 10px 8px;
    text-align: left;
    border: none;
    font-size: 12px;
}
}


.episode-timeline td {
.mw-collapsible .ragnawiki-card-header {
     padding: 8px 6px;
    display: block !important;
     border-bottom: 1px solid #ecf0f1;
    width: 100% !important;
     vertical-align: middle;
     padding: 16px 24px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    position: relative !important;
    font-size: 16px !important;
     border-bottom: 2px solid rgba(255, 255, 255, 0.15);
     transition: var(--transition-smooth);
}
}


.episode-timeline tr:hover td {
.mw-collapsible .ragnawiki-card-header:hover {
     background: rgba(52, 152, 219, 0.05);
     filter: brightness(1.08);
    padding-left: 28px !important;
}
}


/* Status Badges */
.mw-collapsible .ragnawiki-card-header::after {
.status-completed,
     content: "▼";
.status-skippable,
     float: right;
.status-current,
.status-future {
     padding: 4px 8px;
     border-radius: 20px;
     font-size: 11px;
     font-size: 11px;
     font-weight: 600;
     transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
     background: rgba(0, 0, 0, 0.15);
    min-width: 40px;
     width: 22px;
    text-align: center;
     height: 22px;
}
 
.status-completed {
    background: #27ae50;
    color: white;
}
 
.status-skippable {
    background: #9b59b6;
    color: white;
}
 
.status-current {
    background: #e67e22;
    color: white;
}
 
.status-future {
     background: #95a5a6;
    color: white;
}
 
/* Timeline Legend */
.timeline-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
     gap: 15px;
    margin-top: 25px;
     font-size: 12px;
}
 
.legend-item {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     gap: 12px;
     justify-content: center;
    padding: 6px 8px;
     border-radius: 50%;
    background: rgba(236, 240, 241, 0.5);
     border-radius: 8px;
}
}


.legend-color {
.mw-collapsible.expanded .ragnawiki-card-header::after {
    width: 12px;
     transform: rotate(180deg);
    height: 12px;
    border-radius: 4px;
     flex-shrink: 0;
}
}


.legend-text {
.mw-collapsible-content {
     font-size: 13px;
     padding: 24px !important;
     color: #2c3e50;
     background: #fafafb !important;
    font-weight: 500;
}
}


/* NPC Info Section */
/* Collapsible Content Deep Nesting Fixes */
.npc-info {
.mw-collapsible-content .ragnawiki-card {
     background: rgba(155, 89, 182, 0.1);
     border: 1px solid var(--border-light);
    padding: 20px;
     margin-bottom: 0;
    border-radius: 8px;
     margin-top: 15px;
    border-left: 4px solid #9b59b6;
}
}
 
.mw-collapsible-content .ragnawiki-card-header {
/* Progression Tip */
     padding: 12px 16px !important;
.progression-tip {
    font-size: 14px !important;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: none !important;
}
}
.mw-collapsible-content .ragnawiki-card-header::after { display: none !important; }


.progression-tip:hover {
/* Hide native MediaWiki toggle strings safely */
     transform: translateY(-3px);
.mw-collapsible-toggle, .mw-collapsible-toggle-default, .mw-collapsible-text {
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
     display: none !important;
}
}


/* === QUEST GUIDE STYLING === */
/* ==========================================================================
.quest-start,
  08. COLOR ATTRIBUTE THEMES (COLOR TOKENS)
.quest-start-box {
  ========================================================================== */
    background: rgba(52, 152, 219, 0.1);
.ragna-blue  { background: linear-gradient(135deg, #3498db, #2980b9) !important; color: #ffffff !important; }
    border: 1px solid rgba(52, 152, 219, 0.2);
.ragna-green  { background: linear-gradient(135deg, #2ecc71, #27ae60) !important; color: #ffffff !important; }
    border-left: 4px solid #3498db;
.ragna-red    { background: linear-gradient(135deg, #e74c3c, #c0392b) !important; color: #ffffff !important; }
    padding: 15px 20px;
.ragna-purple { background: linear-gradient(135deg, #9b59b6, #8e44ad) !important; color: #ffffff !important; }
    border-radius: 8px;
.ragna-orange { background: linear-gradient(135deg, #e67e22, #d35400) !important; color: #ffffff !important; }
    margin-bottom: 25px;
.ragna-teal  { background: linear-gradient(135deg, #16a085, #1abc9c) !important; color: #ffffff !important; }
    font-size: 14px;
.ragna-pink  { background: linear-gradient(135deg, #f48fb1, #f06292) !important; color: #ffffff !important; }
}
.ragna-cyan  { background: linear-gradient(135deg, #00bcd4, #0097a7) !important; color: #ffffff !important; }
.ragna-brown  { background: linear-gradient(135deg, #795548, #5d4037) !important; color: #ffffff !important; }
.ragna-dark  { background: linear-gradient(135deg, #2c3e50, #34495e) !important; color: #ffffff !important; }
.ragna-gray  { background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important; color: #ffffff !important; }


.quest-start strong,
.ragna-gold  { background: linear-gradient(135deg, #ffd700, #f1c40f) !important; color: #222222 !important; }
.quest-start-box strong {
.ragna-yellow { background: linear-gradient(135deg, #ffeb3b, #fbc02d) !important; color: #222222 !important; }
    color: #2c5e9e;
.ragna-silver { background: linear-gradient(135deg, #bdc3c7, #95a5a6) !important; color: #222222 !important; }
    font-weight: 600;
}


.quest-start-box code {
/* Apply Text Theme Color Corrections automatically to dark-text variants */
    background: #2c5e9e;
.ragna-gold::after, .ragna-yellow::after, .ragna-silver::after { color: #222222 !important; }
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}


.compact-list {
/* ==========================================================================
     list-style: decimal;
  08b. FLOATING MENU & BACK TO TOP BUTTON (DESKTOP CORE)
     padding-left: 20px;
  ========================================================================== */
     margin: 10px 0;
.floating-menu {
     font-size: 12px;
     position: fixed !important;
    z-index: 9999 !important;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: var(--radius-md);
     box-shadow: var(--shadow-md);
     transition: max-height 0.25s ease, opacity 0.2s ease;
     overflow: hidden;
    width: 220px;
}
}


.compact-list li {
.floating-menu-header {
    margin-bottom: 6px;
     background: #2c3e50;
    line-height: 1.3;
     color: #ffffff;
}
     padding: 12px;
 
     font-weight: bold;
.quest-rewards {
     display: flex;
     background: rgba(39, 174, 96, 0.1);
     align-items: center;
     border: 1px solid rgba(39, 174, 96, 0.2);
    cursor: pointer;
    border-left: 4px solid #27ae60;
     padding: 12px 15px;
     border-radius: 6px;
     margin: 15px 0;
     font-size: 13px;
}
}


.quest-rewards strong {
.floating-menu-items {
     color: #27ae60;
     max-height: 400px;
     font-weight: 600;
     overflow-y: auto;
}
}


.quest-rewards em {
.floating-menu-items a {
     color: #7f8c8d;
     display: block;
     font-style: italic;
     padding: 10px 14px;
}
     color: #333333 !important;
 
     text-decoration: none !important;
.quest-unlocks {
     border-bottom: 1px solid #f0f0f5;
     background: rgba(155, 89, 182, 0.1);
     border: 1px solid rgba(155, 89, 182, 0.2);
     border-left: 4px solid #9b59b6;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
     font-size: 13px;
     font-size: 13px;
    transition: var(--transition-smooth);
}
}


.quest-unlocks strong {
.floating-menu-items a:hover {
     color: #9b59b6;
     background: #f8f9fa;
     font-weight: 600;
     padding-left: 18px;
    color: #FF6A00 !important;
}
}


.quest-items {
.floating-menu-items a.reading-now {
     background: rgba(230, 126, 34, 0.1);
     background: rgba(255, 106, 0, 0.1);
     border: 1px solid rgba(230, 126, 34, 0.2);
     color: #FF6A00 !important;
     border-left: 4px solid #e67e22;
     font-weight: bold;
    padding: 10px 15px;
     border-left: 3px solid #FF6A00;
     border-radius: 6px;
    margin: 10px 0;
    font-size: 13px;
    color: #7f8c8d;
}
}


.quest-items em {
/* Floating Menu Toggle Trigger (Mobile) */
     font-style: italic;
.floating-menu-toggle {
    position: fixed !important;
    bottom: 25px !important;
    left: 25px !important;
    z-index: 9999 !important;
    background: #2c3e50;
    color: #ffffff;
    width: 45px;
    height: 45px;
    display: none; /* JS toggles visibility */
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
     font-size: 20px;
}
}


/* === Progress Box === */
/* Back To Top Layout Configuration */
.quest-progress-box {
.back-to-top-fixed {
     background: linear-gradient(135deg, #34495e, #2c3e50);
     position: fixed !important;
    color: white;
     bottom: 25px !important;
    padding: 20px;
     right: 25px !important;
     border-radius: 8px;
     z-index: 9998 !important;
     margin: 30px 0;
     box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
}


.quest-progress-box strong {
.back-to-top-fixed a {
    color: white;
    font-weight: 600;
     display: block;
     display: block;
     margin-bottom: 15px;
     padding: 11px 16px;
     font-size: 16px;
    background: #2e7d32;
    color: #ffffff !important;
    font-weight: 700;
     font-size: 13px;
    text-decoration: none !important;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}
}


.quest-progress-box ul {
.back-to-top-fixed a:hover {
     list-style: none;
     background: #1b5e20;
     padding: 0;
     transform: translateY(-2px);
     margin: 0;
     box-shadow: var(--shadow-md);
}
}


.quest-progress-box li {
@media (max-width: 768px) {
     padding: 8px 0;
     .floating-menu-toggle { display: flex; }
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    padding-left: 25px;
    font-size: 14px;
}
}


.quest-progress-box li:last-child {
/* Collapsible Toggle Action for the Floating Menu */
     border-bottom: none;
.floating-menu.collapsed {
     max-height: 42px !important; /* Matches the header height exactly */
}
}


.quest-progress-box li:before {
.floating-menu.collapsed .floating-menu-items {
     content: "→";
     opacity: 0;
    color: #3498db;
     pointer-events: none;
     font-weight: bold;
    position: absolute;
    left: 0;
}
}


.quest-progress-box li:first-child:before {
.floating-menu.collapsed .floating-menu-header .arrow {
     content: "✓";
     transform: rotate(-90deg);
    color: #27ae60;
}
}


.quest-progress-box li:nth-child(2):before {
.floating-menu-header .arrow {
    content: "✓";
     display: inline-block;
    color: #27ae60;
     transition: transform 0.2s ease;
}
     margin-left: 8px;
 
     font-size: 10px;
.quest-progress-box li:nth-child(3):before {
     content: "✓";
    color: #27ae60;
}
 
/* === Daily Quests Box === */
.daily-quests-box {
    background: rgba(52, 152, 219, 0.1);
     border: 1px solid rgba(52, 152, 219, 0.2);
     border-radius: 8px;
     padding: 20px;
    margin: 25px 0;
}
}


.daily-quests-box strong {
/* ==========================================================================
    color: #2c5e9e;
  09. ULTRA RESPONSIVE MEDIA QUERIES
    font-weight: 600;
  ========================================================================== */
    display: block;
    margin-bottom: 15px;
    font-size: 16px;
}
 
.daily-quests-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
}
 
.daily-quests-list li {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}
 
.daily-quests-list li:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
}
 
/* Sage Legacy Specific */
.reward-category,
.rep-category {
    font-size: 12px;
}
 
.reward-category strong,
.rep-category strong {
    color: #2c5e9e;
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}
 
/* === RESPONSIVE DESIGN (CONSOLIDATED) === */
@media (max-width: 1200px) {
@media (max-width: 1200px) {
     .tickets-grid {
     .floating-menu { min-width: 170px; }
        grid-template-columns: repeat(2, 1fr);
    }
}
 
@media (max-width: 968px) {
    .systems-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
}


@media (max-width: 768px) {
@media (max-width: 768px) {
     .wikitable {
     .ragnawiki-grid, .ragnawiki-nav-grid {
        font-size: 14px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
   
    #content {
        padding: 10px;
    }
   
    .wikitable th,
    .wikitable td {
        padding: 8px 6px;
    }
   
    /* Grid layouts */
    .stats-grid,
    .substats-grid,
    .trait-stats-grid,
    .status-breakdown-grid,
    .feature-grid,
    .benefits-grid,
    .drops-grid,
    .quick-overview,
    .item-types-grid,
    .comparison-grid,
    .tickets-grid,
    .quest-grid,
    .side-quests-grid,
    .daily-quests-grid,
    .rewards-grid,
    .reputation-grid,
    .unlocks-grid,
    .quest-summary-grid,
    .instance-grid {
        grid-template-columns: 1fr;
    }
   
    .command-grid,
    .examples-grid,
    .accounts-container .info-card .card-content > div {
        grid-template-columns: 1fr;
        gap: 15px;
    }
   
    /* Container padding */
    .wiki-header-container,
    .quick-nav-container,
    .about-container,
    .guide-container,
    .accounts-container,
    .autoloot-container,
    .stats-container,
    .vip-container,
    .systems-container,
    .episode-container,
    .quest-container {
        padding: 10px;
    }
   
    /* Flex layouts */
    .list-item,
    .feature-item,
    .benefit-item,
    .drop-item,
    .map-drop-item {
        flex-direction: column;
        text-align: center;
    }
   
    .list-icon,
    .feature-icon,
    .benefit-icon,
    .drop-icon,
    .map-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
   
    .free-plan {
        border-right: none;
        border-bottom: 2px dashed #dee2e6;
    }
   
    .system-content {
        padding: 15px;
    }
   
    .system-header {
        padding: 15px;
        font-size: 18px;
    }
   
    .ticket-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
   
    .timeline-legend {
         grid-template-columns: 1fr;
         grid-template-columns: 1fr;
     }
     }
   
     .floating-menu {
    .episode-timeline {
         left: -240px;
        font-size: 14px;
         top: 15px;
    }
         width: 210px;
   
         max-height: 75vh;
    .episode-timeline th,
         overflow-y: auto;
    .episode-timeline td {
        padding: 8px 6px;
    }
   
     .info-card .card-content > div {
         grid-template-columns: 1fr;
        text-align: center;
    }
   
    .hero-section {
        padding: 15px;
    }
   
    .hero-section div {
        font-size: 18px;
    }
 
    .quest-header {
        padding: 15px 20px;
        font-size: 16px;
    }
 
    .quest-content {
        padding: 20px;
    }
 
    .compact-quest-list > li {
         padding: 15px;
         margin-bottom: 20px;
    }
 
    .compact-quest-list > li:before {
        position: static;
         transform: none;
        margin-bottom: 10px;
         display: inline-flex;
    }
 
    .daily-quests-list {
        grid-template-columns: 1fr;
    }
   
    .quest-progress-box,
    .daily-quests-box {
        padding: 15px;
     }
     }
    .floating-menu.mobile-visible { left: 15px; }
    .drag-handle { display: none; }
    .back-to-top-fixed a { width: 48px; height: 48px; }
    .mw-collapsible .ragnawiki-card-header { padding: 14px 20px !important; font-size: 15px !important; }
    .mw-collapsible-content { padding: 16px !important; }
}
}


@media (max-width: 480px) {
@media (max-width: 600px) {
     .card-header,
     .ragna-ribbon { min-width: 120px; font-size: 11px; padding: 8px 16px; }
    .nav-header,
     .ragnawiki-hero-title { font-size: 24px; }
    .stat-header,
    .substat-header,
    .trait-header,
    .status-header,
    .comparison-header,
    .system-header,
    .plan-header,
    .benefits-header,
    .ticket-header {
        padding: 12px 15px;
        font-size: 16px;
    }
   
    .ticket-content,
    .quest-content {
        padding: 15px;
    }
   
    .ticket-header {
        padding: 15px;
        font-size: 16px;
    }
   
    .info-card .card-content > div {
        grid-template-columns: 1fr;
        gap: 20px;
    }
   
    .quest-header {
        padding: 12px 15px;
        font-size: 14px;
    }
   
    .quest-content {
        padding: 15px;
    }
   
    .compact-quest-list > li {
        padding: 12px;
    }
   
    .compact-quest-list > li strong {
        font-size: 14px;
    }
   
     .compact-quest-list ul li {
        font-size: 13px;
    }
}
 
/* === Print Styles === */
@media print {
    .wikitable {
        box-shadow: none;
        border: 1px solid #000;
    }
   
    a {
        color: #000;
        text-decoration: underline;
    }
   
    .quest-card {
        box-shadow: none;
        border: 1px solid #000;
    }
   
    .quest-header {
        background: #f0f0f0 !important;
        color: #000 !important;
        text-shadow: none !important;
    }
   
    .quest-rewards,
    .quest-unlocks,
    .quest-items {
        background: #f8f8f8 !important;
        border-color: #ccc !important;
    }
}
 
/* General table and cell styling for the "wikitable" class */
.wikitable {
    background-color: #f9f9f9;
    color: #000;
    border: 1px solid #a2a9b1;
    border-collapse: collapse;
    margin: 1em 0;
    width: 100%; /* Ensures the table takes full width by default */
}
 
.wikitable th {
    font-weight: bold;
    background-color: #f2f2f2;
    border: 1px solid #a2a9b1;
    padding: 0.5em 1em;
    text-align: center; /* Center-aligns the header text */
}
 
.wikitable td {
    padding: 0.5em 1em;
    border: 1px solid #a2a9b1;
    vertical-align: top;
}
 
/* Specific styling for the summary table's cells, as seen in your example */
.wikitable[align="right"] {
    float: right;
    margin: 0.5em 0 1em 1em;
    width: 25%;
    font-size: 90%;
    line-height: 1.3;
}
 
/* Header background colors based on your provided table */
.wikitable th[style*="background:#dfefff;"] {
    background-color: #dfefff;
}
 
.wikitable th[style*="background:#e2f0cb;"] {
    background-color: #e2f0cb;
}
 
.wikitable th[style*="background:#ffe8cc;"] {
    background-color: #ffe8cc;
}
 
.wikitable th[style*="background:#fff3e0;"] {
    background-color: #fff3e0;
}
 
.wikitable th[style*="background:#f0f0f0;"] {
    background-color: #f0f0f0;
}
 
/* Styling for the quest start/continuation and rewards boxes */
div[style*="border-left:4px solid"] {
    padding: 10px;
    margin-bottom: 15px;
}
 
div[style*="border-left:4px solid #ffcc00;"] {
    background-color: #f8f8f8;
    border-left: 4px solid #ffcc00;
}
 
div[style*="border-left:4px solid #3399ff;"] {
    background-color: #e8f4f8;
    border-left: 4px solid #3399ff;
    margin-top: 10px;
}
 
/* Styling for the highlighted /navi coordinates */
span[style*="background-color:#ffff99;"] {
    background-color: #ffff99;
}
 
/* General list styling */
ul {
    list-style-type: disc;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 20px;
}
 
/* Clearfix for floating elements */
div[style="clear:both;"] {
    clear: both;
}
}

Latest revision as of 23:53, 24 June 2026

/* ==========================================================================
   00. DESIGN TOKENS & SYSTEM VARIABLES
   Allows site-wide theme tweaks instantly from one central location.
   ========================================================================== */
:root {
    /* Brand Gradients & Accents */
    --ragna-grad-primary: linear-gradient(135deg, #ff6a00 0%, #f4b400 30%, #d93800 100%);
    --ragna-grad-accent: linear-gradient(135deg, #af011c, #d93800);
    --ragna-gold-text: #ffd700;
    
    /* Layout Variables */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(255, 106, 0, 0.15);
    --transition-smooth: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Global Semantic Colors */
    --bg-card-dark: #1e2a36;
    --border-light: rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   01. BASE ELEMENTS & TYPOGRAPHY CLEANUP
   ========================================================================== */
h2, h3 {
    overflow: visible !important;
    padding-top: 14px;
    margin-bottom: 12px;
    clear: both;
    font-family: system-ui, -apple-system, sans-serif;
}

code {
    transition: var(--transition-smooth);
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}
code:hover {
    filter: brightness(1.15);
}

/* ==========================================================================
   02. COMPONENT HERO & CONTAINERS
   ========================================================================== */
.ragnawiki-hero {
    background: var(--ragna-grad-primary);
    color: #ffffff;
    padding: 30px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 20px 0;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.ragnawiki-hero-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.5px;
}

.ragnawiki-hero-subtitle {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 0;
}

/* 
   ENHANCEMENT: Switched to CSS Grid. 
   Prevents dynamic flexing issues where elements stretch unevenly.
*/
.ragnawiki-grid,
.ragnawiki-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

/* ==========================================================================
   03. CARDS & PANELS
   ========================================================================== */
.ragnawiki-card,
.ragnawiki-nav-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-light);
}

.ragnawiki-card:hover,
.ragnawiki-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.ragnawiki-card-header,
.ragnawiki-nav-header {
    color: #ffffff;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.ragnawiki-card-content {
    padding: 18px;
}

/* ==========================================================================
   04. TABLES & DATA LISTS
   ========================================================================== */
.ragnawiki-list,
.ragnawiki-nav-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.ragnawiki-list tr td,
.ragnawiki-nav-table tr td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f5;
    vertical-align: middle;
    font-size: 13px;
}

.ragnawiki-list tr:last-child td,
.ragnawiki-nav-table tr:last-child td {
    border-bottom: none;
}

.ragnawiki-nav-table tr:nth-child(odd) td {
    background: rgba(240, 248, 255, 0.4);
}

.ragnawiki-nav-table tr:nth-child(even) td {
    background: #ffffff;
}

.ragna-value {
    font-weight: 700;
}

/* Modernized Global Wikipedia Tables to harmonize with your theme */
.wikitable {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.wikitable th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    padding: 14px 12px;
    font-weight: 700;
    font-size: 14px;
}

.wikitable td {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f5;
    font-size: 13px;
}

.wikitable tr:nth-child(even) {
    background: rgba(240, 248, 255, 0.4);
}

/* ==========================================================================
   05. ALERT BOXES, RIBBONS, HOVER WRAPPERS
   ========================================================================== */
.ragnawiki-tip-box, .tip-box,
.ragnawiki-warning-box {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin: 12px 0;
    border-left: 4px solid;
    transition: var(--transition-smooth);
}

.ragnawiki-tip-box, .tip-box {
    background: #fff5f5;
    border-left-color: #b22222;
    color: #801010;
}

.ragnawiki-warning-box {
    background: #fffbeb;
    border-left-color: #f39c12;
    color: #8a5100;
}

.ragnawiki-tip-box:hover, .tip-box:hover, .ragnawiki-warning-box:hover {
    transform: translateX(4px);
}

/* Universal Clean Hover Interactions for Content Modules */
.hero-section, .quick-overview > div, .info-card, 
.command-examples > div, .example-box, .command-section > div, 
.examples-grid > div, .item-types-grid > div {
    transition: var(--transition-smooth);
}

.hero-section:hover, .quick-overview > div:hover, .info-card:hover,
.command-examples > div:hover, .command-section > div:hover, .examples-grid > div:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.example-box:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
}

.item-types-grid > div:hover {
    transform: scale(1.03);
}

/* Ribbons Layout */
.ragna-ribbon-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
}

.ragna-ribbon {
    background: #2c3e50;
    color: var(--ragna-gold-text);
    padding: 10px 24px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%, 6% 0);
    border-top: 2px solid var(--ragna-gold-text);
    border-bottom: 2px solid var(--ragna-gold-text);
    transition: var(--transition-smooth);
}

.ragna-ribbon:hover {
    transform: translateY(-2px) scale(1.03);
    background: #34495e;
    color: #ffffff;
}

/* ==========================================================================
   6. FIX: USER-FRIENDLY COLLAPSIBLE DESIGN
   ========================================================================== */
.mw-collapsible {
    display: block !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    background: transparent !important;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
}

/* Style the text toggle link nicely so users see it clearly */
.mw-collapsible-toggle {
    display: inline-block !important;
    float: none !important;
    text-align: left !important;
    margin-bottom: 12px;
    padding: 6px 14px !important;
    background: #f1f3f5;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 6px;
    font-size: 13px !important;
    font-weight: 600;
    color: #FF6A00 !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.mw-collapsible-toggle:hover {
    background: #FF6A00;
    color: #ffffff !important;
    border-color: #FF6A00;
    text-decoration: none !important;
}

.mw-collapsible-content {
    padding: 5px 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ==========================================================================
   07. MEDIAWIKI RE-ENGINEERED COLLAPSIBLES
   ========================================================================== */
.mw-collapsible {
    display: block !important;
    width: 100% !important;
    margin-bottom: 24px !important;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-light);
}

.mw-collapsible:hover {
    box-shadow: var(--shadow-lg);
}

.mw-collapsible .ragnawiki-card-header {
    display: block !important;
    width: 100% !important;
    padding: 16px 24px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    position: relative !important;
    font-size: 16px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

.mw-collapsible .ragnawiki-card-header:hover {
    filter: brightness(1.08);
    padding-left: 28px !important;
}

.mw-collapsible .ragnawiki-card-header::after {
    content: "▼";
    float: right;
    font-size: 11px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.15);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mw-collapsible.expanded .ragnawiki-card-header::after {
    transform: rotate(180deg);
}

.mw-collapsible-content {
    padding: 24px !important;
    background: #fafafb !important;
}

/* Collapsible Content Deep Nesting Fixes */
.mw-collapsible-content .ragnawiki-card {
    border: 1px solid var(--border-light);
    margin-bottom: 0;
}
.mw-collapsible-content .ragnawiki-card-header {
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-bottom: none !important;
}
.mw-collapsible-content .ragnawiki-card-header::after { display: none !important; }

/* Hide native MediaWiki toggle strings safely */
.mw-collapsible-toggle, .mw-collapsible-toggle-default, .mw-collapsible-text {
    display: none !important;
}

/* ==========================================================================
   08. COLOR ATTRIBUTE THEMES (COLOR TOKENS)
   ========================================================================== */
.ragna-blue   { background: linear-gradient(135deg, #3498db, #2980b9) !important; color: #ffffff !important; }
.ragna-green  { background: linear-gradient(135deg, #2ecc71, #27ae60) !important; color: #ffffff !important; }
.ragna-red    { background: linear-gradient(135deg, #e74c3c, #c0392b) !important; color: #ffffff !important; }
.ragna-purple { background: linear-gradient(135deg, #9b59b6, #8e44ad) !important; color: #ffffff !important; }
.ragna-orange { background: linear-gradient(135deg, #e67e22, #d35400) !important; color: #ffffff !important; }
.ragna-teal   { background: linear-gradient(135deg, #16a085, #1abc9c) !important; color: #ffffff !important; }
.ragna-pink   { background: linear-gradient(135deg, #f48fb1, #f06292) !important; color: #ffffff !important; }
.ragna-cyan   { background: linear-gradient(135deg, #00bcd4, #0097a7) !important; color: #ffffff !important; }
.ragna-brown  { background: linear-gradient(135deg, #795548, #5d4037) !important; color: #ffffff !important; }
.ragna-dark   { background: linear-gradient(135deg, #2c3e50, #34495e) !important; color: #ffffff !important; }
.ragna-gray   { background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important; color: #ffffff !important; }

.ragna-gold   { background: linear-gradient(135deg, #ffd700, #f1c40f) !important; color: #222222 !important; }
.ragna-yellow { background: linear-gradient(135deg, #ffeb3b, #fbc02d) !important; color: #222222 !important; }
.ragna-silver { background: linear-gradient(135deg, #bdc3c7, #95a5a6) !important; color: #222222 !important; }

/* Apply Text Theme Color Corrections automatically to dark-text variants */
.ragna-gold::after, .ragna-yellow::after, .ragna-silver::after { color: #222222 !important; }

/* ==========================================================================
   08b. FLOATING MENU & BACK TO TOP BUTTON (DESKTOP CORE)
   ========================================================================== */
.floating-menu {
    position: fixed !important;
    z-index: 9999 !important;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: max-height 0.25s ease, opacity 0.2s ease;
    overflow: hidden;
    width: 220px;
}

.floating-menu-header {
    background: #2c3e50;
    color: #ffffff;
    padding: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.floating-menu-items {
    max-height: 400px;
    overflow-y: auto;
}

.floating-menu-items a {
    display: block;
    padding: 10px 14px;
    color: #333333 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f0f5;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.floating-menu-items a:hover {
    background: #f8f9fa;
    padding-left: 18px;
    color: #FF6A00 !important;
}

.floating-menu-items a.reading-now {
    background: rgba(255, 106, 0, 0.1);
    color: #FF6A00 !important;
    font-weight: bold;
    border-left: 3px solid #FF6A00;
}

/* Floating Menu Toggle Trigger (Mobile) */
.floating-menu-toggle {
    position: fixed !important;
    bottom: 25px !important;
    left: 25px !important;
    z-index: 9999 !important;
    background: #2c3e50;
    color: #ffffff;
    width: 45px;
    height: 45px;
    display: none; /* JS toggles visibility */
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    font-size: 20px;
}

/* Back To Top Layout Configuration */
.back-to-top-fixed {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    z-index: 9998 !important;
}

.back-to-top-fixed a {
    display: block;
    padding: 11px 16px;
    background: #2e7d32;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.back-to-top-fixed a:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .floating-menu-toggle { display: flex; }
}

/* Collapsible Toggle Action for the Floating Menu */
.floating-menu.collapsed {
    max-height: 42px !important; /* Matches the header height exactly */
}

.floating-menu.collapsed .floating-menu-items {
    opacity: 0;
    pointer-events: none;
}

.floating-menu.collapsed .floating-menu-header .arrow {
    transform: rotate(-90deg);
}

.floating-menu-header .arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    margin-left: 8px;
    font-size: 10px;
}

/* ==========================================================================
   09. ULTRA RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
    .floating-menu { min-width: 170px; }
}

@media (max-width: 768px) {
    .ragnawiki-grid, .ragnawiki-nav-grid {
        grid-template-columns: 1fr;
    }
    .floating-menu {
        left: -240px;
        top: 15px;
        width: 210px;
        max-height: 75vh;
        overflow-y: auto;
    }
    .floating-menu.mobile-visible { left: 15px; }
    .drag-handle { display: none; }
    .back-to-top-fixed a { width: 48px; height: 48px; }
    .mw-collapsible .ragnawiki-card-header { padding: 14px 20px !important; font-size: 15px !important; }
    .mw-collapsible-content { padding: 16px !important; }
}

@media (max-width: 600px) {
    .ragna-ribbon { min-width: 120px; font-size: 11px; padding: 8px 16px; }
    .ragnawiki-hero-title { font-size: 24px; }
}