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

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

Template page
No edit summary
No edit summary
Line 1: Line 1:
/* Main Page Styles */
/**
#mp-topbanner {
* ComputerScience.wiki - Main Page Styles
    background-color: #f8f9fa;
* With fixed button width and single button
    padding: 0.5em;
*/
    margin-bottom: 1em;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
 
#mp-welcome {
    font-size: 1.2em;
    margin: 0;
    text-align: center;
}
 
#mp-welcome h1 {
    margin: 0.2em 0;
    border-bottom: none;
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
    font-size: 1.7em;
}


#mp-free {
/* Base container */
     text-align: center;
.cs-container {
    font-size: 1.1em;
     max-width: 1200px;
     margin-bottom: 0.5em;
     margin: 0 auto;
     color: #54595d;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
}


#articlecount {
/* Header */
.cs-header {
     text-align: center;
     text-align: center;
     font-size: 0.9em;
     padding: 30px 20px;
    color: #72777d;
     margin-bottom: 30px;
}
     border-radius: 8px;
 
     background-color: #f9f9f9;
#articlecount ul {
     border: 1px solid #ddd;
     margin: 0;
     display: inline-block;
    list-style: none;
     padding-left: 0;
}
 
#articlecount li {
    display: inline-block;
    margin: 0 1em;
}
 
.mp-box {
    margin-bottom: 1em;
    padding: 0;
     border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
}


.mp-h2 {
.cs-title {
    font-size: 2em;
    font-weight: 700;
     margin: 0;
     margin: 0;
    padding: 0.5em;
     color: #000;
    border-bottom: none;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    font-size: 1.3em;
    font-weight: bold;
     color: white;
}
 
#mp-tfa-h2, #mp-dyk-h2 {
    background: linear-gradient(to right, #36c, #1a6399);
}
 
#mp-itn-h2, #mp-otd-h2 {
    background: linear-gradient(to right, #c36, #9a1c43);
}
 
#mp-tfl-h2 {
    background: linear-gradient(to right, #36b, #274c89);
}
 
#mp-tfp-h2 {
    background: linear-gradient(to right, #4caf50, #2e7d32);
}
 
#mp-other {
    background: linear-gradient(to right, #673ab7, #4527a0);
    color: white;
}
 
#mp-sister {
    background: linear-gradient(to right, #ff9800, #e65100);
    color: white;
}
 
#mp-lang {
    background: linear-gradient(to right, #607d8b, #455a64);
    color: white;
}
}


.mp-contains-float {
.cs-subtitle {
    padding: 0.5em;
}
 
#mp-tfa, #mp-dyk {
    background-color: #f8f9fa;
}
 
#mp-itn, #mp-otd {
    background-color: #fef6f9;
}
 
#mp-tfl {
    background-color: #f5f8fa;
}
 
#mp-tfp {
    background-color: #f1f8e9;
}
 
#mp-other-content {
    background-color: #f3e5f5;
    padding: 0.5em;
}
 
#mp-sister-content {
    background-color: #fff3e0;
    padding: 0.5em;
}
 
/* Section grid layout for database, cybersecurity, and career sections */
.mp-section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
}
 
.mp-section-cell {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 0.8em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
 
.mp-section-cell h3 {
    margin-top: 0;
    border-bottom: 1px solid #eaecf0;
    padding-bottom: 0.3em;
     font-size: 1.1em;
     font-size: 1.1em;
    font-weight: normal;
    margin: 10px 0 0;
    color: #444;
}
}


.mp-section-cell ul {
/* Search */
     margin: 0.5em 0;
.cs-search {
     padding-left: 1.5em;
    max-width: 800px;
     margin: 0 auto 40px;
     padding: 25px;
    border-radius: 8px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}
}


.mp-section-cell li {
/* Search input - restore original background */
     margin-bottom: 0.3em;
.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;
}
}


