MediaWiki:Common.css: Difference between revisions

From Toon Wiki
(Add comprehensive modern styling with family tree and mobile support)
(Enhanced styling)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ============================================
/* ============================================
   TOON WIKI - MODERN RESPONSIVE STYLING
   TOON WIKI - AVATAR WIKI STYLE
  Modern, Clean, Engaging Design
   ============================================ */
   ============================================ */


/* ===== CSS Variables ===== */
:root {
:root {
     --tw-primary: #1a4d7a;
     --aw-brown-dark: #611e03;
     --tw-primary-light: #2c5aa0;
     --aw-brown-medium: #8b4513;
     --tw-secondary: #f8f9fa;
     --aw-brown-light: #c8651d;
     --tw-border: #c8ccd1;
     --aw-cream: #fff8dc;
     --tw-text: #202122;
     --aw-cream-dark: #f5ecd3;
     --tw-text-muted: #72777d;
     --aw-text: #3a3a3a;
     --tw-link: #0645ad;
     --aw-text-light: #666;
     --tw-link-new: #ba0000;
     --aw-border: #d4c4a8;
     --tw-air: #FF9900;
     --aw-air: #ff9900;
     --tw-water: #003399;
     --aw-water: #1e90ff;
     --tw-earth: #006633;
     --aw-earth: #228b22;
     --tw-fire: #AA0000;
     --aw-fire: #cc0000;
     --tw-radius: 8px;
     --aw-radius: 6px;
     --tw-shadow: 0 2px 8px rgba(0,0,0,0.1);
     --aw-shadow: 0 2px 6px rgba(0,0,0,0.1);
    --tw-transition: 0.2s ease;
}
}


