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
  * Updated based on current repository state
  * Based on latest Squadz/mediawiki repository changes
  */
  */


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;
}
}
Line 24: Line 23:
     font-weight: 700;
     font-weight: 700;
     margin: 0;
     margin: 0;
    color: #000;
}
}


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


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


/* Search - UPDATED: bigger box, lighter input background */
/* Search - UPDATED: bigger and better styling */
.cs-search {
.cs-search {
     max-width: 800px; /* Increased from 600px */
     max-width: 800px; /* Increased width */
     margin: 0 auto 40px;
     margin: 0 auto 40px;
     padding: 20px; /* Increased padding */
     padding: 20px;
     border-radius: 8px;
     border-radius: 8px;
    border: 1px solid #ddd;
}
}


/* Style for the search input inside inputbox */
.cs-search input[type="search"],
.cs-search input[type="search"],  
.cs-search input[type="text"] {
.cs-search input[type="text"] {
    background-color: #ffffff;
     padding: 10px;
     padding: 10px;
     border-radius: 4px;
     border-radius: 4px;
    border: 1px solid #ddd;
     width: calc(100% - 22px);
     width: calc(100% - 20px);
    box-sizing: border-box;
    font-size: 16px;
}
 
.cs-search input[type="submit"] {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}
}


Line 70: Line 72:
     margin-bottom: 20px;
     margin-bottom: 20px;
     border-radius: 6px;
     border-radius: 6px;
    border: 1px solid #ddd;
}
}


Line 108: Line 109:
     overflow: hidden;
     overflow: hidden;
     height: 100%;
     height: 100%;
    border: 1px solid #ddd;
}
}


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


Line 135: Line 134:
}
}


/* UPDATED: card footer with simpler styling without pre tags */
/* UPDATED: card footer without pre tag issues */
.cs-card-footer {
.cs-card-footer {
     padding: 8px 15px; /* Reduced padding */
     padding: 8px 15px; /* Reduced padding */
     text-align: right;
     text-align: right;
    border-top: 1px solid #ddd;
}
}


/* Remove pre tag styling that might be coming from MediaWiki */
/* Override pre tag styling that might be coming from MediaWiki */
.cs-card-footer pre {
.cs-card-footer pre {
     margin: 0;
     margin: 0;
     padding: 0;
     padding: 0;
     background: transparent;
     background: transparent !important;
     border: none;
     border: none !important;
     white-space: normal;
     white-space: normal;
     font-family: inherit;
     font-family: inherit;
     font-size: inherit;
     font-size: inherit;
    color: inherit;
    display: inline;
    line-height: inherit;
}
/* Fix for specific links styling in footer */
.cs-card-footer a,
.cs-card-footer a:visited {
    text-decoration: none;
}
}


Line 157: Line 164:
     .cs-header {
     .cs-header {
         background-color: #f9f9f9;
         background-color: #f9f9f9;
         border-color: #ddd;
         border: 1px solid #ddd;
    }
   
    .cs-title {
        color: #000;
    }
   
    .cs-subtitle, .cs-stats {
        color: #444;
     }
     }
      
      
     .cs-search {
     .cs-search {
         background-color: #f5f5f5; /* Slightly darker than white */
         background-color: #f5f5f5;
         border-color: #ddd;
         border: 1px solid #ddd;
    }
   
    .cs-search input[type="search"],
    .cs-search input[type="text"] {
        background-color: #ffffff;
        border: 1px solid #ddd;
        color: #333;
    }
   
    .cs-search input[type="submit"] {
        background-color: #f0f0f0;
        border: 1px solid #ddd;
        color: #333;
    }
   
    .cs-search input[type="submit"]:hover {
        background-color: #e0e0e0;
     }
     }
      
      
