MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Reverted
Line 21: Line 21:
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:CodeMirror.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:CodeMirror.css&action=raw&ctype=text/css");


/* ===== TERRARIA-STYLE WIKI THEME ===== */
/* ===== GLOBAL STYLES ===== */
/* Reset and base styles */
:root {
:root {
     --primary-color: #1e3a5f;
     --stardew-blue: #2c5aa0;
     --secondary-color: #2a4d7e;
     --stardew-light-blue: #5a86c6;
     --accent-color: #4a9ae9;
     --stardew-gray: #f5f5f5;
     --text-primary: #e0e0e0;
     --stardew-border: #e0e0e0;
     --text-secondary: #b0b0b0;
     --stardew-text: #333333;
    --background-dark: #121212;
     --stardew-green: #4caf50;
    --background-medium: #1a1a1a;
     --stardew-orange: #ff9800;
    --background-light: #242424;
    --border-color: #333;
     --success-color: #4caf50;
     --warning-color: #ff9800;
    --danger-color: #f44336;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
}


/* Global body styling */
body {
body {
     background-color: var(--background-dark);
     background-color: #ffffff;
     color: var(--text-primary);
     color: #333333;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
     line-height: 1.6;
     line-height: 1.6;
     margin: 0;
     margin: 0;
Line 51: Line 43:
/* ===== HEADER RESTYLING ===== */
/* ===== HEADER RESTYLING ===== */
#mw-page-base {
#mw-page-base {
     background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
     background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
     height: 60px;
     height: auto;
    min-height: 60px;
}
}


#mw-head {
#mw-head {
     position: relative;
     background: #ffffff;
     z-index: 1000;
     border-bottom: 3px solid var(--stardew-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}
}


#mw-head-base {
#p-logo {
     height: 60px;
     text-align: center;
     background: transparent;
     margin: 10px 0;
}
}


/* Header container */
#p-logo a {
.mw-body, .parsoid-body {
    background: url('https://stardewvalleywiki.com/mediawiki/skins/stardew/images/logo.png') no-repeat center center;
     margin: 0;
    background-size: contain;
     padding: 0;
    width: 300px;
     background: var(--background-dark);
     height: 80px;
     display: block;
     margin: 0 auto;
}
}


/* Logo area */
/* Custom logo if you want to keep MB logo */
#p-logo {
#p-logo a.mb-logo {
     position: absolute;
     background: url('/wiki/Logo.png') no-repeat center center;
     left: 20px;
    background-size: contain;
     top: 10px;
     width: 300px;
     height: 80px;
}
}


#p-logo a {
#p-search {
     display: block;
     margin: 20px auto;
     background: none;
     max-width: 500px;
    padding: 0;
}
}


/* Search box */
#simpleSearch {
#simpleSearch {
     position: absolute;
     border: 2px solid var(--stardew-blue);
    right: 200px;
     border-radius: 25px;
    top: 15px;
    width: 300px;
     border-radius: 20px;
     overflow: hidden;
     overflow: hidden;
     box-shadow: var(--shadow);
     box-shadow: 0 2px 5px rgba(44, 90, 160, 0.1);
}
}


#searchInput {
#searchInput {
     width: 100%;
     border: none;
     padding: 10px 45px 10px 20px;
     padding: 12px 20px;
    background: var(--background-medium);
     font-size: 16px;
    border: 2px solid var(--accent-color);
     border-radius: 25px 0 0 25px;
    color: var(--text-primary);
     font-size: 14px;
     border-radius: 20px;
    transition: all 0.3s ease;
}
 
#searchInput:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(74, 154, 233, 0.3);
}
}


#searchButton, #mw-searchButton {
#searchButton {
    position: absolute;
     background: var(--stardew-blue);
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
     background: var(--accent-color);
     border: none;
     border: none;
     color: white;
     color: white;
    padding: 12px 25px;
    border-radius: 0 25px 25px 0;
     cursor: pointer;
     cursor: pointer;
    border-radius: 0 20px 20px 0;
    transition: background 0.3s ease;
}
#searchButton:hover, #mw-searchButton:hover {
    background: #3a89d9;
}
}


