Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Main Page/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
/* Main Page Styles for ComputerScience.wiki
/**
  * Based exactly on the original MediaWiki styles
* ComputerScience.wiki Main Page Styles
  * Combining the working color scheme with the previous category structure
  */
  */


/* Base styles */
/* Base theme colors & structure from MediaWiki-Common.css */
/* Main Page Components */
.mp-box {
.mp-box {
     border: 1px solid #aaa; /* all colors overridden on specific elements in @media screen */
     border: 1px solid #aaa; /* all colors overridden on specific elements in @media screen */
Line 73: Line 75:
}
}


/* clear fix */
/* Clear fix */
.mp-contains-float::after {
.mp-contains-float::after {
     content: "";
     content: "";
     display: block;
     display: block;
     clear: both;
     clear: both;
}
/* Category Styles - New additions */
.mp-category-row {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0;
    gap: 15px;
}
.mp-category-card {
    border: 1px solid #aaa;
    border-radius: 8px;
    padding: 15px;
    flex: 1;
    min-width: 200px;
}
/* Category Header with Icon and Title on same line */
.mp-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.mp-category-icon {
    font-size: 22px;
    margin-right: 10px;
}
.mp-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}
.mp-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mp-category-list li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}
.mp-category-list li:last-child {
    border-bottom: none;
    margin-top: 8px;
    font-weight: 500;
}
}


Line 176: Line 127:
}
}


/* Light theme colors */
/* Top Banner - Enhanced from previous versions */
#mp-topbanner {
    padding: 32px 24px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    border: none;
}
 
/* Search Box - From previous versions */
.mp-search-container {
    max-width: 650px;
    margin: -24px auto 32px;
    position: relative;
    z-index: 5;
}
 
.mp-search-box {
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
 
/* Section Headings - From previous versions */
.mp-section-heading {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 32px 0 24px;
    text-align: center;
    position: relative;
}
 
.mp-section-heading:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 1px;
}
 
/* Category Layout - From previous versions */
#mp-categories-container {
    margin: 32px 0;
}
 
.mp-category-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 20px;
}
 
/* Category Cards - From previous versions */
.mp-category-card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    padding: 20px;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    margin: 0 10px 20px;
    transition: box-shadow 0.2s;
}
 
.mp-category-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
 
/* Category Header with Icon and Title on same line */
.mp-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
 
.mp-category-icon {
    font-size: 24px;
    margin-right: 12px;
}
 
.mp-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}
 
.mp-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
 
.mp-category-list li {
    padding: 8px 0;
}
 
.mp-category-list li:last-child {
    border-bottom: none;
    margin-top: 10px;
    font-weight: 500;
}
 
/* Feature & Trending Grids - From previous versions */
.mp-featured-grid,
.mp-trending-grid,
.mp-paths-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
    padding: 20px 0;
}
 
.mp-featured-grid > *,
.mp-trending-grid > *,
.mp-paths-grid > * {
    flex: 1 1 300px;
    margin: 0 12px 24px;
    min-width: 250px;
}
 
/* Community Section - From previous versions */
.mp-community-flex {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}
 
.mp-community-card {
    flex: 1 1 300px;
    min-width: 250px;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    margin: 0 12px 24px;
}
 
.mp-community-card h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 10px;
}
 
.mp-community-card ul {
    padding-left: 20px;
    margin: 0;
}
 
.mp-community-card li {
    margin-bottom: 8px;
}
 
/* Statistics Section - From previous versions */
.mp-statistics-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}
 
.mp-stat-card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    padding: 20px;
    min-width: 140px;
    text-align: center;
    flex: 1 1 140px;
    margin: 0 12px 24px;
}
 
.mp-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}
 
.mp-stat-label {
    font-size: 0.95rem;
}
 
/* Light theme colors from original MediaWiki-Common.css */
@media screen {
@media screen {
     #mp-topbanner {
     #mp-topbanner {
Line 238: Line 369:
     }
     }


     /* Category card styles for light mode */
     /* Enhanced section colors from previous versions */
    .mp-search-box {
        background-color: #ffffff;
        border: 1px solid #dfe1e5;
    }
 
     .mp-category-card {
     .mp-category-card {
         background-color: white;
         background-color: #ffffff;
         border-color: #eaecef;
         border: 1px solid #eaecef;
     }
     }
      
      