Line 168: Line 200:
     .cs-section:nth-child(3) .cs-section-header {
     .cs-section:nth-child(3) .cs-section-header {
         background-color: #cef2e0;
         background-color: #cef2e0;
         border-color: #a3bfb1;
         border: 1px solid #a3bfb1;
     }
     }
      
      
     .cs-section:nth-child(3) .cs-card {
     .cs-section:nth-child(3) .cs-card {
         background-color: #f5fffa;
         background-color: #f5fffa;
         border-color: #cef2e0;
         border: 1px solid #cef2e0;
     }
     }
      
      
     .cs-section:nth-child(3) .cs-card-header {
     .cs-section:nth-child(3) .cs-card-header {
         background-color: #cef2e0;
         background-color: #cef2e0;
         border-color: #a3bfb1;
         border-bottom: 1px solid #a3bfb1;
     }
     }
      
      
     .cs-section:nth-child(3) .cs-card-footer {
     .cs-section:nth-child(3) .cs-card-footer {
         background-color: #f5fffa;
         background-color: #f5fffa;
         border-color: #cef2e0;
         border-top: 1px solid #cef2e0;
    }
   
    .cs-section:nth-child(3) .cs-card-footer a {
        color: #2e8b57;
     }
     }
      
      
Line 189: Line 225:
     .cs-section:nth-child(4) .cs-section-header {
     .cs-section:nth-child(4) .cs-section-header {
         background-color: #cedff2;
         background-color: #cedff2;
         border-color: #a3b0bf;
         border: 1px solid #a3b0bf;
     }
     }
      
      
     .cs-section:nth-child(4) .cs-card {
     .cs-section:nth-child(4) .cs-card {
         background-color: #f5faff;
         background-color: #f5faff;
         border-color: #cedff2;
         border: 1px solid #cedff2;
     }
     }
      
      
     .cs-section:nth-child(4) .cs-card-header {
     .cs-section:nth-child(4) .cs-card-header {
         background-color: #cedff2;
         background-color: #cedff2;
         border-color: #a3b0bf;
         border-bottom: 1px solid #a3b0bf;
     }
     }
      
      
     .cs-section:nth-child(4) .cs-card-footer {
     .cs-section:nth-child(4) .cs-card-footer {
         background-color: #f5faff;
         background-color: #f5faff;
         border-color: #cedff2;
         border-top: 1px solid #cedff2;
    }
   
    .cs-section:nth-child(4) .cs-card-footer a {
        color: #4169e1;
     }
     }
      
      
Line 210: Line 250:
     .cs-section:nth-child(5) .cs-section-header {
     .cs-section:nth-child(5) .cs-section-header {
         background-color: #f2cedd;
         background-color: #f2cedd;
         border-color: #bfa3af;
         border: 1px solid #bfa3af;
     }
     }
      
      
     .cs-section:nth-child(5) .cs-card {
     .cs-section:nth-child(5) .cs-card {
         background-color: #fff5fa;
         background-color: #fff5fa;
         border-color: #f2cedd;
         border: 1px solid #f2cedd;
     }
     }
      
      
     .cs-section:nth-child(5) .cs-card-header {
     .cs-section:nth-child(5) .cs-card-header {
         background-color: #f2cedd;
         background-color: #f2cedd;
         border-color: #bfa3af;
         border-bottom: 1px solid #bfa3af;
     }
     }
      
      
     .cs-section:nth-child(5) .cs-card-footer {
     .cs-section:nth-child(5) .cs-card-footer {
         background-color: #fff5fa;
         background-color: #fff5fa;
         border-color: #f2cedd;
         border-top: 1px solid #f2cedd;
    }
   
    .cs-section:nth-child(5) .cs-card-footer a {
        color: #db7093;
     }
     }
      
      