/* ===== SIDEBAR (LEFT NAVIGATION) ===== */
/* ===== SIDEBAR REDESIGN ===== */
#mw-panel {
#mw-panel {
     background: var(--background-medium);
     background: #f8f9fa;
     border-right: 1px solid var(--border-color);
     border-right: 1px solid #e9ecef;
    width: 220px;
     padding: 20px 0;
     padding-top: 80px;
     width: 230px;
     box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}
}


.portal {
.portal {
     margin: 0;
     margin: 0 0 25px 0;
     padding: 15px 0;
     padding: 0 15px;
    border-bottom: 1px solid var(--border-color);
}
}


.portal h3 {
.portal h3 {
     font-size: 16px;
     font-size: 16px;
     color: var(--accent-color);
     color: var(--stardew-blue);
     margin: 0 0 10px 15px;
     border-bottom: 2px solid var(--stardew-blue);
     padding: 0;
     padding-bottom: 8px;
     font-weight: 600;
     margin: 0 0 10px 0;
     text-transform: uppercase;
     text-transform: uppercase;
     letter-spacing: 0.5px;
     letter-spacing: 0.5px;
Line 168: Line 140:


.portal .body li {
.portal .body li {
     margin: 0;
     margin: 5px 0;
     padding: 0;
     padding: 0;
}
}


.portal .body li a {
.portal .body li a {
    color: #495057;
    text-decoration: none;
    padding: 8px 12px;
     display: block;
     display: block;
     padding: 8px 20px;
     border-radius: 4px;
    color: var(--text-secondary);
     transition: all 0.2s;
    text-decoration: none;
     transition: all 0.3s ease;
     font-size: 14px;
     font-size: 14px;
    border-left: 3px solid transparent;
}
}


.portal .body li a:hover {
.portal .body li a:hover {
     background: rgba(74, 154, 233, 0.1);
     background: var(--stardew-blue);
    color: var(--accent-color);
     color: white;
     border-left-color: var(--accent-color);
     transform: translateX(5px);
     padding-left: 25px;
}
}


.portal .body li a:active {
/* ===== CONTENT AREA ===== */
     background: rgba(74, 154, 233, 0.2);
#content {
     background: #ffffff;
    border: none;
    margin: 20px 20px 20px 250px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}
}


/* ===== MAIN CONTENT AREA ===== */
#firstHeading {
#content {
    color: var(--stardew-blue);
     margin-left: 240px;
    font-size: 36px;
     margin-right: 0;
    font-weight: 600;
     padding: 20px 40px;
    margin-bottom: 20px;
     max-width: none;
    padding-bottom: 15px;
     background: var(--background-dark);
    border-bottom: 3px solid var(--stardew-border);
}
 
/* ===== NAVIGATION BOXES (Stardew Style) ===== */
.mb-navigation-box {
     background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
     border-radius: 8px;
     padding: 20px;
     margin: 25px 0;
     box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
}


.mw-body {
.mb-navigation-box-header {
     border: none;
     background: var(--stardew-blue);
     margin: 0;
    color: white;
    padding: 12px 20px;
     margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
    font-size: 18px;
    font-weight: 600;
}
}


.mw-body .firstHeading {
.mb-navigation-grid {
     font-size: 36px;
     display: grid;
     color: var(--accent-color);
     grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin: 0 0 20px 0;
     gap: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
     font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
}


/* Content styling */
.mb-nav-item {
.mw-body-content {
     background: white;
     font-size: 16px;
    border: 1px solid #e0e0e0;
     line-height: 1.7;
    border-radius: 6px;
     padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: block;
}
}


.mw-body-content p {
.mb-nav-item:hover {
     margin: 15px 0;
     transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.1);
    border-color: var(--stardew-blue);
}
}


.mw-body-content h2 {
.mb-nav-icon {
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
    margin: 30px 0 20px 0;
     font-size: 24px;
     font-size: 24px;
    margin-bottom: 8px;
    color: var(--stardew-blue);
}
.mb-nav-title {
     font-weight: 600;
     font-weight: 600;
    margin-bottom: 5px;
    color: var(--stardew-blue);
}
}


