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
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
/**
/**
  * ComputerScience.wiki - Main Page Styles
  * ComputerScience.wiki - Main Page Styles
  * Following Squadz/mediawiki/MediaWiki-Common.css color scheme
  * With fixed button width and single button
  */
  */


/* Layout structure */
/* Base container */
.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-radius: 8px;
    background-color: #f9f9f9;
     border: 1px solid #ddd;
     border: 1px solid #ddd;
    border-radius: 8px;
}
}


Line 32: Line 33:
     margin: 10px 0 0;
     margin: 10px 0 0;
     color: #444;
     color: #444;
}
.cs-stats {
    margin-top: 15px;
    font-size: 0.9em;
    color: #555;
}
}


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


/* Section Headers - All in one container with aligned icon and title */
/* Search input - restore original background */
.cs-section {
.cs-search input[type="search"],
     margin-bottom: 30px;
.cs-search input[type="text"],
.cs-search .mw-searchInput,
.cs-search .cdx-text-input__input {
     background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    height: 40px !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    color: #333 !important;
    width: 100% !important;
}
}


.cs-section-header {
/* Search button */
     display: flex;
.cs-search input[name="go"],
     align-items: center;
.cs-search button[name="go"],
     padding: 12px 15px;
.cs-search input[type="submit"],
     margin-bottom: 20px;
.cs-search button[type="submit"],
     border-radius: 6px;
.cs-search .oo-ui-buttonElement-button {
     border: 1px solid #ddd;
     width: 80px !important;
     max-width: 80px !important;
     min-width: 80px !important;
     background-color: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    height: 40px !important;
    padding: 5px 8px !important;
     border-radius: 4px !important;
     color: #333 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}
}


.cs-section-title {
/* Hide the second (fulltext) button */
    margin: 0;
.cs-search input[name="fulltext"],
    font-size: 1.3em;
.cs-search button[name="fulltext"],
     font-weight: 600;
.cs-search input[value="Search full text"],
.cs-search button[value="Search full text"] {
     display: none !important;
}
}


Line 86: Line 104:
     width: 33.333%;
     width: 33.333%;
     vertical-align: top;
     vertical-align: top;
}
/* Section styling */
.cs-section {
    margin-bottom: 30px;
}
.cs-section-header {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}
.cs-section-title {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}
}


Line 93: Line 128:
     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 120: Line 153:
}
}


/* Card footer with hover effects */
.cs-card-footer {
.cs-card-footer {
     padding: 12px 15px;
     padding: 8px 15px;
     text-align: right;
     text-align: right;
    border-top: 1px solid #ddd;
}
}