Line 231: Line 275:
     .cs-section:nth-child(6) .cs-section-header {
     .cs-section:nth-child(6) .cs-section-header {
         background-color: #ddcef2;
         background-color: #ddcef2;
         border-color: #afa3bf;
         border: 1px solid #afa3bf;
     }
     }
      
      
     .cs-section:nth-child(6) .cs-card {
     .cs-section:nth-child(6) .cs-card {
         background-color: #faf5ff;
         background-color: #faf5ff;
         border-color: #ddcef2;
         border: 1px solid #ddcef2;
     }
     }
      
      
     .cs-section:nth-child(6) .cs-card-header {
     .cs-section:nth-child(6) .cs-card-header {
         background-color: #ddcef2;
         background-color: #ddcef2;
         border-color: #afa3bf;
         border-bottom: 1px solid #afa3bf;
     }
     }
      
      
     .cs-section:nth-child(6) .cs-card-footer {
     .cs-section:nth-child(6) .cs-card-footer {
         background-color: #faf5ff;
         background-color: #faf5ff;
         border-color: #ddcef2;
         border-top: 1px solid #ddcef2;
    }
   
    .cs-section:nth-child(6) .cs-card-footer a {
        color: #8a2be2;
     }
     }
      
      
Line 252: Line 300:
     .cs-section:nth-child(7) .cs-section-header {
     .cs-section:nth-child(7) .cs-section-header {
         background-color: #f2e0ce;
         background-color: #f2e0ce;
         border-color: #bfa38d;
         border: 1px solid #bfa38d;
     }
     }
      
      
     .cs-section:nth-child(7) .cs-card {
     .cs-section:nth-child(7) .cs-card {
         background-color: #fffaf5;
         background-color: #fffaf5;
         border-color: #f2e0ce;
         border: 1px solid #f2e0ce;
     }
     }
      
      
     .cs-section:nth-child(7) .cs-card-header {
     .cs-section:nth-child(7) .cs-card-header {
         background-color: #f2e0ce;
         background-color: #f2e0ce;
         border-color: #bfa38d;
         border-bottom: 1px solid #bfa38d;
     }
     }
      
      
     .cs-section:nth-child(7) .cs-card-footer {
     .cs-section:nth-child(7) .cs-card-footer {
         background-color: #fffaf5;
         background-color: #fffaf5;
         border-color: #f2e0ce;
         border-top: 1px solid #f2e0ce;
    }
   
    .cs-section:nth-child(7) .cs-card-footer a {
        color: #d2691e;
     }
     }
      
      
Line 273: Line 325:
     .cs-section:nth-child(8) .cs-section-header {
     .cs-section:nth-child(8) .cs-section-header {
         background-color: #eee;
         background-color: #eee;
         border-color: #ddd;
         border: 1px solid #ddd;
     }
     }
      
      
     .cs-section:nth-child(8) .cs-card {
     .cs-section:nth-child(8) .cs-card {
         background-color: #f9f9f9;
         background-color: #f9f9f9;
         border-color: #eee;
         border: 1px solid #eee;
     }
     }
      
      
     .cs-section:nth-child(8) .cs-card-header {
     .cs-section:nth-child(8) .cs-card-header {
         background-color: #eee;
         background-color: #eee;
         border-color: #ddd;
         border-bottom: 1px solid #ddd;
     }
     }
      
      
     .cs-section:nth-child(8) .cs-card-footer {
     .cs-section:nth-child(8) .cs-card-footer {
         background-color: #f9f9f9;
         background-color: #f9f9f9;
         border-color: #eee;
         border-top: 1px solid #eee;
    }
   
    .cs-section:nth-child(8) .cs-card-footer a {
        color: #444;
     }
     }
}
}


/* Night mode */
/* Night mode - using colors from your updated repository */
html.skin-theme-clientpref-night .cs-header {
html.skin-theme-clientpref-night .cs-header {
     background-color: #171a1d;
     background-color: #171a1d;
Line 298: Line 354:
}
}


/* UPDATED: Dark mode search box */
html.skin-theme-clientpref-night .cs-title {
    color: #fff;
}
 
html.skin-theme-clientpref-night .cs-subtitle,
html.skin-theme-clientpref-night .cs-stats {
    color: #ccc;
}
 