.mw-body-content h3 {
.mb-nav-desc {
     color: var(--accent-color);
    font-size: 13px;
     margin: 25px 0 15px 0;
     color: #666;
     font-size: 20px;
}
     font-weight: 600;
 
/* ===== INFOBOX STYLING ===== */
.infobox {
    border: 2px solid var(--stardew-border);
    border-radius: 8px;
    background: #f9f9f9;
     margin: 20px;
     float: right;
     width: 300px;
}
}


.mw-body-content h4 {
.infobox-title {
     color: var(--text-secondary);
     background: linear-gradient(to right, var(--stardew-blue), var(--stardew-light-blue));
     margin: 20px 0 10px 0;
    color: white;
     padding: 12px 15px;
     font-size: 18px;
     font-size: 18px;
    font-weight: bold;
    border-radius: 6px 6px 0 0;
}
}


/* Links */
.infobox-image {
.mw-body-content a {
     padding: 15px;
     color: var(--accent-color);
     text-align: center;
     text-decoration: none;
     border-bottom: 1px solid var(--stardew-border);
     border-bottom: 1px dashed var(--accent-color);
    transition: all 0.3s ease;
}
}


.mw-body-content a:hover {
.infobox-data {
     color: #7ab8ff;
     padding: 15px;
    border-bottom: 1px solid #7ab8ff;
}
}


.mw-body-content a:visited {
.infobox-row {
     color: #9d6cd8;
    display: flex;
    border-bottom: 1px dashed #ddd;
     padding: 8px 0;
}
}


/* ===== FOOTER ===== */
.infobox-row:last-child {
#footer {
     border-bottom: none;
    background: var(--background-medium);
     border-top: 3px solid var(--accent-color);
    margin: 40px 0 0 240px;
    padding: 30px 40px;
    color: var(--text-secondary);
}
}


.footer-icons {
.infobox-label {
     text-align: center;
     font-weight: bold;
     margin-bottom: 20px;
     color: var(--stardew-blue);
    min-width: 120px;
}
}


.footer-places, .footer-info {
/* ===== MAIN PAGE SPECIFIC ===== */
     display: flex;
.mainpage-welcome {
     flex-wrap: wrap;
     background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
     gap: 20px;
     border-left: 5px solid var(--stardew-blue);
     justify-content: center;
     padding: 25px;
     margin: 15px 0;
     margin: 30px 0;
     border-radius: 0 8px 8px 0;
}
}


.footer-places li, .footer-info li {
.mainpage-section {
    list-style: none;
     margin: 40px 0;
     margin: 5px 0;
}
}


.footer-places a, .footer-info a {
.mainpage-section-title {
     color: var(--text-secondary);
     color: var(--stardew-blue);
     text-decoration: none;
     border-bottom: 2px solid var(--stardew-border);
     padding: 5px 10px;
     padding-bottom: 10px;
     border-radius: 4px;
     margin-bottom: 20px;
     transition: all 0.3s ease;
     font-size: 24px;
}
}


.footer-places a:hover, .footer-info a:hover {
/* Featured Content */
     color: var(--accent-color);
.featured-grid {
     background: rgba(74, 154, 233, 0.1);
     display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 20px;
    margin: 20px 0;
}
}


/* ===== TABLES ===== */
.featured-card {
.mw-body-content table {
     background: white;
     width: 100%;
     border: 1px solid var(--stardew-border);
     border-collapse: collapse;
    margin: 20px 0;
    background: var(--background-light);
     border-radius: 8px;
     border-radius: 8px;
     overflow: hidden;
     overflow: hidden;
     box-shadow: var(--shadow);
     transition: transform 0.3s;
}
 
.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
}


.mw-body-content table.wikitable {
.featured-image {
     border: 1px solid var(--border-color);
     height: 180px;
    overflow: hidden;
}
}


.mw-body-content table.wikitable > tr > th,
.featured-image img {
.mw-body-content table.wikitable > * > tr > th {
     width: 100%;
     background: var(--primary-color);
     height: 100%;
     color: white;
     object-fit: cover;
     font-weight: 600;
     transition: transform 0.5s;
     border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
}
}


.mw-body-content table.wikitable > tr > td,
.featured-card:hover .featured-image img {
.mw-body-content table.wikitable > * > tr > td {
     transform: scale(1.05);
     border: 1px solid var(--border-color);
    padding: 10px 15px;
    color: var(--text-primary);
}
}