Line 249: Line 385:
      
      
     .mp-category-list li {
     .mp-category-list li {
         border-color: #eaecef;
         border-bottom: 1px solid #eaecef;
     }
     }
      
      
Line 256: Line 392:
     }
     }


     /* night mode - exactly as in the original CSS */
    .mp-section-heading {
        color: #2e51a3;
    }
 
    .mp-section-heading:after {
        background: #4c6fc6;
    }
 
    .mp-community-card {
        background-color: #ffffff;
        border: 1px solid #eaecef;
    }
 
    .mp-community-card h3 {
        border-bottom: 1px solid #eaecef;
        color: #2e51a3;
    }
 
    .mp-stat-card {
        background-color: #ffffff;
        border: 1px solid #eaecef;
    }
 
    .mp-stat-number {
        color: #2e51a3;
    }
 
    .mp-stat-label {
        color: #586069;
    }
 
    #mp-topbanner {
        background: linear-gradient(135deg, #2e51a3, #4c6fc6);
        color: #ffffff;
    }
 
     /* Dark mode - From original MediaWiki-Common.css with enhanced elements */
     html.skin-theme-clientpref-night #mp-topbanner,
     html.skin-theme-clientpref-night #mp-topbanner,
     .skin-citizen-dark #mp-topbanner {
     .skin-citizen-dark #mp-topbanner {
         background-color: #171a1d;
         background-color: #171a1d;
         border-color: #676767;
         border-color: #676767;
        background: linear-gradient(135deg, #375694, #2c4273);
     }
     }
      
      
Line 329: Line 502:
     }
     }


     /* Category card styles for dark mode */
     /* Enhanced elements in dark mode */
    html.skin-theme-clientpref-night .mp-search-box,
    .skin-citizen-dark .mp-search-box {
        background-color: #111827;
        border-color: #374151;
    }
 
     html.skin-theme-clientpref-night .mp-category-card,
     html.skin-theme-clientpref-night .mp-category-card,
     .skin-citizen-dark .mp-category-card {
     .skin-citizen-dark .mp-category-card {
Line 349: Line 528:
     .skin-citizen-dark .mp-category-list li:last-child {
     .skin-citizen-dark .mp-category-list li:last-child {
         color: #8ab4f8;
         color: #8ab4f8;
    }
    html.skin-theme-clientpref-night .mp-section-heading,
    .skin-citizen-dark .mp-section-heading {
        color: #8ab4f8;
    }
    html.skin-theme-clientpref-night .mp-section-heading:after,
    .skin-citizen-dark .mp-section-heading:after {
        background: #8ab4f8;
    }
    html.skin-theme-clientpref-night .mp-community-card,
    .skin-citizen-dark .mp-community-card {
        background-color: #111827;
        border-color: #374151;
    }
    html.skin-theme-clientpref-night .mp-community-card h3,
    .skin-citizen-dark .mp-community-card h3 {
        border-color: #374151;
        color: #8ab4f8;
    }
    html.skin-theme-clientpref-night .mp-stat-card,
    .skin-citizen-dark .mp-stat-card {
        background-color: #111827;
        border-color: #374151;
    }
    html.skin-theme-clientpref-night .mp-stat-number,
    .skin-citizen-dark .mp-stat-number {
        color: #8ab4f8;
    }
    html.skin-theme-clientpref-night .mp-stat-label,
    .skin-citizen-dark .mp-stat-label {
        color: #9ca3af;
     }
     }
}
}