/* ===== Base Improvements ===== */
/* ===== Base Layout ===== */
body {
    background: linear-gradient(135deg, #f8f5f0 0%, #f0ebe3 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.mw-body {
    background: var(--aw-cream);
    border: 1px solid var(--aw-border);
    border-radius: var(--aw-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
 
/* ===== Typography ===== */
.mw-parser-output {
.mw-parser-output {
    font-size: 15px;
     line-height: 1.7;
     line-height: 1.7;
     font-size: 16px;
     color: var(--aw-text);
}
}
.mw-parser-output p {
.mw-parser-output p {
     margin-bottom: 1em;
     margin-bottom: 1em;
}
}
.mw-body-content a:not(.new) {
.mw-parser-output a {
     color: var(--tw-link);
     color: var(--aw-brown-medium);
    text-decoration: none;
     transition: all 0.15s ease;
    border-bottom: 1px solid transparent;
     transition: border-color var(--tw-transition);
}
}
.mw-body-content a:not(.new):hover {
.mw-parser-output a:hover {
     border-bottom-color: var(--tw-link);
     color: var(--aw-brown-dark);
}
}
a.new {
.mw-parser-output a.new {
     color: var(--tw-link-new);
     color: #ba0000;
}
}


/* ===== Quote Templates ===== */
/* ===== Page Title ===== */
.quote {
.mw-page-title-main {
    border-radius: var(--tw-radius) !important;
     color: var(--aw-brown-dark);
     box-shadow: var(--tw-shadow);
     font-weight: 700;
     margin: 1.5em auto !important;
     font-size: 1.8em;
    max-width: 600px;
     letter-spacing: -0.02em;
     font-size: 1.05em;
     transition: transform var(--tw-transition);
}
}
.quote:hover {
 
     transform: translateY(-2px);
/* ===== Section Headers ===== */
.mw-parser-output h2 {
    border-bottom: 3px solid var(--aw-brown-dark);
    color: var(--aw-brown-dark);
    font-size: 1.5em;
    font-weight: 600;
    padding-bottom: 8px;
    margin: 2em 0 1em 0;
}
.mw-parser-output h3 {
     color: var(--aw-brown-dark);
    font-size: 1.2em;
    font-weight: 600;
    border-bottom: 2px solid var(--aw-border);
    padding-bottom: 6px;
    margin: 1.5em 0 0.8em 0;
}
.mw-parser-output h4 {
    color: var(--aw-brown-medium);
    font-weight: 600;
}
 
/* ===== Quote Box ===== */
.quote-box {
    background: linear-gradient(135deg, var(--aw-cream-dark) 0%, var(--aw-cream) 100%);
    border: none;
    border-left: 5px solid var(--aw-brown-dark);
    border-radius: 0 var(--aw-radius) var(--aw-radius) 0;
    color: var(--aw-text);
    padding: 20px 25px;
    margin: 1.5em 0;
    box-shadow: var(--aw-shadow);
    position: relative;
    overflow: hidden;
}
}
.quote a {
.quote-box::before {
     color: inherit !important;
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 80px;
     color: rgba(139, 69, 19, 0.1);
    font-family: Georgia, serif;
}
}
.quote_link_color a,
.quote-box p {
.quote_link_color_light a {
    position: relative;
     text-decoration: underline;
     z-index: 1;
    margin: 0;
}
}
.quote-air { border-left-color: var(--aw-air); }
.quote-air::before { color: rgba(255, 153, 0, 0.15); }
.quote-water { border-left-color: var(--aw-water); }
.quote-water::before { color: rgba(30, 144, 255, 0.15); }
.quote-earth { border-left-color: var(--aw-earth); }
.quote-earth::before { color: rgba(34, 139, 34, 0.15); }
.quote-fire { border-left-color: var(--aw-fire); }
.quote-fire::before { color: rgba(204, 0, 0, 0.15); }


/* ===== Infobox Styles ===== */
/* ===== Character Infobox ===== */
.infobox,
.character-infobox {
.character-infobox {
     border-radius: var(--tw-radius) !important;
    background: white;
     box-shadow: var(--tw-shadow);
     border: 2px solid var(--aw-border);
    border-radius: 8px;
     box-shadow: 0 4px 16px rgba(0,0,0,0.1);
     overflow: hidden;
     overflow: hidden;
     font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
     font-size: 13px;
}
.character-infobox > div:first-child {
    background: linear-gradient(135deg, var(--aw-brown-dark) 0%, #7a2a08 100%);
    color: white;
    font-size: 1.25em;
    padding: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.character-infobox table {
    border-collapse: collapse;
}
}
.character-infobox th {
.character-infobox th {
    background: var(--aw-cream);
    color: var(--aw-brown-dark);
     font-weight: 600;
     font-weight: 600;
     color: var(--tw-text);
     padding: 8px 12px;
    border-bottom: 1px solid var(--aw-border);
    text-align: left;
    vertical-align: top;
}
}
.character-infobox td {
.character-infobox td {
     color: #444;
    background: white;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}
.character-infobox tr:hover th,
.character-infobox tr:hover td {
    background: var(--aw-cream-dark);
}
.character-infobox a {
     color: var(--aw-brown-medium);
}
 
/* ===== Infobox Gallery as Tabs ===== */
.infobox-image {
    background: #f5f5f5;
    padding: 0;
    position: relative;
}
.infobox-image .gallery {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}
.infobox-image .gallerybox {
    width: 100% !important;
    margin: 0;
    border: none;
    border-radius: 0;
}
/* Hide all gallery items except first by default */
.infobox-image .gallerybox:not(:first-child) {
    display: none;
}
/* Show tab when active */
.infobox-image .gallerybox.active {
    display: block !important;
}
.infobox-image .gallerybox .thumb {
    width: 100%;
    height: auto;
    padding: 15px;
    background: white;
}
}
.character-infobox img {
.infobox-image .gallerybox img {
     max-width: 100%;
     max-width: 100%;
     height: auto;
     height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}
.infobox-image .gallerytext {
    display: none;
}
}


/* ===== Family Tree Styles ===== */
/* Tab Navigation */
.familytree {
.infobox-tabs {
     margin: 1.5em 0;
     display: flex;
    padding: 1em;
     background: var(--aw-cream);
     background: linear-gradient(135deg, #fafbfc, #f0f2f5);
     border-top: 1px solid var(--aw-border);
     border: 1px solid var(--tw-border);
}
     border-radius: var(--tw-radius);
.infobox-tabs .tab-btn {
     overflow-x: auto;
    flex: 1;
     box-shadow: var(--tw-shadow);
    padding: 10px 8px;
    text-align: center;
     font-size: 12px;
    font-weight: 600;
    color: var(--aw-text-light);
     background: var(--aw-cream);
    border: none;
     border-right: 1px solid var(--aw-border);
    cursor: pointer;
    transition: all 0.2s ease;
}
.infobox-tabs .tab-btn:last-child {
    border-right: none;
}
}
.familytree table {
.infobox-tabs .tab-btn:hover {
     border-collapse: collapse;
     background: var(--aw-cream-dark);
    color: var(--aw-brown-dark);
}
}
.family-tree-table-cell {
.infobox-tabs .tab-btn.active {
     padding: 0;
     background: var(--aw-brown-dark);
     vertical-align: middle;
     color: white;
}
}
.family-tree-line-table {
 
     width: 30px;
/* ===== Icons Bar ===== */
     border-collapse: collapse;
#icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    background: var(--aw-cream-dark);
     border: 1px solid var(--aw-border);
     border-radius: var(--aw-radius);
    padding: 8px 12px;
    margin-bottom: 1em;
}
}
.family-tree-line {
#icons img {
     width: 15px;
     transition: transform 0.2s ease;
    height: 15px;
    background: transparent;
}
}
.family-tree-line-solid-right {
#icons img:hover {
     border-right: 2px solid #666;
     transform: scale(1.2);
}
}
.family-tree-line-solid-bottom {
 
     border-bottom: 2px solid #666;
/* ===== Table of Contents ===== */
.toc,
.mw-toc {
    background: linear-gradient(135deg, var(--aw-cream-dark) 0%, var(--aw-cream) 100%);
    border: 1px solid var(--aw-border);
     border-radius: var(--aw-radius);
    padding: 15px 20px;
    margin: 1.5em 0;
    box-shadow: var(--aw-shadow);
    display: inline-block;
    max-width: 350px;
}
}
.family-tree-line-dashed-right {
.toc a,
     border-right: 2px dashed #999;
.mw-toc a {
    color: var(--aw-brown-medium);
     text-decoration: none;
}
}
.family-tree-line-dashed-bottom {
.toc a:hover,
     border-bottom: 2px dashed #999;
.mw-toc a:hover {
    color: var(--aw-brown-dark);
     text-decoration: underline;
}
}
.family-tree-element {
.toctitle h2,
     padding: 8px 12px;
.mw-toc-heading {
    background: white;
     color: var(--aw-brown-dark);
    border: 2px solid var(--tw-primary);
     border: none;
     border-radius: 6px;
     font-size: 1em;
     text-align: center;
     font-weight: 700;
     font-weight: 500;
     margin: 0 0 10px 0;
     white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all var(--tw-transition);
}
}
.family-tree-element:hover {
.toc ul,
     background: var(--tw-primary);
.mw-toc ul {
    color: white;
     margin: 0;
     transform: scale(1.05);
     padding-left: 1.5em;
}
}
.family-tree-element a {
.toc li,
     color: inherit !important;
.mw-toc li {
    text-decoration: none !important;
     padding: 3px 0;
}
}


/* ===== Image Improvements ===== */
/* ===== Thumbnails & Figures ===== */
figure.mw-halign-left,
figure.mw-halign-left,
figure.mw-halign-right {
figure.mw-halign-right,
     border-radius: var(--tw-radius);
.thumb {
    background: white;
    border: 1px solid var(--aw-border);
     border-radius: var(--aw-radius);
    box-shadow: var(--aw-shadow);
     overflow: hidden;
     overflow: hidden;
     box-shadow: var(--tw-shadow);
     transition: box-shadow 0.2s ease;
    transition: transform var(--tw-transition);
}
}
figure.mw-halign-left:hover,
figure.mw-halign-left:hover,
figure.mw-halign-right:hover {
figure.mw-halign-right:hover,
     transform: translateY(-4px);
.thumb:hover {
     box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
}
figure figcaption {
figure figcaption,
     font-size: 0.9em;
.thumbcaption {
     color: var(--tw-text-muted);
     background: var(--aw-cream-dark);
     color: var(--aw-text);
    font-size: 12px;
    line-height: 1.4;
     padding: 8px 12px;
     padding: 8px 12px;
     background: var(--tw-secondary);
     border-top: 1px solid var(--aw-border);
    text-align: center;
}
figure img {
    display: block;
    max-width: 100%;
    height: auto;
}
}


/* ===== Gallery Improvements ===== */
/* ===== Standard Gallery ===== */
.gallery {
.gallery {
    margin: 1.5em 0;
     display: flex;
     display: flex;
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 10px;
     gap: 10px;
     justify-content: center;
     justify-content: flex-start;
}
}
.gallerybox {
.gallery .gallerybox {
     background: white;
     background: white;
     border: 1px solid var(--tw-border);
     border: 1px solid var(--aw-border);
     border-radius: var(--tw-radius);
     border-radius: var(--aw-radius);
     overflow: hidden;
     overflow: hidden;
     transition: all var(--tw-transition);
     transition: all 0.2s ease;
}
}
.gallerybox:hover {
.gallery .gallerybox:hover {
     box-shadow: var(--tw-shadow);
     box-shadow: 0 4px 12px rgba(0,0,0,0.12);
     transform: translateY(-4px);
     transform: translateY(-2px);
}
}
.gallerytext {
.gallery .gallerytext {
     font-size: 0.85em;
    background: var(--aw-cream-dark);
     padding: 8px;
    color: var(--aw-text);
     font-size: 11px;
     padding: 6px 8px;
     text-align: center;
     text-align: center;
    background: var(--tw-secondary);
}
}


/* ===== Section Headers ===== */
/* ===== Family Tree ===== */
h2 {
.familytree {
     border-bottom: 3px solid var(--tw-primary);
    background: var(--aw-cream-dark);
     padding-bottom: 0.5em;
    border: 1px solid var(--aw-border);
     margin-top: 2em;
     border-radius: var(--aw-radius);
     padding: 15px;
     overflow-x: auto;
}
}
h2 .mw-headline {
.family-tree-element {
     color: var(--tw-primary);
    background: white;
     font-size: 1.5em;
    border: 2px solid var(--aw-brown-dark);
     border-bottom: none;
    border-radius: 4px;
    padding: 5px 10px;
     color: var(--aw-text);
     transition: all 0.2s ease;
     white-space: nowrap;
}
}
h3 .mw-headline {
.family-tree-element:hover {
     color: var(--tw-primary-light);
     background: var(--aw-brown-dark);
     font-size: 1.2em;
     color: white;
}
}
 
.family-tree-element a {
/* ===== TOC Improvements ===== */
     color: var(--aw-brown-medium);
.toc {
    background: linear-gradient(135deg, #fff, var(--tw-secondary));
     border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    padding: 1.5em;
    box-shadow: var(--tw-shadow);
    max-width: 400px;
}
}
.toctitle h2 {
.family-tree-element:hover a {
    border: none;
     color: white;
    margin: 0 0 0.5em 0;
}
 
/* ===== Imported Content Notice ===== */
.mw-parser-output > div:first-child {
     border-radius: var(--tw-radius);
    border-left: 4px solid var(--tw-primary);
}
}
.family-tree-line-solid-right { border-right: 2px solid var(--aw-brown-medium); }
.family-tree-line-solid-bottom { border-bottom: 2px solid var(--aw-brown-medium); }
.family-tree-line-solid-left { border-left: 2px solid var(--aw-brown-medium); }
.family-tree-line-solid-top { border-top: 2px solid var(--aw-brown-medium); }


/* ===== Reference Styling ===== */
/* ===== References ===== */
.reference {
.references,
    font-size: 0.8em;
.mw-references-wrap {
    vertical-align: super;
     background: var(--aw-cream-dark);
    line-height: 0;
     border: 1px solid var(--aw-border);
}
     border-radius: var(--aw-radius);
.references {
    font-size: 13px;
     font-size: 0.9em;
    padding: 15px 20px;
    color: var(--tw-text-muted);
     margin-top: 1.5em;
     background: var(--tw-secondary);
    padding: 1em;
     border-radius: var(--tw-radius);
     margin-top: 2em;
}
}
.references li {
.reference a {
     margin-bottom: 0.5em;
     color: var(--aw-brown-medium);
}
}


/* ===== Category Links ===== */
/* ===== Categories ===== */
#catlinks {
#catlinks {
     background: linear-gradient(135deg, #fff, var(--tw-secondary));
     background: var(--aw-cream-dark);
     border: 1px solid var(--tw-border);
     border: 1px solid var(--aw-border);
     border-radius: var(--tw-radius);
     border-radius: var(--aw-radius);
    padding: 1em 1.5em;
     margin-top: 2em;
     margin-top: 3em;
     padding: 12px 15px;
    box-shadow: var(--tw-shadow);
}
 
/* ===== Icons Template ===== */
#icons {
    float: right;
    margin: 0 0 1em 1em;
     padding: 8px 12px;
    background: white;
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    box-shadow: var(--tw-shadow);
    display: flex;
    gap: 4px;
    align-items: center;
}
#icons img {
    transition: transform var(--tw-transition);
}
}
#icons img:hover {
#catlinks a {
     transform: scale(1.2);
     color: var(--aw-brown-medium);
}
}