/* UPDATED: Dark mode search */
html.skin-theme-clientpref-night .cs-search {
html.skin-theme-clientpref-night .cs-search {
     background-color: #252525;
     background-color: #252525;
Line 309: Line 374:
     color: #fff;
     color: #fff;
     border-color: #555;
     border-color: #555;
}
html.skin-theme-clientpref-night .cs-search input[type="submit"] {
    background-color: #444;
    border-color: #555;
    color: #fff;
}
html.skin-theme-clientpref-night .cs-search input[type="submit"]:hover {
    background-color: #555;
}
}


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


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


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


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


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


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


Line 444: Line 543:
     }
     }
      
      
     /* UPDATED: OS dark mode search box */
    html.skin-theme-clientpref-os .cs-title {
        color: #fff;
    }
   
    html.skin-theme-clientpref-os .cs-subtitle,
    html.skin-theme-clientpref-os .cs-stats {
        color: #ccc;
    }
   
     /* OS dark mode search */
     html.skin-theme-clientpref-os .cs-search {
     html.skin-theme-clientpref-os .cs-search {
         background-color: #252525;
         background-color: #252525;
Line 455: Line 563:
         color: #fff;
         color: #fff;
         border-color: #555;
         border-color: #555;
    }
   
    html.skin-theme-clientpref-os .cs-search input[type="submit"] {
        background-color: #444;
        border-color: #555;
        color: #fff;
    }
   
    html.skin-theme-clientpref-os .cs-search input[type="submit"]:hover {
        background-color: #555;
     }
     }
      
      
Line 476: Line 594:
         background-color: #0b1e1c;
         background-color: #0b1e1c;
         border-color: #104437;
         border-color: #104437;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card-footer a {
        color: #8fbc8f;
     }
     }
      
      
Line 497: Line 619:
         background-color: #0d1a27;
         background-color: #0d1a27;
         border-color: #082849;
         border-color: #082849;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card-footer a {
        color: #87cefa;
     }
     }
      
      
Line 518: Line 644:
         background-color: #270e1a;
         background-color: #270e1a;
         border-color: #882c43;
         border-color: #882c43;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card-footer a {
        color: #ffb6c1;
     }
     }
      
      
Line 539: Line 669:
         background-color: #130e20;
         background-color: #130e20;
         border-color: #7545ab;
         border-color: #7545ab;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card-footer a {
        color: #da70d6;
     }
     }
      
      
Line 560: Line 694:
         background-color: #331a00;
         background-color: #331a00;
         border-color: #663428;
         border-color: #663428;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card-footer a {
        color: #ffa500;
     }
     }
      
      
Line 581: Line 719:
         background-color: #171a1d;
         background-color: #171a1d;
         border-color: #3d3d3d;
         border-color: #3d3d3d;
    }
   
    html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card-footer a {
        color: #ccc;
     }
     }
}
}


/* Typography in dark mode */
/* Typography */
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-section-title,
html.skin-theme-clientpref-night .cs-card-title,
html.skin-theme-clientpref-night .cs-card-title,
Line 623: Line 753:
         width: 100%;
         width: 100%;
         margin-bottom: 15px;
         margin-bottom: 15px;
    }
   
    .cs-search {
        padding: 15px;
     }
     }
}
}

Revision as of 19:20, 10 August 2025

/**
 * ComputerScience.wiki - Main Page Styles
 * Based on latest Squadz/mediawiki repository changes
 */

/* Base container */
.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-radius: 8px;
}

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

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

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

/* Search - UPDATED: bigger and better styling */
.cs-search {
    max-width: 800px; /* Increased width */
    margin: 0 auto 40px;
    padding: 20px;
    border-radius: 8px;
}

.cs-search input[type="search"],
.cs-search input[type="text"] {
    padding: 10px;
    border-radius: 4px;
    width: calc(100% - 22px);
    box-sizing: border-box;
    font-size: 16px;
}

.cs-search input[type="submit"] {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

/* Section Headers */
.cs-section {
    margin-bottom: 30px;
}

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

.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%;
}

.cs-card-header {
    padding: 12px 15px;
}

.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;
}

/* UPDATED: card footer without pre tag issues */
.cs-card-footer {
    padding: 8px 15px; /* Reduced padding */
    text-align: right;
}