/* OS night mode - exactly as in the original CSS */
/* OS night mode - from original MediaWiki-Common.css */
@media screen and (prefers-color-scheme: dark) {
@media screen and (prefers-color-scheme: dark) {
     html.skin-theme-clientpref-os #mp-topbanner {
     html.skin-theme-clientpref-os #mp-topbanner {
         background-color: #171a1d;
         background-color: #171a1d;
         border-color: #676767;
         border-color: #676767;
        background: linear-gradient(135deg, #375694, #2c4273);
     }
     }
      
      
Line 414: Line 632:
     }
     }


     /* Category cards for OS dark mode */
     /* Enhanced elements in OS dark mode */
    html.skin-theme-clientpref-os .mp-search-box {
        background-color: #111827;
        border-color: #374151;
    }
 
     html.skin-theme-clientpref-os .mp-category-card {
     html.skin-theme-clientpref-os .mp-category-card {
         background-color: #111827;
         background-color: #111827;
Line 430: Line 653:
     html.skin-theme-clientpref-os .mp-category-list li:last-child {
     html.skin-theme-clientpref-os .mp-category-list li:last-child {
         color: #8ab4f8;
         color: #8ab4f8;
    }
    html.skin-theme-clientpref-os .mp-section-heading {
        color: #8ab4f8;
    }
    html.skin-theme-clientpref-os .mp-section-heading:after {
        background: #8ab4f8;
    }
    html.skin-theme-clientpref-os .mp-community-card {
        background-color: #111827;
        border-color: #374151;
    }
    html.skin-theme-clientpref-os .mp-community-card h3 {
        border-color: #374151;
        color: #8ab4f8;
    }
    html.skin-theme-clientpref-os .mp-stat-card {
        background-color: #111827;
        border-color: #374151;
    }
    html.skin-theme-clientpref-os .mp-stat-number {
        color: #8ab4f8;
    }
    html.skin-theme-clientpref-os .mp-stat-label {
        color: #9ca3af;
    }
}
/* Responsive Adjustments - From previous versions */
@media (max-width: 768px) {
    .mp-category-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
   
    #mp-welcome h1 {
        font-size: 1.8rem;
    }
   
    .mp-section-heading {
        font-size: 1.4rem;
     }
     }
}
}

Revision as of 17:37, 10 August 2025

/**
 * ComputerScience.wiki Main Page Styles
 * Combining the working color scheme with the previous category structure
 */

/* Base theme colors & structure from MediaWiki-Common.css */
/* Main Page Components */
.mp-box {
    border: 1px solid #aaa; /* all colors overridden on specific elements in @media screen */
    padding: 0 0.5em 0.5em;
    margin-top: 4px;
}

.mp-h2, body.skin-timeless .mp-h2 {
    border: 1px solid #aaa; /* all colors overridden on specific elements in @media screen */
    margin: 0.5em 0;
    padding: 0.2em 0.4em;
    font-size: 120%;
    font-weight: bold;
    font-family: inherit;
}

.mp-later {
    font-size: 85%;
    font-weight: normal;
}

#mp-welcomecount {
    text-align: center;
    margin: 0.4em;
}

#mp-welcome {
    font-size: 162%;
    padding: 0.1em;
}

#mp-welcome h1, #mp-welcome .mw-heading1 {
    font-size: inherit;
    font-family: inherit;
    display: inline;
    border: none;
}

#mp-free {
    font-size: 95%;
}

#articlecount {
    font-size: 85%;
}

#articlecount > ul {
    margin: 0;
    padding: 0;
}

#articlecount > ul > li {
    margin: 0;
    display: inline;
}

#articlecount > ul > li::after {
    content: " · ";
    font-weight: bold;
}

#articlecount > ul > li:last-child::after {
    content: "";
}

#mp-banner {
    text-align: center;
    padding-top: 0.5em;
}

/* Clear fix */
.mp-contains-float::after {
    content: "";
    display: block;
    clear: both;
}

/* Layout adjustments */
@media (max-width: 875px) {
    /* We need to improve Template:POTD as used on the main page so that these
     * hacks aren't necessary */
    #mp-tfp table,
    #mp-tfp tr,
    #mp-tfp td,
    #mp-tfp tbody {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    #mp-tfp tr:first-child td:first-child a.mw-file-description {
        text-align: center;
        display: table;
        margin: 0 auto;
    }
    
    #articlecount > ul > li::after {
        content: "";
        font-weight: normal;
    }
    
    #articlecount > ul > li {
        display: block;
    }
}

@media (min-width: 875px) {
    #mp-upper {
        display: flex;
    }
    
    #mp-left {
        flex: 1 1 55%;
        margin-right: 2px;
    }
    
    #mp-right {
        flex: 1 1 45%;
        margin-left: 2px;
    }
}