/* ===== Main article template ===== */
/* ===== Imported Content Notice ===== */
.mw-parser-output > div[style*="font-style: italic"] {
.mw-parser-output > div:first-child {
     background: var(--tw-secondary);
     margin-bottom: 1em;
    padding: 8px 16px;
    border-radius: var(--tw-radius);
    border-left: 4px solid var(--tw-primary);
    margin: 1em 0;
}
}


/* ===== Smooth Scrolling ===== */
/* ===== Disambiguation ===== */
html {
.mw-parser-output > dl > dd {
     scroll-behavior: smooth;
     font-style: italic;
    color: var(--aw-text-light);
    margin-bottom: 1em;
}
}


/* ============================================
/* ===== Mobile Responsive ===== */
  MOBILE RESPONSIVE DESIGN
  ============================================ */
@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {
    .mw-parser-output {
        font-size: 15px;
        line-height: 1.6;
    }
   
    /* Stack infobox on mobile */
    .infobox,
     .character-infobox {
     .character-infobox {
         float: none !important;
         float: none !important;
         width: 100% !important;
         width: 100% !important;
         margin: 1em 0 !important;
        max-width: 400px !important;
         margin: 1em auto !important;
     }
     }
   
    /* Stack images on mobile */
     figure.mw-halign-left,
     figure.mw-halign-left,
     figure.mw-halign-right {
     figure.mw-halign-right {
         float: none !important;
         float: none !important;
        margin: 1em auto !important;
        max-width: 100% !important;
    }
    .quote-box {
         margin: 1em 0 !important;
         margin: 1em 0 !important;
         max-width: 100%;
         padding: 15px !important;
     }
     }
   
     .quote-box::before {
    /* Full-width quotes on mobile */
         font-size: 50px;
     .quote {
         margin: 1em 0 !important;
        max-width: 100%;
     }
     }
   
    /* Icons wrap on mobile */
     #icons {
     #icons {
        float: none;
        margin: 0 0 1em 0;
        flex-wrap: wrap;
         justify-content: center;
         justify-content: center;
     }
     }
      
     .toc,
    /* TOC full width on mobile */
     .mw-toc {
     .toc {
         max-width: 100%;
         max-width: 100%;
    }
   
    /* Family tree scroll on mobile */
    .familytree {
         display: block;
         display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
     }
     }
      
     .mw-parser-output h2 {
    /* Better touch targets */
         font-size: 1.3em;
    a {
        padding: 2px 0;
    }
   
    /* Larger section headers on mobile */
    h2 {
         font-size: 1.4em;
    }
    h3 {
        font-size: 1.2em;
     }
     }
}
}