.mp-section-link {
/* Search button */
     text-align: right;
.cs-search input[name="go"],
     margin-top: 0.5em;
.cs-search button[name="go"],
     font-size: 0.9em;
.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;
}
}


@media (max-width: 768px) {
/* Hide the second (fulltext) button */
    .mp-section-grid {
.cs-search input[name="fulltext"],
        grid-template-columns: 1fr;
.cs-search button[name="fulltext"],
    }
.cs-search input[value="Search full text"],
.cs-search button[value="Search full text"] {
    display: none !important;
}
}


/* BEGIN ALL REMAINING CSS FROM THE ORIGINAL FILE */
/* Grid Layout */
 
.cs-grid {
/* General page styling */
    display: table;
.MainPageBG {
     width: 100%;
     width: 100%;
     border: 1px solid #f0f0f0;
     border-spacing: 10px;
}
    border-collapse: separate;
 
     margin: 0 -10px;
#mp-upper {
     display: flex;
}
}


#mp-left {
.cs-row {
     flex: 1;
     display: table-row;
    margin-right: 0.5em;
}
}


#mp-right {
.cs-cell {
     flex: 1;
     display: table-cell;
     margin-left: 0.5em;
    width: 33.333%;
     vertical-align: top;
}
}


/* Column containers */
/* Section styling */
.hlist-separated ul {
.cs-section {
     margin: 0;
     margin-bottom: 30px;
}
}


.hlist-separated li {
.cs-section-header {
     display: inline-block;
     padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}
}


.hlist-separated li:after {
.cs-section-title {
    content: '•';
    margin: 0 0.5em;
    color: #aaa;
}
 
.hlist-separated li:last-child:after {
    content: '';
     margin: 0;
     margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}
}


/* Featured content boxes */
/* Card Design */
.main-box {
.cs-card {
    padding: 1em;
     border-radius: 6px;
    background-color: #ffffff;
     overflow: hidden;
     border-radius: 3px;
     height: 100%;
     margin-bottom: 1em;
     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
}


.feature-box {
.cs-card-header {
    background: #f9f9f9;
     padding: 12px 15px;
     padding: 1em;
    margin-bottom: 1em;
    border-left: 3px solid #36c;
    border-radius: 0 3px 3px 0;
}
}


.feature-box h3 {
.cs-card-title {
    margin-top: 0;
     margin: 0;
    color: #36c;
     font-size: 1.1em;
}
     font-weight: 600;
 
/* Topic grid */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
}
 
.topic-card {
    background: #fff;
    padding: 1em;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
 
.topic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
 
.topic-card h3 {
     margin-top: 0;
    border-bottom: 1px solid #eaecf0;
    padding-bottom: 0.5em;
     font-weight: 500;
}
 
/* News section */
.news-item {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid #eaecf0;
}
 
.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
 
.news-date {
    color: #72777d;
     font-size: 0.9em;
}
 
/* Additional utility classes */
.text-center {
    text-align: center;
}
 
.text-muted {
    color: #72777d;
}
 
.mb-2 {
    margin-bottom: 0.5em;
}
 
.mb-3 {
    margin-bottom: 1em;
}
 
.p-2 {
    padding: 0.5em;
}
 
.p-3 {
    padding: 1em;
}
 
/* Category links */
.category-links {
    background: #f8f9fa;
    padding: 0.7em;
    border-radius: 3px;
    margin-top: 1em;
}
}


.category-links h3 {
.cs-card-body {
     margin-top: 0;
     padding: 15px;
    font-size: 1.1em;
    color: #54595d;
}
}


.category-links ul {
.cs-card-list {
     margin: 0;
     margin: 0;
     padding: 0;
     padding: 0 0 0 20px;
    list-style: none;
    columns: 3;
}
}


.category-links li {
.cs-card-list li {
     margin-bottom: 0.3em;
     margin-bottom: 10px;
    break-inside: avoid;
}
}


/* Responsive layout */
/* Card footer with hover effects */
@media (max-width: 768px) {
.cs-card-footer {
    #mp-upper {
     padding: 8px 15px;
        flex-direction: column;
     text-align: right;
    }
   
    #mp-left, #mp-right {
        margin: 0 0 1em 0;
        width: 100%;
    }
   
    .topic-grid {
        grid-template-columns: 1fr;
    }
   
    .category-links ul {
        columns: 1;
    }
}
 
