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:
/**
/**
  * ComputerScience.wiki - Main Page Styles
  * ComputerScience.wiki - Main Page Styles
  * Based on Squadz/mediawiki
  * Following Squadz/mediawiki/MediaWiki-Common.css color scheme
  */
  */


/* Base Styles */
/* Layout structure */
.cs-container {
.cs-container {
     max-width: 1200px;
     max-width: 1200px;
Line 16: Line 16:
     padding: 30px 20px;
     padding: 30px 20px;
     margin-bottom: 30px;
     margin-bottom: 30px;
    border: 1px solid #ddd;
     border-radius: 8px;
     border-radius: 8px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}
}


Line 25: Line 24:
     font-weight: 700;
     font-weight: 700;
     margin: 0;
     margin: 0;
     color: #212121;
     color: #000;
}
}


Line 32: Line 31:
     font-weight: normal;
     font-weight: normal;
     margin: 10px 0 0;
     margin: 10px 0 0;
     color: #616161;
     color: #444;
}
}


Line 38: Line 37:
     margin-top: 15px;
     margin-top: 15px;
     font-size: 0.9em;
     font-size: 0.9em;
     color: #616161;
     color: #555;
}
}


Line 47: Line 46:
     padding: 15px;
     padding: 15px;
     border-radius: 8px;
     border-radius: 8px;
    background-color: #ffffff;
     border: 1px solid #ddd;
     border: 1px solid #e0e0e0;
}
}


/* Section Headers */
/* Section Headers - All in one container with aligned icon and title */
.cs-section {
.cs-section {
     margin-bottom: 30px;
     margin-bottom: 30px;
Line 59: Line 57:
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     padding: 15px;
     padding: 12px 15px;
     margin-bottom: 20px;
     margin-bottom: 20px;
     border-radius: 8px;
     border-radius: 6px;
    background-color: #f5f5f5;
     border: 1px solid #ddd;
     border: 1px solid #e0e0e0;
}
}


Line 75: Line 72:
     font-size: 1.3em;
     font-size: 1.3em;
     font-weight: 600;
     font-weight: 600;
    color: #212121;
}
}


Line 99: Line 95:
/* Card Design */
/* Card Design */
.cs-card {
.cs-card {
     border-radius: 8px;
     border-radius: 6px;
     overflow: hidden;
     overflow: hidden;
     height: 100%;
     height: 100%;
    background-color: #ffffff;
     border: 1px solid #ddd;
     border: 1px solid #e0e0e0;
}
}


.cs-card-header {
.cs-card-header {
     padding: 15px;
     padding: 12px 15px;
    background-color: #f5f5f5;
     border-bottom: 1px solid #ddd;
     border-bottom: 1px solid #e0e0e0;
}
}


Line 116: Line 110:
     font-size: 1.1em;
     font-size: 1.1em;
     font-weight: 600;
     font-weight: 600;
    color: #212121;
}
}


.cs-card-body {
.cs-card-body {
     padding: 15px;
     padding: 15px;
    color: #424242;
}
}


Line 136: Line 128:
     padding: 12px 15px;
     padding: 12px 15px;
     text-align: right;
     text-align: right;
    background-color: #f5f5f5;
     border-top: 1px solid #ddd;
     border-top: 1px solid #e0e0e0;
}
 
.cs-card-footer a {
    color: #1976d2;
    text-decoration: none;
}
}