/* Top Banner - Enhanced from previous versions */
#mp-topbanner {
    padding: 32px 24px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    border: none;
}

/* Search Box - From previous versions */
.mp-search-container {
    max-width: 650px;
    margin: -24px auto 32px;
    position: relative;
    z-index: 5;
}

.mp-search-box {
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Section Headings - From previous versions */
.mp-section-heading {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 32px 0 24px;
    text-align: center;
    position: relative;
}

.mp-section-heading:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 1px;
}

/* Category Layout - From previous versions */
#mp-categories-container {
    margin: 32px 0;
}

.mp-category-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 20px;
}

/* Category Cards - From previous versions */
.mp-category-card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    padding: 20px;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    margin: 0 10px 20px;
    transition: box-shadow 0.2s;
}

.mp-category-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Category Header with Icon and Title on same line */
.mp-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.mp-category-icon {
    font-size: 24px;
    margin-right: 12px;
}

.mp-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.mp-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mp-category-list li {
    padding: 8px 0;
}

.mp-category-list li:last-child {
    border-bottom: none;
    margin-top: 10px;
    font-weight: 500;
}

/* Feature & Trending Grids - From previous versions */
.mp-featured-grid,
.mp-trending-grid,
.mp-paths-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
    padding: 20px 0;
}

.mp-featured-grid > *,
.mp-trending-grid > *,
.mp-paths-grid > * {
    flex: 1 1 300px;
    margin: 0 12px 24px;
    min-width: 250px;
}

/* Community Section - From previous versions */
.mp-community-flex {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.mp-community-card {
    flex: 1 1 300px;
    min-width: 250px;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    margin: 0 12px 24px;
}

.mp-community-card h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 10px;
}

.mp-community-card ul {
    padding-left: 20px;
    margin: 0;
}

.mp-community-card li {
    margin-bottom: 8px;
}

/* Statistics Section - From previous versions */
.mp-statistics-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.mp-stat-card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    padding: 20px;
    min-width: 140px;
    text-align: center;
    flex: 1 1 140px;
    margin: 0 12px 24px;
}

.mp-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mp-stat-label {
    font-size: 0.95rem;
}