/* Color themes */
.theme-blue {
    border-top: 3px solid #36c;
}
 
.theme-green {
    border-top: 3px solid #00af89;
}
 
.theme-red {
     border-top: 3px solid #d33;
}
 
.theme-purple {
     border-top: 3px solid #6b4ba1;
}
}


.theme-orange {
/* Link hover effects */
    border-top: 3px solid #ff5d00;
.cs-card-footer a {
}
 
/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 2em;
    margin-left: 0.5em;
}
 
.badge-blue {
    background-color: #36c;
    color: white;
}
 
.badge-green {
    background-color: #00af89;
    color: white;
}
 
.badge-red {
    background-color: #d33;
    color: white;
}
 
/* Button styles */
.btn {
    display: inline-block;
    padding: 0.5em 1em;
    border-radius: 3px;
     text-decoration: none;
     text-decoration: none;
     font-weight: 500;
     position: relative;
     transition: background-color 0.2s ease;
    padding-bottom: 2px;
     transition: all 0.2s ease-in-out;
}
}


.btn-primary {
.cs-card-footer a:hover {
    background-color: #36c;
     opacity: 0.85;
     color: white;
}
}


.btn-primary:hover {
.cs-card-footer a::after {
     background-color: #447ff5;
     content: '';
     text-decoration: none;
    position: absolute;
     color: white;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
     background-color: currentColor;
     transition: width 0.3s ease;
}
}


.btn-outline {
.cs-card-footer a:hover::after {
    background-color: transparent;
     width: 100%;
    border: 1px solid #36c;
     color: #36c;
}
}


.btn-outline:hover {
/* Section color schemes */
     background-color: #eaf3ff;
/* Programming */
     text-decoration: none;
.cs-section:nth-child(3) .cs-section-header {
     background-color: #cef2e0;
     border: 1px solid #cef2e0;
}
}


/* Featured image */
.cs-section:nth-child(3) .cs-card {
.featured-image {
     background-color: #f5fffa;
     margin: 1em 0;
    border: 1px solid #cef2e0;
}
}


.featured-image img {
.cs-section:nth-child(3) .cs-card-header {
     max-width: 100%;
     background-color: #cef2e0;
    height: auto;
     border-bottom: 1px solid #cef2e0;
     border-radius: 3px;
}
}


.image-caption {
.cs-section:nth-child(3) .cs-card-footer {
     font-size: 0.9em;
     background-color: #f5fffa;
    color: #54595d;
     border-top: 1px solid #cef2e0;
    text-align: center;
     margin-top: 0.5em;
}
}


/* Quote box */
.cs-section:nth-child(3) .cs-card-footer a {
.quote-box {
     color: #2e8b57;
    font-family: 'Georgia', serif;
    font-style: italic;
    padding: 1em 1.5em;
    margin: 1em 0;
     background-color: #f8f9fa;
    border-left: 3px solid #c8ccd1;
}
}


.quote-source {
/* Data Science */
    display: block;
.cs-section:nth-child(4) .cs-section-header {
    text-align: right;
     background-color: #cedff2;
    font-style: normal;
     border: 1px solid #cedff2;
     font-size: 0.9em;
     margin-top: 0.5em;
}
}


/* Progress indicators */
.cs-section:nth-child(4) .cs-card {
.progress-bar {
     background-color: #f5faff;
    width: 100%;
     border: 1px solid #cedff2;
     background-color: #eaecf0;
    height: 0.8em;
     border-radius: 0.4em;
    overflow: hidden;
    margin: 0.5em 0;
}
}