/* OS night mode */
/* Light theme colors - Using the same pastel colors from the reference */
@media screen and (prefers-color-scheme: dark) {
@media screen {
     .cs-header {
     .cs-header {
         background-color: #1e1e1e;
         background-color: #f9f9f9;
         border-color: #333333;
         border-color: #ddd;
    }
   
    /* Programming section */
    .cs-section:nth-child(3) .cs-section-header {
        background-color: #cef2e0;
        border-color: #a3bfb1;
    }
   
    .cs-section:nth-child(3) .cs-card {
        background-color: #f5fffa;
        border-color: #cef2e0;
    }
   
    .cs-section:nth-child(3) .cs-card-header {
        background-color: #cef2e0;
        border-color: #a3bfb1;
     }
     }
      
      
     .cs-title {
     .cs-section:nth-child(3) .cs-card-footer {
         color: #e0e0e0;
         background-color: #f5fffa;
        border-color: #cef2e0;
     }
     }
      
      
     .cs-subtitle, .cs-stats {
    /* Data Science section */
         color: #b0b0b0;
     .cs-section:nth-child(4) .cs-section-header {
         background-color: #cedff2;
        border-color: #a3b0bf;
     }
     }
      
      
     .cs-search {
     .cs-section:nth-child(4) .cs-card {
         background-color: #121212;
         background-color: #f5faff;
         border-color: #333333;
         border-color: #cedff2;
     }
     }
      
      
     .cs-section-header {
     .cs-section:nth-child(4) .cs-card-header {
         background-color: #1e1e1e;
         background-color: #cedff2;
         border-color: #333333;
         border-color: #a3b0bf;
     }
     }
      
      
     .cs-section-title {
     .cs-section:nth-child(4) .cs-card-footer {
         color: #e0e0e0;
         background-color: #f5faff;
        border-color: #cedff2;
     }
     }
      
      
     .cs-card {
    /* Databases section */
         background-color: #121212;
     .cs-section:nth-child(5) .cs-section-header {
         border-color: #333333;
         background-color: #f2cedd;
         border-color: #bfa3af;
     }
     }
      
      
     .cs-card-header {
     .cs-section:nth-child(5) .cs-card {
         background-color: #1e1e1e;
         background-color: #fff5fa;
         border-color: #333333;
         border-color: #f2cedd;
     }
     }
      
      
     .cs-card-title {
     .cs-section:nth-child(5) .cs-card-header {
         color: #e0e0e0;
         background-color: #f2cedd;
        border-color: #bfa3af;
     }
     }
      
      
     .cs-card-body {
     .cs-section:nth-child(5) .cs-card-footer {
         color: #b0b0b0;
         background-color: #fff5fa;
        border-color: #f2cedd;
     }
     }
      
      
     .cs-card-footer {
     /* Infrastructure section */
         background-color: #1e1e1e;
    .cs-section:nth-child(6) .cs-section-header {
         border-color: #333333;
         background-color: #ddcef2;
         border-color: #afa3bf;
     }
     }
      
      
     .cs-card-footer a {
     .cs-section:nth-child(6) .cs-card {
         color: #64b5f6;
        background-color: #faf5ff;
        border-color: #ddcef2;
    }
   
    .cs-section:nth-child(6) .cs-card-header {
        background-color: #ddcef2;
        border-color: #afa3bf;
    }
   
    .cs-section:nth-child(6) .cs-card-footer {
         background-color: #faf5ff;
        border-color: #ddcef2;
    }
   
    /* CS Fundamentals section */
    .cs-section:nth-child(7) .cs-section-header {
        background-color: #f2e0ce;
        border-color: #bfa38d;
    }
   
    .cs-section:nth-child(7) .cs-card {
        background-color: #fffaf5;
        border-color: #f2e0ce;
    }
   
    .cs-section:nth-child(7) .cs-card-header {
        background-color: #f2e0ce;
        border-color: #bfa38d;
    }
   
    .cs-section:nth-child(7) .cs-card-footer {
        background-color: #fffaf5;
        border-color: #f2e0ce;
    }
   
    /* Community section */
    .cs-section:nth-child(8) .cs-section-header {
        background-color: #eee;
        border-color: #ddd;
    }
   
    .cs-section:nth-child(8) .cs-card {
        background-color: #f9f9f9;
        border-color: #eee;
    }
   
    .cs-section:nth-child(8) .cs-card-header {
        background-color: #eee;
        border-color: #ddd;
    }
   
    .cs-section:nth-child(8) .cs-card-footer {
        background-color: #f9f9f9;
        border-color: #eee;
     }
     }
}
}


/* night mode */
/* Night mode - using the exact colors from your example */
html.skin-theme-clientpref-night .cs-header {
html.skin-theme-clientpref-night .cs-header {
     background-color: #1e1e1e;
     background-color: #171a1d;
     border-color: #333333;
     border-color: #676767;
}
 
/* Programming section - dark */
html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-section-header {
    background-color: #104437;
    border-color: #2f4d41;
}
 
html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card {
    background-color: #0b1e1c;
    border-color: #104437;
}
 
html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card-header {
    background-color: #104437;
    border-color: #2f4d41;
}
 
html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card-footer {
    background-color: #0b1e1c;
    border-color: #104437;
}
 
/* Data Science section - dark */
html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-section-header {
    background-color: #082849;
    border-color: #a3b0bf;
}
 
html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card {
    background-color: #0d1a27;
    border-color: #082849;
}
 
html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card-header {
    background-color: #082849;
    border-color: #a3b0bf;
}
 
html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card-footer {
    background-color: #0d1a27;
    border-color: #082849;
}
 
/* Databases section - dark */
html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-section-header {
    background-color: #882c43;
    border-color: #926c80;
}
}