/* ============================================
/* ===== Smooth Scrolling ===== */
  ENGAGEMENT & ADDICTIVE FEATURES
html {
  ============================================ */
     scroll-behavior: smooth;
 
/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}
img[loading] {
     opacity: 0;
}
}


/* Reading progress indicator */
/* ===== Selection Color ===== */
.mw-parser-output::before {
::selection {
    content: '';
     background: var(--aw-brown-light);
    position: fixed;
     color: white;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
     background: linear-gradient(90deg, var(--tw-air), var(--tw-water), var(--tw-earth), var(--tw-fire));
    z-index: 9999;
     animation: none;
}
}


/* Highlight current section in TOC */
/* ===== Focus States for Accessibility ===== */
.vector-toc-link:hover {
a:focus,
     background: var(--tw-secondary);
button:focus {
     border-radius: 4px;
     outline: 2px solid var(--aw-brown-dark);
     outline-offset: 2px;
}
}


/* Engaging hover effects */
/* ===== Print Styles ===== */
.mw-body-content a:not(.new):not(.reference):hover {
@media print {
     background: rgba(26, 77, 122, 0.1);
     .toc,
     border-radius: 2px;
     #icons,
    padding: 0 2px;
     .infobox-tabs {
     margin: 0 -2px;
        display: none !important;
}
     }
 
     .character-infobox {
/* Card-like sections */
        float: none !important;
.mw-parser-output h2 + p,
        width: 100% !important;
.mw-parser-output h3 + p {
        box-shadow: none !important;
    padding-left: 0.5em;
     }
     border-left: 2px solid transparent;
     transition: border-color var(--tw-transition);
}
.mw-parser-output h2 + p:hover,
.mw-parser-output h3 + p:hover {
    border-left-color: var(--tw-primary);
}
 
/* Animated list items */
.mw-parser-output ul li,
.mw-parser-output ol li {
    transition: transform var(--tw-transition);
}
.mw-parser-output ul li:hover,
.mw-parser-output ol li:hover {
     transform: translateX(4px);
}
 
/* Dark mode prep (can be enabled later) */
@media (prefers-color-scheme: dark) {
    /* Variables can be overridden here for dark mode */
}
}