.progress-fill {
.cs-section:nth-child(4) .cs-card-header {
     height: 100%;
     background-color: #cedff2;
     background-color: #36c;
     border-bottom: 1px solid #cedff2;
}
}


/* Card layout */
.cs-section:nth-child(4) .cs-card-footer {
.card {
     background-color: #f5faff;
     background: white;
     border-top: 1px solid #cedff2;
     border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    padding: 1em;
    margin-bottom: 1em;
}
}


.card-header {
.cs-section:nth-child(4) .cs-card-footer a {
     border-bottom: 1px solid #eaecf0;
     color: #4169e1;
    padding-bottom: 0.5em;
    margin-bottom: 0.5em;
}
}


.card-title {
/* Databases */
     margin: 0;
.cs-section:nth-child(5) .cs-section-header {
     font-weight: 500;
     background-color: #f2cedd;
     border: 1px solid #f2cedd;
}
}


.card-footer {
.cs-section:nth-child(5) .cs-card {
    border-top: 1px solid #eaecf0;
     background-color: #fff5fa;
    padding-top: 0.5em;
     border: 1px solid #f2cedd;
     margin-top: 0.5em;
     text-align: right;
}
}


/* Timeline */
.cs-section:nth-child(5) .cs-card-header {
.timeline {
     background-color: #f2cedd;
     position: relative;
     border-bottom: 1px solid #f2cedd;
     margin: 1em 0 1em 1em;
}
}


.timeline:before {
.cs-section:nth-child(5) .cs-card-footer {
     content: '';
     background-color: #fff5fa;
    position: absolute;
     border-top: 1px solid #f2cedd;
    left: 0;
     top: 0;
    height: 100%;
    width: 2px;
    background: #eaecf0;
}
}


.timeline-item {
.cs-section:nth-child(5) .cs-card-footer a {
    position: relative;
     color: #db7093;
    padding-left: 1.5em;
     margin-bottom: 1em;
}
}


.timeline-item:before {
/* Infrastructure */
    content: '';
.cs-section:nth-child(6) .cs-section-header {
    position: absolute;
     background-color: #ddcef2;
    left: -5px;
     border: 1px solid #ddcef2;
    top: 0.5em;
    width: 12px;
    height: 12px;
     background: white;
     border: 2px solid #36c;
    border-radius: 50%;
}
}


.timeline-date {
.cs-section:nth-child(6) .cs-card {
     font-weight: bold;
     background-color: #faf5ff;
     margin-bottom: 0.3em;
     border: 1px solid #ddcef2;
}
}


/* Tab navigation */
.cs-section:nth-child(6) .cs-card-header {
.tab-nav {
     background-color: #ddcef2;
     display: flex;
     border-bottom: 1px solid #ddcef2;
     border-bottom: 1px solid #eaecf0;
    margin-bottom: 1em;
}
}


.tab-item {
.cs-section:nth-child(6) .cs-card-footer {
    padding: 0.5em 1em;
     background-color: #faf5ff;
     cursor: pointer;
     border-top: 1px solid #ddcef2;
     border-bottom: 2px solid transparent;
    margin-right: 1em;
}
}


.tab-item.active {
.cs-section:nth-child(6) .cs-card-footer a {
     border-bottom-color: #36c;
     color: #8a2be2;
    font-weight: bold;
}
}


/* Alert boxes */
/* CS Fundamentals */
.alert {
.cs-section:nth-child(7) .cs-section-header {
    padding: 0.75em 1em;
     background-color: #f2e0ce;
     border-radius: 3px;
     border: 1px solid #f2e0ce;
     margin: 1em 0;
}
}


.alert-info {
.cs-section:nth-child(7) .cs-card {
     background-color: #eaf3ff;
     background-color: #fffaf5;
     border-left: 3px solid #36c;
     border: 1px solid #f2e0ce;
}
}