/* Override pre tag styling that might be coming from MediaWiki */
.cs-card-footer pre {
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: none !important;
    white-space: normal;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    display: inline;
    line-height: inherit;
}

/* Fix for specific links styling in footer */
.cs-card-footer a, 
.cs-card-footer a:visited {
    text-decoration: none;
}

/* Light theme colors */
@media screen {
    .cs-header {
        background-color: #f9f9f9;
        border: 1px solid #ddd;
    }
    
    .cs-title {
        color: #000;
    }
    
    .cs-subtitle, .cs-stats {
        color: #444;
    }
    
    .cs-search {
        background-color: #f5f5f5;
        border: 1px solid #ddd;
    }
    
    .cs-search input[type="search"],
    .cs-search input[type="text"] {
        background-color: #ffffff;
        border: 1px solid #ddd;
        color: #333;
    }
    
    .cs-search input[type="submit"] {
        background-color: #f0f0f0;
        border: 1px solid #ddd;
        color: #333;
    }
    
    .cs-search input[type="submit"]:hover {
        background-color: #e0e0e0;
    }
    
    /* Programming section */
    .cs-section:nth-child(3) .cs-section-header {
        background-color: #cef2e0;
        border: 1px solid #a3bfb1;
    }
    
    .cs-section:nth-child(3) .cs-card {
        background-color: #f5fffa;
        border: 1px solid #cef2e0;
    }
    
    .cs-section:nth-child(3) .cs-card-header {
        background-color: #cef2e0;
        border-bottom: 1px solid #a3bfb1;
    }
    
    .cs-section:nth-child(3) .cs-card-footer {
        background-color: #f5fffa;
        border-top: 1px solid #cef2e0;
    }
    
    .cs-section:nth-child(3) .cs-card-footer a {
        color: #2e8b57;
    }
    
    /* Data Science section */
    .cs-section:nth-child(4) .cs-section-header {
        background-color: #cedff2;
        border: 1px solid #a3b0bf;
    }
    
    .cs-section:nth-child(4) .cs-card {
        background-color: #f5faff;
        border: 1px solid #cedff2;
    }
    
    .cs-section:nth-child(4) .cs-card-header {
        background-color: #cedff2;
        border-bottom: 1px solid #a3b0bf;
    }
    
    .cs-section:nth-child(4) .cs-card-footer {
        background-color: #f5faff;
        border-top: 1px solid #cedff2;
    }
    
    .cs-section:nth-child(4) .cs-card-footer a {
        color: #4169e1;
    }
    
    /* Databases section */
    .cs-section:nth-child(5) .cs-section-header {
        background-color: #f2cedd;
        border: 1px solid #bfa3af;
    }
    
    .cs-section:nth-child(5) .cs-card {
        background-color: #fff5fa;
        border: 1px solid #f2cedd;
    }
    
    .cs-section:nth-child(5) .cs-card-header {
        background-color: #f2cedd;
        border-bottom: 1px solid #bfa3af;
    }
    
    .cs-section:nth-child(5) .cs-card-footer {
        background-color: #fff5fa;
        border-top: 1px solid #f2cedd;
    }
    
    .cs-section:nth-child(5) .cs-card-footer a {
        color: #db7093;
    }
    
    /* Infrastructure section */
    .cs-section:nth-child(6) .cs-section-header {
        background-color: #ddcef2;
        border: 1px solid #afa3bf;
    }
    
    .cs-section:nth-child(6) .cs-card {
        background-color: #faf5ff;
        border: 1px solid #ddcef2;
    }
    
    .cs-section:nth-child(6) .cs-card-header {
        background-color: #ddcef2;
        border-bottom: 1px solid #afa3bf;
    }
    
    .cs-section:nth-child(6) .cs-card-footer {
        background-color: #faf5ff;
        border-top: 1px solid #ddcef2;
    }
    
    .cs-section:nth-child(6) .cs-card-footer a {
        color: #8a2be2;
    }
    
    /* CS Fundamentals section */
    .cs-section:nth-child(7) .cs-section-header {
        background-color: #f2e0ce;
        border: 1px solid #bfa38d;
    }
    
    .cs-section:nth-child(7) .cs-card {
        background-color: #fffaf5;
        border: 1px solid #f2e0ce;
    }
    
    .cs-section:nth-child(7) .cs-card-header {
        background-color: #f2e0ce;
        border-bottom: 1px solid #bfa38d;
    }
    
    .cs-section:nth-child(7) .cs-card-footer {
        background-color: #fffaf5;
        border-top: 1px solid #f2e0ce;
    }
    
    .cs-section:nth-child(7) .cs-card-footer a {
        color: #d2691e;
    }
    
    /* Community section */
    .cs-section:nth-child(8) .cs-section-header {
        background-color: #eee;
        border: 1px solid #ddd;
    }
    
    .cs-section:nth-child(8) .cs-card {
        background-color: #f9f9f9;
        border: 1px solid #eee;
    }
    
    .cs-section:nth-child(8) .cs-card-header {
        background-color: #eee;
        border-bottom: 1px solid #ddd;
    }
    
    .cs-section:nth-child(8) .cs-card-footer {
        background-color: #f9f9f9;
        border-top: 1px solid #eee;
    }
    
    .cs-section:nth-child(8) .cs-card-footer a {
        color: #444;
    }
}

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

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

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