.mw-body-content table.wikitable > tr:nth-child(even) {
.featured-content {
     background: rgba(255, 255, 255, 0.05);
     padding: 20px;
}
}


.mw-body-content table.wikitable > tr:hover {
.featured-title {
     background: rgba(74, 154, 233, 0.1);
    color: var(--stardew-blue);
    font-size: 18px;
     margin: 0 0 10px 0;
}
}


/* ===== CODE & PRE ===== */
.featured-desc {
.mw-body-content pre,
     color: #666;
.mw-body-content code {
     font-size: 14px;
     background: var(--background-light);
     line-height: 1.5;
     border: 1px solid var(--border-color);
    border-radius: 6px;
     font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}
}


.mw-body-content pre {
/* ===== TABLES ===== */
     padding: 15px;
.wikitable {
     overflow-x: auto;
    border: 1px solid var(--stardew-border);
     border-collapse: collapse;
     width: 100%;
     margin: 20px 0;
     margin: 20px 0;
}
}


.mw-body-content code {
.wikitable th {
     padding: 2px 6px;
    background: linear-gradient(to bottom, #f0f7ff, #e3f2fd);
     font-size: 14px;
    color: var(--stardew-blue);
    border: 1px solid var(--stardew-border);
     padding: 12px 15px;
    text-align: left;
     font-weight: 600;
}
 
.wikitable td {
    border: 1px solid var(--stardew-border);
    padding: 10px 15px;
    background: white;
}
}


/* ===== NAVBOXES & TEMPLATES ===== */
.wikitable tr:nth-child(even) td {
.navbox {
     background: #f9f9f9;
    background: var(--background-light);
    border: 1px solid var(--border-color);
     border-radius: 8px;
    margin: 20px 0;
    padding: 15px;
    box-shadow: var(--shadow);
}
}


.navbox-title {
.wikitable tr:hover td {
     background: var(--primary-color);
     background: #f0f7ff;
    color: white;
    padding: 10px 15px;
    margin: -15px -15px 15px -15px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}
}


/* ===== BUTTONS ===== */
/* ===== BUTTONS ===== */
.mw-ui-button {
.mb-button {
     background: var(--accent-color);
    display: inline-block;
     background: linear-gradient(to bottom, var(--stardew-blue), #1e4a8a);
     color: white;
     color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
     border: none;
     border: none;
    padding: 8px 20px;
    border-radius: 6px;
     cursor: pointer;
     cursor: pointer;
    transition: all 0.3s;
     font-size: 14px;
     font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}
}


.mw-ui-button:hover {
.mb-button:hover {
     background: #3a89d9;
     background: linear-gradient(to bottom, #1e4a8a, #163b6d);
     transform: translateY(-2px);
     transform: translateY(-2px);
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
     box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}
 
.mb-button-secondary {
    background: linear-gradient(to bottom, #6c757d, #545b62);
}
 
.mb-button-success {
    background: linear-gradient(to bottom, var(--stardew-green), #3d8b40);
}
 
/* ===== FOOTER ===== */
#footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 5px solid var(--stardew-blue);
}
 
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
 
.footer-section h3 {
    color: var(--stardew-light-blue);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
 
.footer-links {
    list-style: none;
    padding: 0;
}
}


.mw-ui-button:active {
.footer-links li {
     transform: translateY(0);
     margin: 8px 0;
}
}


/* ===== SPECIAL PAGES ===== */
.footer-links a {
.catlinks {
     color: #bdc3c7;
     background: var(--background-light);
     text-decoration: none;
    border: 1px solid var(--border-color);
     transition: color 0.3s;
     border-radius: 8px;
     padding: 15px;
    margin: 20px 0;
}
}


/* ===== MEDIA QUERIES ===== */
.footer-links a:hover {
@media (max-width: 1024px) {
     color: white;
    #mw-panel {
        width: 200px;
    }
   
    #content {
        margin-left: 220px;
    }
      
    #footer {
        margin-left: 220px;
    }
}
}


/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
@media (max-width: 768px) {
     #mw-panel {
     #mw-panel {
Line 438: Line 470:
      
      
     #content {
     #content {
         margin-left: 0;
         margin: 10px;
         padding: 15px;
         padding: 15px;
     }
     }
      
      
     #footer {
     #p-logo a {
         margin-left: 0;
         width: 200px;
         padding: 20px 15px;
         height: 60px;
     }
     }
      
      
     #simpleSearch {
     .mb-navigation-grid {
         right: 15px;
         grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        width: 200px;
     }
     }
}
   
 
     .featured-grid {
@media (max-width: 480px) {
         grid-template-columns: 1fr;
     .mw-body .firstHeading {
         font-size: 28px;
     }
     }
      
      
     #simpleSearch {
     .infobox {
         width: 150px;
        float: none;
         width: 100%;
        margin: 20px 0;
     }
     }
}
/* ===== TOOLTIPS ===== */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted var(--stardew-blue);
    cursor: help;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--stardew-blue);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