.alert-success {
.cs-section:nth-child(7) .cs-card-header {
     background-color: #f3fff8;
     background-color: #f2e0ce;
     border-left: 3px solid #00af89;
     border-bottom: 1px solid #f2e0ce;
}
}


.alert-warning {
.cs-section:nth-child(7) .cs-card-footer {
     background-color: #fef6e7;
     background-color: #fffaf5;
     border-left: 3px solid #ff5d00;
     border-top: 1px solid #f2e0ce;
}
}


.alert-danger {
.cs-section:nth-child(7) .cs-card-footer a {
     background-color: #fee7e6;
     color: #d2691e;
    border-left: 3px solid #d33;
}
}


/* Stats counter */
/* Community */
.stats-counter {
.cs-section:nth-child(8) .cs-section-header {
    display: flex;
     background-color: #eee;
    justify-content: space-around;
     border: 1px solid #eee;
     text-align: center;
     margin: 1em 0;
}
}


.stats-item {
.cs-section:nth-child(8) .cs-card {
     padding: 0.5em;
     background-color: #f9f9f9;
    border: 1px solid #eee;
}
}


.stats-number {
.cs-section:nth-child(8) .cs-card-header {
    font-size: 1.5em;
     background-color: #eee;
     font-weight: bold;
     border-bottom: 1px solid #eee;
     display: block;
    margin-bottom: 0.2em;
}
}


.stats-label {
.cs-section:nth-child(8) .cs-card-footer {
     color: #54595d;
     background-color: #f9f9f9;
     font-size: 0.9em;
     border-top: 1px solid #eee;
}
}


/* Feature list */
.cs-section:nth-child(8) .cs-card-footer a {
.feature-list {
     color: #444;
     list-style: none;
    padding: 0;
    margin: 1em 0;
}
}


.feature-list li {
/* Dark mode theme toggle */
     padding-left: 1.5em;
@media screen {
    position: relative;
    /* Dark mode styles */
    margin-bottom: 0.5em;
    html.skin-theme-clientpref-night .cs-header,
}
     html.skin-theme-clientpref-os .cs-header {
        background-color: #171a1d;
        border-color: #676767;
    }


.feature-list li:before {
    html.skin-theme-clientpref-night .cs-title,
     content: '✓';
     html.skin-theme-clientpref-os .cs-title {
    position: absolute;
        color: #fff;
    left: 0;
     }
    color: #00af89;
     font-weight: bold;
}


/* Image grid */
    html.skin-theme-clientpref-night .cs-subtitle,
.image-grid {
     html.skin-theme-clientpref-os .cs-subtitle {
     display: grid;
        color: #ccc;
    grid-template-columns: repeat(3, 1fr);
     }
    gap: 1em;
     margin: 1em 0;
}


.image-grid-item img {
    html.skin-theme-clientpref-night .cs-search,
     width: 100%;
     html.skin-theme-clientpref-os .cs-search {
    height: auto;
        background-color: #252525;
    border-radius: 3px;
        border-color: #676767;
}
    }


@media (max-width: 768px) {
    html.skin-theme-clientpref-night .cs-search input[type="search"],
     .image-grid {
    html.skin-theme-clientpref-night .cs-search input[type="text"],
         grid-template-columns: repeat(2, 1fr);
    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;
     }
     }
}


/* Collapsible sections */
    html.skin-theme-clientpref-night .cs-search input[type="submit"],
.collapsible-header {
    html.skin-theme-clientpref-night .cs-search button[type="submit"],
     background: #f8f9fa;
     html.skin-theme-clientpref-os .cs-search input[type="submit"],
     padding: 0.5em;
     html.skin-theme-clientpref-os .cs-search button[type="submit"] {
    cursor: pointer;
        background-color: #444 !important;
    border-radius: 3px;
        border-color: #555 !important;
    margin: 0.5em 0;
        color: #fff !important;
}
    }