/* Light theme colors from original MediaWiki-Common.css */
@media screen {
    #mp-topbanner {
        background-color: #f9f9f9;
        border-color: #ddd;
    }
    
    #mp-banner {
        background-color: #fffaf5;
        border-color: #f2e0ce;
    }
    
    #mp-left {
        background-color: #f5fffa;
        border-color: #cef2e0;
    }
    
    #mp-left .mp-h2 {
        background-color: #cef2e0;
        border-color: #a3bfb1;
    }
    
    #mp-right {
        background-color: #f5faff;
        border-color: #cedff2;
    }
    
    #mp-right .mp-h2 {
        background-color: #cedff2;
        border-color: #a3b0bf;
    }
    
    #mp-middle {
        background-color: #fff5fa;
        border-color: #f2cedd;
    }
    
    #mp-middle .mp-h2 {
        background-color: #f2cedd;
        border-color: #bfa3af;
    }
    
    #mp-lower {
        background-color: #faf5ff;
        border-color: #ddcef2;
    }
    
    #mp-lower .mp-h2 {
        background-color: #ddcef2;
        border-color: #afa3bf;
    }
    
    #mp-bottom {
        /* no background */
        border-color: #e2e2e2;
    }
    
    #mp-bottom .mp-h2 {
        background-color: #eee;
        border-color: #ddd;
    }

    /* Enhanced section colors from previous versions */
    .mp-search-box {
        background-color: #ffffff;
        border: 1px solid #dfe1e5;
    }

    .mp-category-card {
        background-color: #ffffff;
        border: 1px solid #eaecef;
    }
    
    .mp-category-title {
        color: #2e51a3;
    }
    
    .mp-category-list li {
        border-bottom: 1px solid #eaecef;
    }
    
    .mp-category-list li:last-child {
        color: #2e51a3;
    }

    .mp-section-heading {
        color: #2e51a3;
    }

    .mp-section-heading:after {
        background: #4c6fc6;
    }

    .mp-community-card {
        background-color: #ffffff;
        border: 1px solid #eaecef;
    }

    .mp-community-card h3 {
        border-bottom: 1px solid #eaecef;
        color: #2e51a3;
    }

    .mp-stat-card {
        background-color: #ffffff;
        border: 1px solid #eaecef;
    }

    .mp-stat-number {
        color: #2e51a3;
    }

    .mp-stat-label {
        color: #586069;
    }

    #mp-topbanner {
        background: linear-gradient(135deg, #2e51a3, #4c6fc6);
        color: #ffffff;
    }

    /* Dark mode - From original MediaWiki-Common.css with enhanced elements */
    html.skin-theme-clientpref-night #mp-topbanner,
    .skin-citizen-dark #mp-topbanner {
        background-color: #171a1d;
        border-color: #676767;
        background: linear-gradient(135deg, #375694, #2c4273);
    }
    
    html.skin-theme-clientpref-night #mp-banner,
    .skin-citizen-dark #mp-banner {
        background-color: #331a00;
        border-color: #663428;
    }
    
    html.skin-theme-clientpref-night #mp-left,
    .skin-citizen-dark #mp-left {
        background-color: #0b1e1c;
        border-color: #104437;
    }
    
    html.skin-theme-clientpref-night #mp-left .mp-h2,
    .skin-citizen-dark #mp-left .mp-h2 {
        background-color: #104437;
        border-color: #2f4d41;
    }
    
    html.skin-theme-clientpref-night #mp-right,
    .skin-citizen-dark #mp-right {
        background-color: #0d1a27;
        border-color: #082849;
    }
    
    html.skin-theme-clientpref-night #mp-right .mp-h2,
    .skin-citizen-dark #mp-right .mp-h2 {
        background-color: #082849;
        border-color: #a3b0bf;
    }
    
    html.skin-theme-clientpref-night #mp-middle,
    .skin-citizen-dark #mp-middle {
        background-color: #270e1a;
        border-color: #882c43;
    }
    
    html.skin-theme-clientpref-night #mp-middle .mp-h2,
    .skin-citizen-dark #mp-middle .mp-h2 {
        background-color: #882c43;
        border-color: #926c80;
    }
    
    html.skin-theme-clientpref-night #mp-lower,
    .skin-citizen-dark #mp-lower {
        background-color: #130e20;
        border-color: #7545ab;
    }
    
    html.skin-theme-clientpref-night #mp-lower .mp-h2,
    .skin-citizen-dark #mp-lower .mp-h2 {
        background-color: #7545ab;
        border-color: #afa3bf;
    }
    
    html.skin-theme-clientpref-night #mp-bottom,
    .skin-citizen-dark #mp-bottom {
        /* no background */
        border-color: #676767;
    }
    
    html.skin-theme-clientpref-night #mp-bottom .mp-h2,
    .skin-citizen-dark #mp-bottom .mp-h2 {
        background-color: #3d3d3d;
        border-color: #676767;
    }

    /* Enhanced elements in dark mode */
    html.skin-theme-clientpref-night .mp-search-box,
    .skin-citizen-dark .mp-search-box {
        background-color: #111827;
        border-color: #374151;
    }

    html.skin-theme-clientpref-night .mp-category-card,
    .skin-citizen-dark .mp-category-card {
        background-color: #111827;
        border-color: #374151;
    }
    
    html.skin-theme-clientpref-night .mp-category-title,
    .skin-citizen-dark .mp-category-title {
        color: #8ab4f8;
    }
    
    html.skin-theme-clientpref-night .mp-category-list li,
    .skin-citizen-dark .mp-category-list li {
        border-color: #374151;
    }
    
    html.skin-theme-clientpref-night .mp-category-list li:last-child,
    .skin-citizen-dark .mp-category-list li:last-child {
        color: #8ab4f8;
    }

    html.skin-theme-clientpref-night .mp-section-heading,
    .skin-citizen-dark .mp-section-heading {
        color: #8ab4f8;
    }

    html.skin-theme-clientpref-night .mp-section-heading:after,
    .skin-citizen-dark .mp-section-heading:after {
        background: #8ab4f8;
    }

    html.skin-theme-clientpref-night .mp-community-card,
    .skin-citizen-dark .mp-community-card {
        background-color: #111827;
        border-color: #374151;
    }

    html.skin-theme-clientpref-night .mp-community-card h3,
    .skin-citizen-dark .mp-community-card h3 {
        border-color: #374151;
        color: #8ab4f8;
    }

    html.skin-theme-clientpref-night .mp-stat-card,
    .skin-citizen-dark .mp-stat-card {
        background-color: #111827;
        border-color: #374151;
    }

    html.skin-theme-clientpref-night .mp-stat-number,
    .skin-citizen-dark .mp-stat-number {
        color: #8ab4f8;
    }

    html.skin-theme-clientpref-night .mp-stat-label,
    .skin-citizen-dark .mp-stat-label {
        color: #9ca3af;
    }
}