html.skin-theme-clientpref-night .cs-title {
html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card {
     color: #e0e0e0;
     background-color: #270e1a;
    border-color: #882c43;
}
}


html.skin-theme-clientpref-night .cs-subtitle,
html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card-header {
html.skin-theme-clientpref-night .cs-stats {
     background-color: #882c43;
     color: #b0b0b0;
    border-color: #926c80;
}
}


html.skin-theme-clientpref-night .cs-search {
html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card-footer {
     background-color: #121212;
     background-color: #270e1a;
     border-color: #333333;
     border-color: #882c43;
}
}


html.skin-theme-clientpref-night .cs-section-header {
/* Infrastructure section - dark */
     background-color: #1e1e1e;
html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-section-header {
     border-color: #333333;
     background-color: #7545ab;
     border-color: #afa3bf;
}
}


html.skin-theme-clientpref-night .cs-section-title {
html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card {
     color: #e0e0e0;
     background-color: #130e20;
    border-color: #7545ab;
}
}


html.skin-theme-clientpref-night .cs-card {
html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card-header {
     background-color: #121212;
     background-color: #7545ab;
     border-color: #333333;
     border-color: #afa3bf;
}
}


html.skin-theme-clientpref-night .cs-card-header {
html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card-footer {
     background-color: #1e1e1e;
    background-color: #130e20;
     border-color: #333333;
    border-color: #7545ab;
}
 
/* CS Fundamentals section - dark */
html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-section-header {
    background-color: #663428;
    border-color: #8a6b5c;
}
 
html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card {
    background-color: #331a00;
    border-color: #663428;
}
 
html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card-header {
    background-color: #663428;
    border-color: #8a6b5c;
}
 
html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card-footer {
    background-color: #331a00;
    border-color: #663428;
}
 
/* Community section - dark */
html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-section-header {
    background-color: #3d3d3d;
    border-color: #676767;
}
 
html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card {
    background-color: #171a1d;
    border-color: #3d3d3d;
}
 
html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card-header {
    background-color: #3d3d3d;
    border-color: #676767;
}
 
html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card-footer {
    background-color: #171a1d;
    border-color: #3d3d3d;
}
 
/* OS night mode - exact same selectors and colors from your reference */
@media screen and (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .cs-header {
        background-color: #171a1d;
        border-color: #676767;
    }
   
    /* Programming section - OS dark */
    html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-section-header {
        background-color: #104437;
        border-color: #2f4d41;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card {
        background-color: #0b1e1c;
        border-color: #104437;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card-header {
        background-color: #104437;
        border-color: #2f4d41;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card-footer {
        background-color: #0b1e1c;
        border-color: #104437;
    }
   
    /* Data Science section - OS dark */
    html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-section-header {
        background-color: #082849;
        border-color: #a3b0bf;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card {
        background-color: #0d1a27;
        border-color: #082849;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card-header {
        background-color: #082849;
        border-color: #a3b0bf;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card-footer {
        background-color: #0d1a27;
        border-color: #082849;
    }
   
    /* Databases section - OS dark */
    html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-section-header {
        background-color: #882c43;
        border-color: #926c80;
    }
   
     html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card {
        background-color: #270e1a;
        border-color: #882c43;
     }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card-header {
        background-color: #882c43;
        border-color: #926c80;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card-footer {
        background-color: #270e1a;
        border-color: #882c43;
    }
   
    /* Infrastructure section - OS dark */
    html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-section-header {
        background-color: #7545ab;
        border-color: #afa3bf;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card {
        background-color: #130e20;
        border-color: #7545ab;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card-header {
        background-color: #7545ab;
        border-color: #afa3bf;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card-footer {
        background-color: #130e20;
        border-color: #7545ab;
    }
   
    /* CS Fundamentals section - OS dark */
    html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-section-header {
        background-color: #663428;
        border-color: #8a6b5c;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card {
        background-color: #331a00;
        border-color: #663428;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card-header {
        background-color: #663428;
        border-color: #8a6b5c;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card-footer {
        background-color: #331a00;
        border-color: #663428;
    }
   
    /* Community section - OS dark */
    html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-section-header {
        background-color: #3d3d3d;
        border-color: #676767;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card {
        background-color: #171a1d;
        border-color: #3d3d3d;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card-header {
        background-color: #3d3d3d;
        border-color: #676767;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card-footer {
        background-color: #171a1d;
        border-color: #3d3d3d;
    }
}
}