.collapsible-header:after {
    html.skin-theme-clientpref-night .cs-search input[type="submit"]:hover,
     content: '▼';
     html.skin-theme-clientpref-night .cs-search button[type="submit"]:hover,
     float: right;
     html.skin-theme-clientpref-os .cs-search input[type="submit"]:hover,
     transform: rotate(0);
     html.skin-theme-clientpref-os .cs-search button[type="submit"]:hover {
    transition: transform 0.3s ease;
        background-color: #555 !important;
}
    }


.collapsible-header.collapsed:after {
    /* Dark text colors */
    transform: rotate(-90deg);
    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;
    }


.collapsible-content {
    html.skin-theme-clientpref-night .cs-card-list li,
    padding: 0.5em;
    html.skin-theme-clientpref-os .cs-card-list li {
     display: none;
        color: #ccc;
     }
}
}


/* Tooltips */
/* Dark mode section colors - condensed */
.tooltip {
@media screen {
     position: relative;
    /* Programming section - dark */
     display: inline-block;
    html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-section-header,
     border-bottom: 1px dotted #c8ccd1;
    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;
    }


.tooltip .tooltip-text {
    /* Data Science section - dark */
     visibility: hidden;
    html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-section-header,
    background-color: #333;
     html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-section-header {
    color: white;
        background-color: #082849;
     text-align: center;
        border-color: #082849;
    border-radius: 3px;
     }
     padding: 0.5em;
    html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card,
     position: absolute;
    html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card {
    z-index: 1;
        background-color: #0d1a27;
     bottom: 125%;
        border-color: #082849;
     left: 50%;
     }
     transform: translateX(-50%);
    html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card-header,
     opacity: 0;
     html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card-header {
     transition: opacity 0.3s;
        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;
    }


.tooltip:hover .tooltip-text {
    /* Databases section - dark */
     visibility: visible;
    html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-section-header,
     opacity: 1;
    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;
    }


/* Rating stars */
    /* Infrastructure section - dark */
.rating {
    html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-section-header,
     display: inline-block;
    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;
    }


.rating .star {
    /* CS Fundamentals section - dark */
     color: #ddd;
    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;
    }


.rating .star.filled {
    /* Community section - dark */
     color: #ffb900;
    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;
    }
}
}


/* Tags */
/* OS dark mode detection through prefers-color-scheme */
.tag {
@media (prefers-color-scheme: dark) {
    display: inline-block;
     /* Dark mode handled through class combinations above */
    background: #eaecf0;
    color: #54595d;
    padding: 0.2em 0.6em;
    border-radius: 2em;
     margin-right: 0.5em;
    font-size: 0.9em;
}
}


.tag:hover {
/* Responsive layout */
     background: #c8ccd1;
@media (max-width: 875px) {
     text-decoration: none;
    .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;
    }
}
}


/* Footer */
/* Extra small screens */
.footer {
@media (max-width: 480px) {
     margin-top: 2em;
     .cs-search {
    padding-top: 1em;
        padding: 10px;
     border-top: 1px solid #eaecf0;
     }
     color: #72777d;
      
     font-size: 0.9em;
     .cs-card-header,
}
     .cs-card-body {
 
        padding: 10px;
.footer-links {
    }
    display: flex;
   
    justify-content: center;
    .cs-title {
     flex-wrap: wrap;
        font-size: 1.6em;
}
     }
 
.footer-links a {
    margin: 0 1em;
}
 
.footer-text {
    text-align: center;
     margin-top: 1em;
}
}
/* Additional color themes for section backgrounds */
.bg-light {
    background-color: #f8f9fa;
}
.bg-lighter {
    background-color: #fafbfc;
}
.bg-blue-light {
    background-color: #eaf3ff;
}
.bg-green-light {
    background-color: #f3fff8;
}
.bg-red-light {
    background-color: #fee7e6;
}
.bg-yellow-light {
    background-color: #fef6e7;
}
.bg-purple-light {
    background-color: #f3e5f5;
}
/* END OF ORIGINAL CSS */

Revision as of 01:52, 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;
    }
}