Latest revision as of 23:17, 22 December 2025

/* ============================================
   TOON WIKI - AVATAR WIKI STYLE
   Modern, Clean, Engaging Design
   ============================================ */

:root {
    --aw-brown-dark: #611e03;
    --aw-brown-medium: #8b4513;
    --aw-brown-light: #c8651d;
    --aw-cream: #fff8dc;
    --aw-cream-dark: #f5ecd3;
    --aw-text: #3a3a3a;
    --aw-text-light: #666;
    --aw-border: #d4c4a8;
    --aw-air: #ff9900;
    --aw-water: #1e90ff;
    --aw-earth: #228b22;
    --aw-fire: #cc0000;
    --aw-radius: 6px;
    --aw-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ===== Base Layout ===== */
body {
    background: linear-gradient(135deg, #f8f5f0 0%, #f0ebe3 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.mw-body {
    background: var(--aw-cream);
    border: 1px solid var(--aw-border);
    border-radius: var(--aw-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ===== Typography ===== */
.mw-parser-output {
    font-size: 15px;
    line-height: 1.7;
    color: var(--aw-text);
}
.mw-parser-output p {
    margin-bottom: 1em;
}
.mw-parser-output a {
    color: var(--aw-brown-medium);
    transition: all 0.15s ease;
}
.mw-parser-output a:hover {
    color: var(--aw-brown-dark);
}
.mw-parser-output a.new {
    color: #ba0000;
}

/* ===== Page Title ===== */
.mw-page-title-main {
    color: var(--aw-brown-dark);
    font-weight: 700;
    font-size: 1.8em;
    letter-spacing: -0.02em;
}

/* ===== Section Headers ===== */
.mw-parser-output h2 {
    border-bottom: 3px solid var(--aw-brown-dark);
    color: var(--aw-brown-dark);
    font-size: 1.5em;
    font-weight: 600;
    padding-bottom: 8px;
    margin: 2em 0 1em 0;
}
.mw-parser-output h3 {
    color: var(--aw-brown-dark);
    font-size: 1.2em;
    font-weight: 600;
    border-bottom: 2px solid var(--aw-border);
    padding-bottom: 6px;
    margin: 1.5em 0 0.8em 0;
}
.mw-parser-output h4 {
    color: var(--aw-brown-medium);
    font-weight: 600;
}

/* ===== Quote Box ===== */
.quote-box {
    background: linear-gradient(135deg, var(--aw-cream-dark) 0%, var(--aw-cream) 100%);
    border: none;
    border-left: 5px solid var(--aw-brown-dark);
    border-radius: 0 var(--aw-radius) var(--aw-radius) 0;
    color: var(--aw-text);
    padding: 20px 25px;
    margin: 1.5em 0;
    box-shadow: var(--aw-shadow);
    position: relative;
    overflow: hidden;
}
.quote-box::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 80px;
    color: rgba(139, 69, 19, 0.1);
    font-family: Georgia, serif;
}
.quote-box p {
    position: relative;
    z-index: 1;
    margin: 0;
}
.quote-air { border-left-color: var(--aw-air); }
.quote-air::before { color: rgba(255, 153, 0, 0.15); }
.quote-water { border-left-color: var(--aw-water); }
.quote-water::before { color: rgba(30, 144, 255, 0.15); }
.quote-earth { border-left-color: var(--aw-earth); }
.quote-earth::before { color: rgba(34, 139, 34, 0.15); }
.quote-fire { border-left-color: var(--aw-fire); }
.quote-fire::before { color: rgba(204, 0, 0, 0.15); }

/* ===== Character Infobox ===== */
.character-infobox {
    background: white;
    border: 2px solid var(--aw-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
    font-size: 13px;
}
.character-infobox > div:first-child {
    background: linear-gradient(135deg, var(--aw-brown-dark) 0%, #7a2a08 100%);
    color: white;
    font-size: 1.25em;
    padding: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.character-infobox table {
    border-collapse: collapse;
}
.character-infobox th {
    background: var(--aw-cream);
    color: var(--aw-brown-dark);
    font-weight: 600;
    padding: 8px 12px;
    border-bottom: 1px solid var(--aw-border);
    text-align: left;
    vertical-align: top;
}
.character-infobox td {
    background: white;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}
.character-infobox tr:hover th,
.character-infobox tr:hover td {
    background: var(--aw-cream-dark);
}
.character-infobox a {
    color: var(--aw-brown-medium);
}

/* ===== Infobox Gallery as Tabs ===== */
.infobox-image {
    background: #f5f5f5;
    padding: 0;
    position: relative;
}
.infobox-image .gallery {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}
.infobox-image .gallerybox {
    width: 100% !important;
    margin: 0;
    border: none;
    border-radius: 0;
}
/* Hide all gallery items except first by default */
.infobox-image .gallerybox:not(:first-child) {
    display: none;
}
/* Show tab when active */
.infobox-image .gallerybox.active {
    display: block !important;
}
.infobox-image .gallerybox .thumb {
    width: 100%;
    height: auto;
    padding: 15px;
    background: white;
}
.infobox-image .gallerybox img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}
.infobox-image .gallerytext {
    display: none;
}

/* Tab Navigation */
.infobox-tabs {
    display: flex;
    background: var(--aw-cream);
    border-top: 1px solid var(--aw-border);
}
.infobox-tabs .tab-btn {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--aw-text-light);
    background: var(--aw-cream);
    border: none;
    border-right: 1px solid var(--aw-border);
    cursor: pointer;
    transition: all 0.2s ease;
}
.infobox-tabs .tab-btn:last-child {
    border-right: none;
}
.infobox-tabs .tab-btn:hover {
    background: var(--aw-cream-dark);
    color: var(--aw-brown-dark);
}
.infobox-tabs .tab-btn.active {
    background: var(--aw-brown-dark);
    color: white;
}

/* ===== Icons Bar ===== */
#icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    background: var(--aw-cream-dark);
    border: 1px solid var(--aw-border);
    border-radius: var(--aw-radius);
    padding: 8px 12px;
    margin-bottom: 1em;
}
#icons img {
    transition: transform 0.2s ease;
}
#icons img:hover {
    transform: scale(1.2);
}

/* ===== Table of Contents ===== */
.toc,
.mw-toc {
    background: linear-gradient(135deg, var(--aw-cream-dark) 0%, var(--aw-cream) 100%);
    border: 1px solid var(--aw-border);
    border-radius: var(--aw-radius);
    padding: 15px 20px;
    margin: 1.5em 0;
    box-shadow: var(--aw-shadow);
    display: inline-block;
    max-width: 350px;
}
.toc a,
.mw-toc a {
    color: var(--aw-brown-medium);
    text-decoration: none;
}
.toc a:hover,
.mw-toc a:hover {
    color: var(--aw-brown-dark);
    text-decoration: underline;
}
.toctitle h2,
.mw-toc-heading {
    color: var(--aw-brown-dark);
    border: none;
    font-size: 1em;
    font-weight: 700;
    margin: 0 0 10px 0;
}
.toc ul,
.mw-toc ul {
    margin: 0;
    padding-left: 1.5em;
}
.toc li,
.mw-toc li {
    padding: 3px 0;
}

/* ===== Thumbnails & Figures ===== */
figure.mw-halign-left,
figure.mw-halign-right,
.thumb {
    background: white;
    border: 1px solid var(--aw-border);
    border-radius: var(--aw-radius);
    box-shadow: var(--aw-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
figure.mw-halign-left:hover,
figure.mw-halign-right:hover,
.thumb:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
figure figcaption,
.thumbcaption {
    background: var(--aw-cream-dark);
    color: var(--aw-text);
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 12px;
    border-top: 1px solid var(--aw-border);
}

/* ===== Standard Gallery ===== */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}
.gallery .gallerybox {
    background: white;
    border: 1px solid var(--aw-border);
    border-radius: var(--aw-radius);
    overflow: hidden;
    transition: all 0.2s ease;
}
.gallery .gallerybox:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.gallery .gallerytext {
    background: var(--aw-cream-dark);
    color: var(--aw-text);
    font-size: 11px;
    padding: 6px 8px;
    text-align: center;
}

/* ===== Family Tree ===== */
.familytree {
    background: var(--aw-cream-dark);
    border: 1px solid var(--aw-border);
    border-radius: var(--aw-radius);
    padding: 15px;
    overflow-x: auto;
}
.family-tree-element {
    background: white;
    border: 2px solid var(--aw-brown-dark);
    border-radius: 4px;
    padding: 5px 10px;
    color: var(--aw-text);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.family-tree-element:hover {
    background: var(--aw-brown-dark);
    color: white;
}
.family-tree-element a {
    color: var(--aw-brown-medium);
}
.family-tree-element:hover a {
    color: white;
}
.family-tree-line-solid-right { border-right: 2px solid var(--aw-brown-medium); }
.family-tree-line-solid-bottom { border-bottom: 2px solid var(--aw-brown-medium); }
.family-tree-line-solid-left { border-left: 2px solid var(--aw-brown-medium); }
.family-tree-line-solid-top { border-top: 2px solid var(--aw-brown-medium); }

/* ===== References ===== */
.references,
.mw-references-wrap {
    background: var(--aw-cream-dark);
    border: 1px solid var(--aw-border);
    border-radius: var(--aw-radius);
    font-size: 13px;
    padding: 15px 20px;
    margin-top: 1.5em;
}
.reference a {
    color: var(--aw-brown-medium);
}

/* ===== Categories ===== */
#catlinks {
    background: var(--aw-cream-dark);
    border: 1px solid var(--aw-border);
    border-radius: var(--aw-radius);
    margin-top: 2em;
    padding: 12px 15px;
}
#catlinks a {
    color: var(--aw-brown-medium);
}

/* ===== Imported Content Notice ===== */
.mw-parser-output > div:first-child {
    margin-bottom: 1em;
}

/* ===== Disambiguation ===== */
.mw-parser-output > dl > dd {
    font-style: italic;
    color: var(--aw-text-light);
    margin-bottom: 1em;
}

/* ===== Mobile Responsive ===== */
@media screen and (max-width: 768px) {
    .character-infobox {
        float: none !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 1em auto !important;
    }
    figure.mw-halign-left,
    figure.mw-halign-right {
        float: none !important;
        margin: 1em auto !important;
        max-width: 100% !important;
    }
    .quote-box {
        margin: 1em 0 !important;
        padding: 15px !important;
    }
    .quote-box::before {
        font-size: 50px;
    }
    #icons {
        justify-content: center;
    }
    .toc,
    .mw-toc {
        max-width: 100%;
        display: block;
    }
    .mw-parser-output h2 {
        font-size: 1.3em;
    }
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Selection Color ===== */
::selection {
    background: var(--aw-brown-light);
    color: white;
}

/* ===== Focus States for Accessibility ===== */
a:focus,
button:focus {
    outline: 2px solid var(--aw-brown-dark);
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
    .toc,
    #icons,
    .infobox-tabs {
        display: none !important;
    }
    .character-infobox {
        float: none !important;
        width: 100% !important;
        box-shadow: none !important;
    }
}