/* ===== CODE BLOCKS ===== */
pre, code {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}
pre {
    padding: 15px;
    overflow-x: auto;
}
code {
    padding: 2px 6px;
    color: #d63384;
}
/* ===== ALERTS AND NOTICES ===== */
.notice {
    background: #e3f2fd;
    border-left: 4px solid var(--stardew-blue);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}
.notice-success {
    background: #e8f5e9;
    border-left-color: var(--stardew-green);
}
.notice-warning {
    background: #fff3cd;
    border-left-color: #ffc107;
}
.notice-error {
    background: #f8d7da;
    border-left-color: #dc3545;
}
}

Revision as of 11:10, 9 December 2025

.class { }/* needed for some reason for the @imports to work */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');

/* Imports caching */
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Documentation.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Infobox.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Tables.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:MessageBox.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:CustomTabs.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Navbox.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Icons.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Dialogue.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Cards.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Tabbers.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Mobile.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Recipe.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Modal.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:AceEditor.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:CodeMirror.css&action=raw&ctype=text/css");

/* ===== GLOBAL STYLES ===== */
:root {
    --stardew-blue: #2c5aa0;
    --stardew-light-blue: #5a86c6;
    --stardew-gray: #f5f5f5;
    --stardew-border: #e0e0e0;
    --stardew-text: #333333;
    --stardew-green: #4caf50;
    --stardew-orange: #ff9800;
}

body {
    background-color: #ffffff;
    color: #333333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ===== HEADER RESTYLING ===== */
#mw-page-base {
    background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
    height: auto;
    min-height: 60px;
}

#mw-head {
    background: #ffffff;
    border-bottom: 3px solid var(--stardew-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

#p-logo {
    text-align: center;
    margin: 10px 0;
}

#p-logo a {
    background: url('https://stardewvalleywiki.com/mediawiki/skins/stardew/images/logo.png') no-repeat center center;
    background-size: contain;
    width: 300px;
    height: 80px;
    display: block;
    margin: 0 auto;
}

/* Custom logo if you want to keep MB logo */
#p-logo a.mb-logo {
    background: url('/wiki/Logo.png') no-repeat center center;
    background-size: contain;
    width: 300px;
    height: 80px;
}

#p-search {
    margin: 20px auto;
    max-width: 500px;
}

#simpleSearch {
    border: 2px solid var(--stardew-blue);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(44, 90, 160, 0.1);
}

#searchInput {
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 25px 0 0 25px;
}

#searchButton {
    background: var(--stardew-blue);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
}

/* ===== SIDEBAR REDESIGN ===== */
#mw-panel {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 20px 0;
    width: 230px;
}

.portal {
    margin: 0 0 25px 0;
    padding: 0 15px;
}

.portal h3 {
    font-size: 16px;
    color: var(--stardew-blue);
    border-bottom: 2px solid var(--stardew-blue);
    padding-bottom: 8px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal .body {
    margin: 0;
    padding: 0;
}

.portal .body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal .body li {
    margin: 5px 0;
    padding: 0;
}

.portal .body li a {
    color: #495057;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.portal .body li a:hover {
    background: var(--stardew-blue);
    color: white;
    transform: translateX(5px);
}

/* ===== CONTENT AREA ===== */
#content {
    background: #ffffff;
    border: none;
    margin: 20px 20px 20px 250px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

#firstHeading {
    color: var(--stardew-blue);
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--stardew-border);
}