/* Light theme colors - Using the same pastel colors from the reference */
/* Link hover effects */
@media screen {
.cs-card-footer a {
    .cs-header {
    text-decoration: none;
        background-color: #f9f9f9;
     position: relative;
        border-color: #ddd;
     padding-bottom: 2px;
     }
     transition: all 0.2s ease-in-out;
   
}
    /* Programming section */
 
    .cs-section:nth-child(3) .cs-section-header {
.cs-card-footer a:hover {
        background-color: #cef2e0;
     opacity: 0.85;
        border-color: #a3bfb1;
}
     }
 
   
.cs-card-footer a::after {
    .cs-section:nth-child(3) .cs-card {
     content: '';
        background-color: #f5fffa;
    position: absolute;
        border-color: #cef2e0;
     width: 0;
    }
    height: 1px;
   
     bottom: 0;
     .cs-section:nth-child(3) .cs-card-header {
    left: 0;
        background-color: #cef2e0;
     background-color: currentColor;
        border-color: #a3bfb1;
     transition: width 0.3s ease;
    }
}
   
 
    .cs-section:nth-child(3) .cs-card-footer {
.cs-card-footer a:hover::after {
        background-color: #f5fffa;
     width: 100%;
        border-color: #cef2e0;
}
    }
 
   
/* Section color schemes */
    /* Data Science section */
/* Programming */
     .cs-section:nth-child(4) .cs-section-header {
.cs-section:nth-child(3) .cs-section-header {
        background-color: #cedff2;
    background-color: #cef2e0;
        border-color: #a3b0bf;
    border: 1px solid #cef2e0;
    }
}
   
 
    .cs-section:nth-child(4) .cs-card {
.cs-section:nth-child(3) .cs-card {
        background-color: #f5faff;
    background-color: #f5fffa;
        border-color: #cedff2;
    border: 1px solid #cef2e0;
     }
}
   
 
    .cs-section:nth-child(4) .cs-card-header {
.cs-section:nth-child(3) .cs-card-header {
        background-color: #cedff2;
    background-color: #cef2e0;
        border-color: #a3b0bf;
    border-bottom: 1px solid #cef2e0;
     }
}
   
 
    .cs-section:nth-child(4) .cs-card-footer {
.cs-section:nth-child(3) .cs-card-footer {
        background-color: #f5faff;
     background-color: #f5fffa;
        border-color: #cedff2;
     border-top: 1px solid #cef2e0;
     }
}
   
 
    /* Databases section */
.cs-section:nth-child(3) .cs-card-footer a {
    .cs-section:nth-child(5) .cs-section-header {
    color: #2e8b57;
        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 */
/* Data Science */
html.skin-theme-clientpref-night .cs-header {
.cs-section:nth-child(4) .cs-section-header {
     background-color: #171a1d;
     background-color: #cedff2;
     border-color: #676767;
     border: 1px solid #cedff2;
}
}


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


html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card {
.cs-section:nth-child(4) .cs-card-header {
     background-color: #0b1e1c;
     background-color: #cedff2;
     border-color: #104437;
     border-bottom: 1px solid #cedff2;
}
}


html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card-header {
.cs-section:nth-child(4) .cs-card-footer {
     background-color: #104437;
     background-color: #f5faff;
     border-color: #2f4d41;
     border-top: 1px solid #cedff2;
}
}


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


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


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


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


html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card-footer {
.cs-section:nth-child(5) .cs-card-footer {
     background-color: #0d1a27;
     background-color: #fff5fa;
     border-color: #082849;
     border-top: 1px solid #f2cedd;
}
}


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


html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card {
/* Infrastructure */
     background-color: #270e1a;
.cs-section:nth-child(6) .cs-section-header {
     border-color: #882c43;
     background-color: #ddcef2;
     border: 1px solid #ddcef2;
}
}


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


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


/* Infrastructure section - dark */
.cs-section:nth-child(6) .cs-card-footer {
html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-section-header {
     background-color: #faf5ff;
     background-color: #7545ab;
     border-top: 1px solid #ddcef2;
     border-color: #afa3bf;
}
}


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


html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card-header {
/* CS Fundamentals */
     background-color: #7545ab;
.cs-section:nth-child(7) .cs-section-header {
     border-color: #afa3bf;
     background-color: #f2e0ce;
     border: 1px solid #f2e0ce;
}
}


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


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


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


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


html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card-footer {
/* Community */
     background-color: #331a00;
.cs-section:nth-child(8) .cs-section-header {
     border-color: #663428;
     background-color: #eee;
     border: 1px solid #eee;
}
}


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


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


html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card-header {
.cs-section:nth-child(8) .cs-card-footer {
     background-color: #3d3d3d;
     background-color: #f9f9f9;
     border-color: #676767;
     border-top: 1px solid #eee;
}
}


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


/* OS night mode - exact same selectors and colors from your reference */
/* Dark mode theme toggle */
@media screen and (prefers-color-scheme: dark) {
@media screen {
    /* Dark mode styles */
    html.skin-theme-clientpref-night .cs-header,
     html.skin-theme-clientpref-os .cs-header {
     html.skin-theme-clientpref-os .cs-header {
         background-color: #171a1d;
         background-color: #171a1d;
         border-color: #676767;
         border-color: #676767;
     }
     }
      
 
     /* Programming section - OS dark */
    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-os .cs-subtitle {
        color: #ccc;
    }
 
    html.skin-theme-clientpref-night .cs-search,
    html.skin-theme-clientpref-os .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"],
    html.skin-theme-clientpref-night .cs-search .mw-searchInput,
    html.skin-theme-clientpref-night .cs-search .cdx-text-input__input,
    html.skin-theme-clientpref-os .cs-search input[type="search"],
     html.skin-theme-clientpref-os .cs-search input[type="text"],
    html.skin-theme-clientpref-os .cs-search .mw-searchInput,
    html.skin-theme-clientpref-os .cs-search .cdx-text-input__input {
        background-color: #1f1f1f !important;
        color: #fff !important;
        border-color: #555 !important;
    }
 
    html.skin-theme-clientpref-night .cs-search input[type="submit"],
    html.skin-theme-clientpref-night .cs-search button[type="submit"],
    html.skin-theme-clientpref-os .cs-search input[type="submit"],
    html.skin-theme-clientpref-os .cs-search button[type="submit"] {
        background-color: #444 !important;
        border-color: #555 !important;
        color: #fff !important;
    }
 
    html.skin-theme-clientpref-night .cs-search input[type="submit"]:hover,
    html.skin-theme-clientpref-night .cs-search button[type="submit"]:hover,
    html.skin-theme-clientpref-os .cs-search input[type="submit"]:hover,
    html.skin-theme-clientpref-os .cs-search button[type="submit"]:hover {
        background-color: #555 !important;
    }
 
    /* Dark text colors */
    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;
    }
}
 
/* Dark mode section colors - condensed */
@media screen {
     /* Programming section - dark */
    html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-section-header,
     html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-section-header {
     html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-section-header {
         background-color: #104437;
         background-color: #104437;
         border-color: #2f4d41;
         border-color: #104437;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card,
     html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card {
     html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card {
         background-color: #0b1e1c;
         background-color: #0b1e1c;
         border-color: #104437;
         border-color: #104437;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card-header,
     html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card-header {
     html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card-header {
         background-color: #104437;
         background-color: #104437;
         border-color: #2f4d41;
         border-color: #104437;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card-footer,
     html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card-footer {
     html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card-footer {
         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,
     /* Data Science section - OS dark */
    html.skin-theme-clientpref-os .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,
     html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-section-header {
     html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-section-header {
         background-color: #082849;
         background-color: #082849;
         border-color: #a3b0bf;
         border-color: #082849;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card,
     html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card {
     html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card {
         background-color: #0d1a27;
         background-color: #0d1a27;
         border-color: #082849;
         border-color: #082849;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card-header,
     html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card-header {
     html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card-header {
         background-color: #082849;
         background-color: #082849;
         border-color: #a3b0bf;
         border-color: #082849;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card-footer,
     html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card-footer {
     html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card-footer {
         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,
     /* Databases section - OS dark */
    html.skin-theme-clientpref-os .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,
     html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-section-header {
     html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-section-header {
         background-color: #882c43;
         background-color: #882c43;
         border-color: #926c80;
         border-color: #882c43;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card,
     html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card {
     html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card {
         background-color: #270e1a;
         background-color: #270e1a;
         border-color: #882c43;
         border-color: #882c43;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card-header,
     html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card-header {
     html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card-header {
         background-color: #882c43;
         background-color: #882c43;
         border-color: #926c80;
         border-color: #882c43;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card-footer,
     html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card-footer {
     html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card-footer {
         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,
     /* Infrastructure section - OS dark */
    html.skin-theme-clientpref-os .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,
     html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-section-header {
     html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-section-header {
         background-color: #7545ab;
         background-color: #7545ab;
         border-color: #afa3bf;
         border-color: #7545ab;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card,
     html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card {
     html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card {
         background-color: #130e20;
         background-color: #130e20;
         border-color: #7545ab;
         border-color: #7545ab;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card-header,
     html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card-header {
     html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card-header {
         background-color: #7545ab;
         background-color: #7545ab;
         border-color: #afa3bf;
         border-color: #7545ab;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card-footer,
     html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card-footer {
     html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card-footer {
         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,
     /* CS Fundamentals section - OS dark */
    html.skin-theme-clientpref-os .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,
     html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-section-header {
     html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-section-header {
         background-color: #663428;
         background-color: #663428;
         border-color: #8a6b5c;
         border-color: #663428;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card,
     html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card {
     html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card {
         background-color: #331a00;
         background-color: #331a00;
         border-color: #663428;
         border-color: #663428;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card-header,
     html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card-header {
     html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card-header {
         background-color: #663428;
         background-color: #663428;
         border-color: #8a6b5c;
         border-color: #663428;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card-footer,
     html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card-footer {
     html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card-footer {
         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,
     /* Community section - OS dark */
    html.skin-theme-clientpref-os .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,
     html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-section-header {
     html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-section-header {
         background-color: #3d3d3d;
         background-color: #3d3d3d;
         border-color: #676767;
         border-color: #3d3d3d;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card,
     html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card {
     html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card {
         background-color: #171a1d;
         background-color: #171a1d;
         border-color: #3d3d3d;
         border-color: #3d3d3d;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card-header,
     html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card-header {
     html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card-header {
         background-color: #3d3d3d;
         background-color: #3d3d3d;
         border-color: #676767;
         border-color: #3d3d3d;
     }
     }
      
     html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card-footer,
     html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card-footer {
     html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card-footer {
         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,
    html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card-footer a {
        color: #ccc;
     }
     }
}
}


/* Typography in dark mode */
/* OS dark mode detection through prefers-color-scheme */
html.skin-theme-clientpref-night .cs-title,
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .cs-title {
     /* Dark mode handled through class combinations above */
    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 */
/* Responsive layout */
@media (max-width: 875px) {
@media (max-width: 875px) {
    .cs-title {
        font-size: 1.8em;
    }
   
    .cs-subtitle {
        font-size: 1em;
    }
   
    .cs-search {
        padding: 15px;
    }
   
    /* Convert grid table to blocks on mobile */
     .cs-grid {
     .cs-grid {
         display: block;
         display: block;
        width: 100%;
        margin: 0;
        padding: 0 10px;
        box-sizing: border-box;
     }
     }
      
      
Line 565: Line 600:
         width: 100%;
         width: 100%;
         margin-bottom: 15px;
         margin-bottom: 15px;
    }
   
    .cs-card {
        width: 100%;
        margin: 0 0 15px 0;
    }
   
    .cs-section-header {
        text-align: center;
        padding: 10px;
    }
   
    .cs-section-title {
        font-size: 1.2em;
    }
}
/* Extra small screens */
@media (max-width: 480px) {
    .cs-search {
        padding: 10px;
    }
   
    .cs-card-header,
    .cs-card-body {
        padding: 10px;
    }
   
    .cs-title {
        font-size: 1.6em;
     }
     }
}
}

Latest revision as of 15:51, 12 August 2025

/**
 * ComputerScience.wiki - Main Page Styles
 * With fixed button width and single button
 */

/* 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;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

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

/* Search */
.cs-search {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 25px;
    border-radius: 8px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}

/* Search input - restore original background */
.cs-search input[type="search"],
.cs-search input[type="text"],
.cs-search .mw-searchInput,
.cs-search .cdx-text-input__input {
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    height: 40px !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    color: #333 !important;
    width: 100% !important;
}

/* Search button */
.cs-search input[name="go"],
.cs-search button[name="go"],
.cs-search input[type="submit"],
.cs-search button[type="submit"],
.cs-search .oo-ui-buttonElement-button {
    width: 80px !important;
    max-width: 80px !important;
    min-width: 80px !important;
    background-color: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    height: 40px !important;
    padding: 5px 8px !important;
    border-radius: 4px !important;
    color: #333 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

/* Hide the second (fulltext) button */
.cs-search input[name="fulltext"],
.cs-search button[name="fulltext"],
.cs-search input[value="Search full text"],
.cs-search button[value="Search full text"] {
    display: none !important;
}

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

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

.cs-section-header {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}

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

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

/* Card footer with hover effects */
.cs-card-footer {
    padding: 8px 15px;
    text-align: right;
}

/* Link hover effects */
.cs-card-footer a {
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.2s ease-in-out;
}

.cs-card-footer a:hover {
    opacity: 0.85;
}

.cs-card-footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.cs-card-footer a:hover::after {
    width: 100%;
}

/* Section color schemes */
/* Programming */
.cs-section:nth-child(3) .cs-section-header {
    background-color: #cef2e0;
    border: 1px solid #cef2e0;
}

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

.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 */
.cs-section:nth-child(4) .cs-section-header {
    background-color: #cedff2;
    border: 1px solid #cedff2;
}

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

.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 */
.cs-section:nth-child(5) .cs-section-header {
    background-color: #f2cedd;
    border: 1px solid #f2cedd;
}

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

.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 */
.cs-section:nth-child(6) .cs-section-header {
    background-color: #ddcef2;
    border: 1px solid #ddcef2;
}

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

.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 */
.cs-section:nth-child(7) .cs-section-header {
    background-color: #f2e0ce;
    border: 1px solid #f2e0ce;
}

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

.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 */
.cs-section:nth-child(8) .cs-section-header {
    background-color: #eee;
    border: 1px solid #eee;
}

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

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

/* Dark mode theme toggle */
@media screen {
    /* Dark mode styles */
    html.skin-theme-clientpref-night .cs-header,
    html.skin-theme-clientpref-os .cs-header {
        background-color: #171a1d;
        border-color: #676767;
    }

    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-os .cs-subtitle {
        color: #ccc;
    }

    html.skin-theme-clientpref-night .cs-search,
    html.skin-theme-clientpref-os .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"],
    html.skin-theme-clientpref-night .cs-search .mw-searchInput,
    html.skin-theme-clientpref-night .cs-search .cdx-text-input__input,
    html.skin-theme-clientpref-os .cs-search input[type="search"],
    html.skin-theme-clientpref-os .cs-search input[type="text"],
    html.skin-theme-clientpref-os .cs-search .mw-searchInput,
    html.skin-theme-clientpref-os .cs-search .cdx-text-input__input {
        background-color: #1f1f1f !important;
        color: #fff !important;
        border-color: #555 !important;
    }

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

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

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

/* Dark mode section colors - condensed */
@media screen {
    /* Programming section - dark */
    html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-section-header,
    html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-section-header {
        background-color: #104437;
        border-color: #104437;
    }
    html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card,
    html.skin-theme-clientpref-os .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,
    html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card-header {
        background-color: #104437;
        border-color: #104437;
    }
    html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card-footer,
    html.skin-theme-clientpref-os .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,
    html.skin-theme-clientpref-os .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,
    html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-section-header {
        background-color: #082849;
        border-color: #082849;
    }
    html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card,
    html.skin-theme-clientpref-os .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,
    html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card-header {
        background-color: #082849;
        border-color: #082849;
    }
    html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card-footer,
    html.skin-theme-clientpref-os .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,
    html.skin-theme-clientpref-os .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,
    html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-section-header {
        background-color: #882c43;
        border-color: #882c43;
    }
    html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card,
    html.skin-theme-clientpref-os .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,
    html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card-header {
        background-color: #882c43;
        border-color: #882c43;
    }
    html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card-footer,
    html.skin-theme-clientpref-os .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,
    html.skin-theme-clientpref-os .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,
    html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-section-header {
        background-color: #7545ab;
        border-color: #7545ab;
    }
    html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card,
    html.skin-theme-clientpref-os .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,
    html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card-header {
        background-color: #7545ab;
        border-color: #7545ab;
    }
    html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card-footer,
    html.skin-theme-clientpref-os .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,
    html.skin-theme-clientpref-os .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,
    html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-section-header {
        background-color: #663428;
        border-color: #663428;
    }
    html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card,
    html.skin-theme-clientpref-os .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,
    html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card-header {
        background-color: #663428;
        border-color: #663428;
    }
    html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card-footer,
    html.skin-theme-clientpref-os .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,
    html.skin-theme-clientpref-os .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,
    html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-section-header {
        background-color: #3d3d3d;
        border-color: #3d3d3d;
    }
    html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card,
    html.skin-theme-clientpref-os .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,
    html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card-header {
        background-color: #3d3d3d;
        border-color: #3d3d3d;
    }
    html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card-footer,
    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-section:nth-child(8) .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card-footer a {
        color: #ccc;
    }
}

/* OS dark mode detection through prefers-color-scheme */
@media (prefers-color-scheme: dark) {
    /* Dark mode handled through class combinations above */
}

/* Responsive layout */
@media (max-width: 875px) {
    .cs-title {
        font-size: 1.8em;
    }
    
    .cs-subtitle {
        font-size: 1em;
    }
    
    .cs-search {
        padding: 15px;
    }
    
    /* Convert grid table to blocks on mobile */
    .cs-grid {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .cs-row {
        display: block;
    }
    
    .cs-cell {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .cs-card {
        width: 100%;
        margin: 0 0 15px 0;
    }
    
    .cs-section-header {
        text-align: center;
        padding: 10px;
    }
    
    .cs-section-title {
        font-size: 1.2em;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .cs-search {
        padding: 10px;
    }
    
    .cs-card-header, 
    .cs-card-body {
        padding: 10px;
    }
    
    .cs-title {
        font-size: 1.6em;
    }
}