/* UPDATED: Dark mode search */
html.skin-theme-clientpref-night .cs-search {
    background-color: #252525;
    border-color: #676767;
}

html.skin-theme-clientpref-night .cs-search input[type="search"],
html.skin-theme-clientpref-night .cs-search input[type="text"] {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

html.skin-theme-clientpref-night .cs-search input[type="submit"] {
    background-color: #444;
    border-color: #555;
    color: #fff;
}

html.skin-theme-clientpref-night .cs-search input[type="submit"]:hover {
    background-color: #555;
}

/* 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;
}

html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card-footer a {
    color: #8fbc8f;
}

/* 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;
}

html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card-footer a {
    color: #87cefa;
}

/* 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;
}

html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card-footer a {
    color: #ffb6c1;
}

/* 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;
}

html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card-footer a {
    color: #da70d6;
}

/* 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;
}

html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card-footer a {
    color: #ffa500;
}

/* 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;
}

html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card-footer a {
    color: #ccc;
}

/* OS night mode */
@media screen and (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .cs-header {
        background-color: #171a1d;
        border-color: #676767;
    }
    
    html.skin-theme-clientpref-os .cs-title {
        color: #fff;
    }
    
    html.skin-theme-clientpref-os .cs-subtitle, 
    html.skin-theme-clientpref-os .cs-stats {
        color: #ccc;
    }
    
    /* OS dark mode search */
    html.skin-theme-clientpref-os .cs-search {
        background-color: #252525;
        border-color: #676767;
    }
    
    html.skin-theme-clientpref-os .cs-search input[type="search"],
    html.skin-theme-clientpref-os .cs-search input[type="text"] {
        background-color: #333;
        color: #fff;
        border-color: #555;
    }
    
    html.skin-theme-clientpref-os .cs-search input[type="submit"] {
        background-color: #444;
        border-color: #555;
        color: #fff;
    }
    
    html.skin-theme-clientpref-os .cs-search input[type="submit"]:hover {
        background-color: #555;
    }
    
    /* 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;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card-footer a {
        color: #8fbc8f;
    }
    
    /* 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;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card-footer a {
        color: #87cefa;
    }
    
    /* 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;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card-footer a {
        color: #ffb6c1;
    }
    
    /* 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;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card-footer a {
        color: #da70d6;
    }
    
    /* 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;
    }
    
    html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card-footer a {
        color: #ffa500;
    }
    
    /* 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-os .cs-section:nth-child(8) .cs-card-footer a {
        color: #ccc;
    }
}

/* Typography */
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;
    }
    
    .cs-search {
        padding: 15px;
    }
}