html.skin-theme-clientpref-night .cs-card-title {
/* Typography in dark mode */
     color: #e0e0e0;
html.skin-theme-clientpref-night .cs-title,
html.skin-theme-clientpref-os .cs-title {
     color: #fff;
}
}


html.skin-theme-clientpref-night .cs-card-body {
html.skin-theme-clientpref-night .cs-subtitle,
     color: #b0b0b0;
html.skin-theme-clientpref-night .cs-stats,
html.skin-theme-clientpref-os .cs-subtitle,
html.skin-theme-clientpref-os .cs-stats {
     color: #ccc;
}
}


html.skin-theme-clientpref-night .cs-card-footer {
html.skin-theme-clientpref-night .cs-section-title,
    background-color: #1e1e1e;
html.skin-theme-clientpref-night .cs-card-title,
     border-color: #333333;
html.skin-theme-clientpref-os .cs-section-title,
html.skin-theme-clientpref-os .cs-card-title {
     color: #fff;
}
}


html.skin-theme-clientpref-night .cs-card-footer a {
html.skin-theme-clientpref-night .cs-card-list li,
     color: #64b5f6;
html.skin-theme-clientpref-os .cs-card-list li {
     color: #ccc;
}
}


/* Mobile Responsiveness */
/* Responsive layout */
@media screen and (max-width: 800px) {
@media (max-width: 875px) {
     .cs-grid {
     .cs-grid {
         display: block;
         display: block;

Revision as of 18:42, 10 August 2025

/**
 * ComputerScience.wiki - Main Page Styles
 * Following Squadz/mediawiki/MediaWiki-Common.css color scheme
 */

/* Layout structure */
.cs-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.cs-header {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.cs-title {
    font-size: 2em;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.cs-subtitle {
    font-size: 1.1em;
    font-weight: normal;
    margin: 10px 0 0;
    color: #444;
}

.cs-stats {
    margin-top: 15px;
    font-size: 0.9em;
    color: #555;
}

/* Search */
.cs-search {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Section Headers - All in one container with aligned icon and title */
.cs-section {
    margin-bottom: 30px;
}

.cs-section-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.cs-section-icon {
    margin-right: 15px;
    font-size: 1.4em;
}

.cs-section-title {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

/* Grid Layout */
.cs-grid {
    display: table;
    width: 100%;
    border-spacing: 10px;
    border-collapse: separate;
    margin: 0 -10px;
}

.cs-row {
    display: table-row;
}

.cs-cell {
    display: table-cell;
    width: 33.333%;
    vertical-align: top;
}

/* Card Design */
.cs-card {
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    border: 1px solid #ddd;
}

.cs-card-header {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

.cs-card-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.cs-card-body {
    padding: 15px;
}

.cs-card-list {
    margin: 0;
    padding: 0 0 0 20px;
}

.cs-card-list li {
    margin-bottom: 10px;
}

.cs-card-footer {
    padding: 12px 15px;
    text-align: right;
    border-top: 1px solid #ddd;
}

/* Light theme colors - Using the same pastel colors from the reference */
@media screen {
    .cs-header {
        background-color: #f9f9f9;
        border-color: #ddd;
    }
    
    /* Programming section */
    .cs-section:nth-child(3) .cs-section-header {
        background-color: #cef2e0;
        border-color: #a3bfb1;
    }
    
    .cs-section:nth-child(3) .cs-card {
        background-color: #f5fffa;
        border-color: #cef2e0;
    }
    
    .cs-section:nth-child(3) .cs-card-header {
        background-color: #cef2e0;
        border-color: #a3bfb1;
    }
    
    .cs-section:nth-child(3) .cs-card-footer {
        background-color: #f5fffa;
        border-color: #cef2e0;
    }
    
    /* Data Science section */
    .cs-section:nth-child(4) .cs-section-header {
        background-color: #cedff2;
        border-color: #a3b0bf;
    }
    
    .cs-section:nth-child(4) .cs-card {
        background-color: #f5faff;
        border-color: #cedff2;
    }
    
    .cs-section:nth-child(4) .cs-card-header {
        background-color: #cedff2;
        border-color: #a3b0bf;
    }
    
    .cs-section:nth-child(4) .cs-card-footer {
        background-color: #f5faff;
        border-color: #cedff2;
    }
    
    /* Databases section */
    .cs-section:nth-child(5) .cs-section-header {
        background-color: #f2cedd;
        border-color: #bfa3af;
    }
    
    .cs-section:nth-child(5) .cs-card {
        background-color: #fff5fa;
        border-color: #f2cedd;
    }
    
    .cs-section:nth-child(5) .cs-card-header {
        background-color: #f2cedd;
        border-color: #bfa3af;
    }
    
    .cs-section:nth-child(5) .cs-card-footer {
        background-color: #fff5fa;
        border-color: #f2cedd;
    }
    
    /* Infrastructure section */
    .cs-section:nth-child(6) .cs-section-header {
        background-color: #ddcef2;
        border-color: #afa3bf;
    }
    
    .cs-section:nth-child(6) .cs-card {
        background-color: #faf5ff;
        border-color: #ddcef2;
    }
    
    .cs-section:nth-child(6) .cs-card-header {
        background-color: #ddcef2;
        border-color: #afa3bf;
    }
    
    .cs-section:nth-child(6) .cs-card-footer {
        background-color: #faf5ff;
        border-color: #ddcef2;
    }
    
    /* CS Fundamentals section */
    .cs-section:nth-child(7) .cs-section-header {
        background-color: #f2e0ce;
        border-color: #bfa38d;
    }
    
    .cs-section:nth-child(7) .cs-card {
        background-color: #fffaf5;
        border-color: #f2e0ce;
    }
    
    .cs-section:nth-child(7) .cs-card-header {
        background-color: #f2e0ce;
        border-color: #bfa38d;
    }
    
    .cs-section:nth-child(7) .cs-card-footer {
        background-color: #fffaf5;
        border-color: #f2e0ce;
    }
    
    /* Community section */
    .cs-section:nth-child(8) .cs-section-header {
        background-color: #eee;
        border-color: #ddd;
    }
    
    .cs-section:nth-child(8) .cs-card {
        background-color: #f9f9f9;
        border-color: #eee;
    }
    
    .cs-section:nth-child(8) .cs-card-header {
        background-color: #eee;
        border-color: #ddd;
    }
    
    .cs-section:nth-child(8) .cs-card-footer {
        background-color: #f9f9f9;
        border-color: #eee;
    }
}

/* Night mode - using the exact colors from your example */
html.skin-theme-clientpref-night .cs-header {
    background-color: #171a1d;
    border-color: #676767;
}

/* Programming section - dark */
html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-section-header {
    background-color: #104437;
    border-color: #2f4d41;
}

html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card {
    background-color: #0b1e1c;
    border-color: #104437;
}

html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card-header {
    background-color: #104437;
    border-color: #2f4d41;
}

html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card-footer {
    background-color: #0b1e1c;
    border-color: #104437;
}

/* Data Science section - dark */
html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-section-header {
    background-color: #082849;
    border-color: #a3b0bf;
}

html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card {
    background-color: #0d1a27;
    border-color: #082849;
}

html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card-header {
    background-color: #082849;
    border-color: #a3b0bf;
}

html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card-footer {
    background-color: #0d1a27;
    border-color: #082849;
}

/* Databases section - dark */
html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-section-header {
    background-color: #882c43;
    border-color: #926c80;
}

html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card {
    background-color: #270e1a;
    border-color: #882c43;
}

html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card-header {
    background-color: #882c43;
    border-color: #926c80;
}

html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card-footer {
    background-color: #270e1a;
    border-color: #882c43;
}

/* Infrastructure section - dark */
html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-section-header {
    background-color: #7545ab;
    border-color: #afa3bf;
}

html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card {
    background-color: #130e20;
    border-color: #7545ab;
}

html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card-header {
    background-color: #7545ab;
    border-color: #afa3bf;
}

html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card-footer {
    background-color: #130e20;
    border-color: #7545ab;
}

/* CS Fundamentals section - dark */
html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-section-header {
    background-color: #663428;
    border-color: #8a6b5c;
}

html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card {
    background-color: #331a00;
    border-color: #663428;
}

html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card-header {
    background-color: #663428;
    border-color: #8a6b5c;
}

html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card-footer {
    background-color: #331a00;
    border-color: #663428;
}

/* Community section - dark */
html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-section-header {
    background-color: #3d3d3d;
    border-color: #676767;
}

html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card {
    background-color: #171a1d;
    border-color: #3d3d3d;
}

html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card-header {
    background-color: #3d3d3d;
    border-color: #676767;
}

html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card-footer {
    background-color: #171a1d;
    border-color: #3d3d3d;
}

/* OS night mode - exact same selectors and colors from your reference */
@media screen and (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .cs-header {
        background-color: #171a1d;
        border-color: #676767;
    }
    
    /* Programming section - OS dark */
    html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-section-header {
        background-color: #104437;
        border-color: #2f4d41;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card {
        background-color: #0b1e1c;
        border-color: #104437;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card-header {
        background-color: #104437;
        border-color: #2f4d41;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card-footer {
        background-color: #0b1e1c;
        border-color: #104437;
    }
    
    /* Data Science section - OS dark */
    html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-section-header {
        background-color: #082849;
        border-color: #a3b0bf;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card {
        background-color: #0d1a27;
        border-color: #082849;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card-header {
        background-color: #082849;
        border-color: #a3b0bf;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card-footer {
        background-color: #0d1a27;
        border-color: #082849;
    }
    
    /* Databases section - OS dark */
    html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-section-header {
        background-color: #882c43;
        border-color: #926c80;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card {
        background-color: #270e1a;
        border-color: #882c43;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card-header {
        background-color: #882c43;
        border-color: #926c80;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card-footer {
        background-color: #270e1a;
        border-color: #882c43;
    }
    
    /* Infrastructure section - OS dark */
    html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-section-header {
        background-color: #7545ab;
        border-color: #afa3bf;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card {
        background-color: #130e20;
        border-color: #7545ab;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card-header {
        background-color: #7545ab;
        border-color: #afa3bf;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card-footer {
        background-color: #130e20;
        border-color: #7545ab;
    }
    
    /* CS Fundamentals section - OS dark */
    html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-section-header {
        background-color: #663428;
        border-color: #8a6b5c;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card {
        background-color: #331a00;
        border-color: #663428;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card-header {
        background-color: #663428;
        border-color: #8a6b5c;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card-footer {
        background-color: #331a00;
        border-color: #663428;
    }
    
    /* Community section - OS dark */
    html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-section-header {
        background-color: #3d3d3d;
        border-color: #676767;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card {
        background-color: #171a1d;
        border-color: #3d3d3d;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card-header {
        background-color: #3d3d3d;
        border-color: #676767;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card-footer {
        background-color: #171a1d;
        border-color: #3d3d3d;
    }
}

/* Typography in dark mode */
html.skin-theme-clientpref-night .cs-title,
html.skin-theme-clientpref-os .cs-title {
    color: #fff;
}

html.skin-theme-clientpref-night .cs-subtitle,
html.skin-theme-clientpref-night .cs-stats,
html.skin-theme-clientpref-os .cs-subtitle,
html.skin-theme-clientpref-os .cs-stats {
    color: #ccc;
}

html.skin-theme-clientpref-night .cs-section-title,
html.skin-theme-clientpref-night .cs-card-title,
html.skin-theme-clientpref-os .cs-section-title,
html.skin-theme-clientpref-os .cs-card-title {
    color: #fff;
}

html.skin-theme-clientpref-night .cs-card-list li,
html.skin-theme-clientpref-os .cs-card-list li {
    color: #ccc;
}

/* Responsive layout */
@media (max-width: 875px) {
    .cs-grid {
        display: block;
    }
    
    .cs-row {
        display: block;
    }
    
    .cs-cell {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
}