/* OS night mode - from original MediaWiki-Common.css */
@media screen and (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os #mp-topbanner {
        background-color: #171a1d;
        border-color: #676767;
        background: linear-gradient(135deg, #375694, #2c4273);
    }
    
    html.skin-theme-clientpref-os #mp-banner {
        background-color: #331a00;
        border-color: #663428;
    }
    
    html.skin-theme-clientpref-os #mp-left {
        background-color: #0b1e1c;
        border-color: #104437;
    }
    
    html.skin-theme-clientpref-os #mp-left .mp-h2 {
        background-color: #104437;
        border-color: #2f4d41;
    }
    
    html.skin-theme-clientpref-os #mp-right {
         background-color: #0d1a27;
         border-color: #082849;
    }
    
    html.skin-theme-clientpref-os #mp-right .mp-h2 {
        background-color: #082849;
        border-color: #a3b0bf;
    }
    
    html.skin-theme-clientpref-os #mp-middle {
        background-color: #270e1a;
        border-color: #882c43;
    }
    
    html.skin-theme-clientpref-os #mp-middle .mp-h2 {
        background-color: #882c43;
        border-color: #926c80;
    }
    
    html.skin-theme-clientpref-os #mp-lower {
        background-color: #130e20;
        border-color: #7545ab;
    }
    
    html.skin-theme-clientpref-os #mp-lower .mp-h2 {
        background-color: #7545ab;
        border-color: #afa3bf;
    }
    
    html.skin-theme-clientpref-os #mp-bottom {
        /* no background */
        border-color: #676767;
    }
    
    html.skin-theme-clientpref-os #mp-bottom .mp-h2 {
        background-color: #3d3d3d;
        border-color: #676767;
    }

    /* Enhanced elements in OS dark mode */
    html.skin-theme-clientpref-os .mp-search-box {
        background-color: #111827;
        border-color: #374151;
    }

    html.skin-theme-clientpref-os .mp-category-card {
        background-color: #111827;
        border-color: #374151;
    }
    
    html.skin-theme-clientpref-os .mp-category-title {
        color: #8ab4f8;
    }
    
    html.skin-theme-clientpref-os .mp-category-list li {
        border-color: #374151;
    }
    
    html.skin-theme-clientpref-os .mp-category-list li:last-child {
        color: #8ab4f8;
    }

    html.skin-theme-clientpref-os .mp-section-heading {
        color: #8ab4f8;
    }

    html.skin-theme-clientpref-os .mp-section-heading:after {
        background: #8ab4f8;
    }

    html.skin-theme-clientpref-os .mp-community-card {
        background-color: #111827;
        border-color: #374151;
    }

    html.skin-theme-clientpref-os .mp-community-card h3 {
        border-color: #374151;
        color: #8ab4f8;
    }

    html.skin-theme-clientpref-os .mp-stat-card {
        background-color: #111827;
        border-color: #374151;
    }

    html.skin-theme-clientpref-os .mp-stat-number {
        color: #8ab4f8;
    }

    html.skin-theme-clientpref-os .mp-stat-label {
        color: #9ca3af;
    }
}

/* Responsive Adjustments - From previous versions */
@media (max-width: 768px) {
    .mp-category-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #mp-welcome h1 {
        font-size: 1.8rem;
    }
    
    .mp-section-heading {
        font-size: 1.4rem;
    }
}