/* ===== NAVIGATION BOXES (Stardew Style) ===== */
.mb-navigation-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.mb-navigation-box-header {
    background: var(--stardew-blue);
    color: white;
    padding: 12px 20px;
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
    font-size: 18px;
    font-weight: 600;
}

.mb-navigation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.mb-nav-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: block;
}

.mb-nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.1);
    border-color: var(--stardew-blue);
}

.mb-nav-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--stardew-blue);
}

.mb-nav-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--stardew-blue);
}

.mb-nav-desc {
    font-size: 13px;
    color: #666;
}

/* ===== INFOBOX STYLING ===== */
.infobox {
    border: 2px solid var(--stardew-border);
    border-radius: 8px;
    background: #f9f9f9;
    margin: 20px;
    float: right;
    width: 300px;
}

.infobox-title {
    background: linear-gradient(to right, var(--stardew-blue), var(--stardew-light-blue));
    color: white;
    padding: 12px 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px 6px 0 0;
}

.infobox-image {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--stardew-border);
}

.infobox-data {
    padding: 15px;
}

.infobox-row {
    display: flex;
    border-bottom: 1px dashed #ddd;
    padding: 8px 0;
}

.infobox-row:last-child {
    border-bottom: none;
}

.infobox-label {
    font-weight: bold;
    color: var(--stardew-blue);
    min-width: 120px;
}

/* ===== MAIN PAGE SPECIFIC ===== */
.mainpage-welcome {
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
    border-left: 5px solid var(--stardew-blue);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.mainpage-section {
    margin: 40px 0;
}

.mainpage-section-title {
    color: var(--stardew-blue);
    border-bottom: 2px solid var(--stardew-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Featured Content */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.featured-card {
    background: white;
    border: 1px solid var(--stardew-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.featured-image {
    height: 180px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 20px;
}

.featured-title {
    color: var(--stardew-blue);
    font-size: 18px;
    margin: 0 0 10px 0;
}

.featured-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* ===== TABLES ===== */
.wikitable {
    border: 1px solid var(--stardew-border);
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

.wikitable th {
    background: linear-gradient(to bottom, #f0f7ff, #e3f2fd);
    color: var(--stardew-blue);
    border: 1px solid var(--stardew-border);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.wikitable td {
    border: 1px solid var(--stardew-border);
    padding: 10px 15px;
    background: white;
}

.wikitable tr:nth-child(even) td {
    background: #f9f9f9;
}

.wikitable tr:hover td {
    background: #f0f7ff;
}

/* ===== BUTTONS ===== */
.mb-button {
    display: inline-block;
    background: linear-gradient(to bottom, var(--stardew-blue), #1e4a8a);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.mb-button:hover {
    background: linear-gradient(to bottom, #1e4a8a, #163b6d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.mb-button-secondary {
    background: linear-gradient(to bottom, #6c757d, #545b62);
}

.mb-button-success {
    background: linear-gradient(to bottom, var(--stardew-green), #3d8b40);
}

/* ===== FOOTER ===== */
#footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 5px solid var(--stardew-blue);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: var(--stardew-light-blue);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 8px 0;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    #mw-panel {
        display: none;
    }
    
    #content {
        margin: 10px;
        padding: 15px;
    }
    
    #p-logo a {
        width: 200px;
        height: 60px;
    }
    
    .mb-navigation-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .infobox {
        float: none;
        width: 100%;
        margin: 20px 0;
    }
}

/* ===== TOOLTIPS ===== */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted var(--stardew-blue);
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--stardew-blue);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ===== CODE BLOCKS ===== */
pre, code {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

pre {
    padding: 15px;
    overflow-x: auto;
}

code {
    padding: 2px 6px;
    color: #d63384;
}

/* ===== ALERTS AND NOTICES ===== */
.notice {
    background: #e3f2fd;
    border-left: 4px solid var(--stardew-blue);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.notice-success {
    background: #e8f5e9;
    border-left-color: var(--stardew-green);
}

.notice-warning {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.notice-error {
    background: #f8d7da;
    border-left-color: #dc3545;
}