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
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CONTAINER & FONTS */
/**
.cs-home-container {
* ComputerScience.wiki - Final Fix
* 1. Responsive Grid
* 2. EXACT colors from your original file
* 3. FIX: Added 'clientpref-os' for automatic dark mode support
*/
 
/* --- 1. CONTAINER & TYPOGRAPHY --- */
.cs-container {
     max-width: 1200px;
     max-width: 1200px;
     margin: 0 auto;
     margin: 0 auto;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
     color: #1a1a1a;
     padding: 0 10px;
}
}


/* --- HERO SECTION (The Terminal Look) --- */
/* --- 2. HEADER --- */
.cs-hero {
.cs-header {
    background-color: #0f172a; /* Dark Navy */
    color: #f8fafc;
    padding: 60px 20px;
    border-radius: 12px;
     text-align: center;
     text-align: center;
     margin-bottom: 40px;
    padding: 30px 20px;
     position: relative;
     margin-bottom: 30px;
     overflow: hidden;
     border-radius: 8px;
     border: 1px solid #1e293b;
     background-color: #f9f9f9;
     border: 1px solid #ddd;
}
}


.cs-hero h1 {
.cs-title {
     font-size: 2.5em;
     font-size: 2em;
     font-weight: 800;
     font-weight: 700;
     margin: 0 0 15px 0;
     margin: 0;
     color: #ffffff;
     color: #000;
     border: none;
     border: none;
    line-height: 1.2;
}
}


.cs-hero-tag {
.cs-subtitle {
    font-family: 'Courier New', monospace;
    color: #4ade80; /* Terminal Green */
    background: rgba(74, 222, 128, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}
 
.cs-hero p {
     font-size: 1.1em;
     font-size: 1.1em;
     color: #94a3b8;
     font-weight: normal;
     max-width: 600px;
     margin: 10px 0 0;
     margin: 0 auto 30px auto;
     color: #444;
}
}


/* --- SEARCH BAR --- */
/* --- 3. SEARCH BAR --- */
.cs-search-box {
.cs-search {
     max-width: 500px;
     max-width: 800px;
     margin: 0 auto;
     margin: 0 auto 40px;
    background: #ffffff;
     padding: 25px;
     padding: 8px;
     border-radius: 8px;
     border-radius: 8px;
     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
     background-color: #f5f5f5;
    border: 1px solid #ddd;
}
}


/* Overriding MW InputBox defaults */
.cs-search input[type="search"],
.cs-search-box input {
.cs-search .mw-searchInput {
     border: none !important;
    background-color: #ffffff !important;
     background: transparent !important;
     border: 1px solid #ddd !important;
     outline: none !important;
    height: 40px !important;
     padding: 5px 12px !important;
     border-radius: 4px !important;
     font-size: 16px !important;
     font-size: 16px !important;
     color: #333 !important;
     color: #333 !important;
Line 65: Line 61:
}
}


/* --- BENTO GRID LAYOUT --- */
.cs-search input[type="submit"],
.cs-bento-grid {
.cs-search .oo-ui-buttonElement-button {
    min-width: 80px !important;
    background-color: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    height: 40px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    color: #333 !important;
}
 
.cs-search input[name="fulltext"] { display: none !important; }
 
/* --- 4. GRID LAYOUT --- */
.cs-grid {
     display: grid;
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: minmax(180px, auto);
     gap: 20px;
     gap: 20px;
     margin-bottom: 40px;
     margin-bottom: 30px;
}
}


/* CARD STYLES */
/* --- 5. CARDS & SECTIONS (Light Mode Defaults) --- */
.cs-tile {
.cs-section { margin-bottom: 30px; }
    background: #ffffff;
.cs-section-header { padding: 12px 15px; margin-bottom: 20px; border-radius: 6px; }
    border: 1px solid #e2e8f0;
.cs-section-title { margin: 0; font-size: 1.3em; font-weight: 600; border: none; }
     border-radius: 12px;
 
     padding: 24px;
.cs-card {
     transition: transform 0.2s ease, box-shadow 0.2s ease;
     border-radius: 6px;
     overflow: hidden;
     height: 100%;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     position: relative;
     border-width: 1px;
     overflow: hidden;
     border-style: solid;
    transition: transform 0.2s;
}
}


.cs-tile:hover {
.cs-card:hover { transform: translateY(-3px); }
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}


/* Typography inside tiles */
.cs-card-header { padding: 12px 15px; }
.cs-tile h3 {
.cs-card-title { margin: 0; font-size: 1.1em; font-weight: 600; border: none; }
    margin-top: 0;
.cs-card-body { padding: 15px; flex-grow: 1; }
    font-size: 1.2em;
.cs-card-list { margin: 0; padding: 0 0 0 10px; list-style: none; }
    border: none;
.cs-card-list li { margin-bottom: 8px; }
    font-weight: 700;
.cs-card-footer { padding: 8px 15px; text-align: right; font-weight: bold; }
    margin-bottom: 10px;
.cs-card-footer a { text-decoration: none; }
}


.cs-tile ul {
/* ========================================================= */
    list-style: none;
/* === COLOR THEMES (Light Mode) === */
    margin: 0;
/* ========================================================= */
    padding: 0;
    font-size: 0.95em;
}


.cs-tile ul li {
/* PROGRAMMING (Green) */
    margin-bottom: 6px;
.cs-section.prog .cs-section-header { background-color: #cef2e0; border: 1px solid #cef2e0; }
    padding-left: 0;
.cs-section.prog .cs-card { background-color: #f5fffa; border-color: #cef2e0; }
}
.cs-section.prog .cs-card-header { background-color: #cef2e0; border-bottom: 1px solid #cef2e0; }
.cs-section.prog .cs-card-footer { background-color: #f5fffa; border-top: 1px solid #cef2e0; }
.cs-section.prog .cs-card-footer a { color: #2e8b57; }


.cs-tile ul li a {
/* DATA SCIENCE (Blue) */
    text-decoration: none;
.cs-section.data .cs-section-header { background-color: #cedff2; border: 1px solid #cedff2; }
    color: #475569;
.cs-section.data .cs-card { background-color: #f5faff; border-color: #cedff2; }
    display: block;
.cs-section.data .cs-card-header { background-color: #cedff2; border-bottom: 1px solid #cedff2; }
    padding: 2px 0;
.cs-section.data .cs-card-footer { background-color: #f5faff; border-top: 1px solid #cedff2; }
}
.cs-section.data .cs-card-footer a { color: #4169e1; }


.cs-tile ul li a:hover {
/* DATABASES (Pink) */
    color: #2563eb; /* Blue hover */
.cs-section.db .cs-section-header { background-color: #f2cedd; border: 1px solid #f2cedd; }
    padding-left: 4px; /* Slide effect */
.cs-section.db .cs-card { background-color: #fff5fa; border-color: #f2cedd; }
    transition: padding 0.2s;
.cs-section.db .cs-card-header { background-color: #f2cedd; border-bottom: 1px solid #f2cedd; }
}
.cs-section.db .cs-card-footer { background-color: #fff5fa; border-top: 1px solid #f2cedd; }
.cs-section.db .cs-card-footer a { color: #db7093; }


.cs-tile-footer {
/* INFRASTRUCTURE (Purple) */
    margin-top: auto;
.cs-section.inf .cs-section-header { background-color: #ddcef2; border: 1px solid #ddcef2; }
    padding-top: 15px;
.cs-section.inf .cs-card { background-color: #faf5ff; border-color: #ddcef2; }
    font-size: 0.85em;
.cs-section.inf .cs-card-header { background-color: #ddcef2; border-bottom: 1px solid #ddcef2; }
    font-weight: bold;
.cs-section.inf .cs-card-footer { background-color: #faf5ff; border-top: 1px solid #ddcef2; }
    text-transform: uppercase;
.cs-section.inf .cs-card-footer a { color: #8a2be2; }
    letter-spacing: 0.5px;
}


.cs-tile-footer a {
/* FUNDAMENTALS (Orange) */
    text-decoration: none;
.cs-section.fund .cs-section-header { background-color: #f2e0ce; border: 1px solid #f2e0ce; }
    color: #0f172a;
.cs-section.fund .cs-card { background-color: #fffaf5; border-color: #f2e0ce; }
}
.cs-section.fund .cs-card-header { background-color: #f2e0ce; border-bottom: 1px solid #f2e0ce; }
.cs-section.fund .cs-card-footer { background-color: #fffaf5; border-top: 1px solid #f2e0ce; }
.cs-section.fund .cs-card-footer a { color: #d2691e; }


/* --- FEATURED TILES (Bento Sizing) --- */
/* COMMUNITY (Grey) */
/* The "Big" Feature Tile (Span 2 cols, 2 rows) */
.cs-section.comm .cs-section-header { background-color: #eee; border: 1px solid #eee; }
.cs-span-2-2 {
.cs-section.comm .cs-card { background-color: #f9f9f9; border-color: #eee; }
    grid-column: span 2;
.cs-section.comm .cs-card-header { background-color: #eee; border-bottom: 1px solid #eee; }
    grid-row: span 2;
.cs-section.comm .cs-card-footer { background-color: #f9f9f9; border-top: 1px solid #eee; }
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
.cs-section.comm .cs-card-footer a { color: #444; }
    color: white;
    border: none;
}


.cs-span-2-2 h3, .cs-span-2-2 a { color: white !important; }
.cs-span-2-2 ul li a:hover { color: #bfdbfe; }


/* Wide Tiles (Span 2 cols) */
/* ========================================================= */
.cs-span-2 { grid-column: span 2; }
/* === DARK MODE FIX (Citizen Skin) === */
/* ========================================================= */


/* Tall Tiles (Span 2 rows) */
@media screen {
.cs-span-row-2 { grid-row: span 2; }
    /* 1. Global Components - Dark Mode */
    html.skin-theme-clientpref-night .cs-header,
    html.skin-theme-clientpref-os .cs-header {
        background-color: #171a1d !important;
        border-color: #676767 !important;
    }
    html.skin-theme-clientpref-night .cs-title,
    html.skin-theme-clientpref-os .cs-title { color: #fff !important; }
    html.skin-theme-clientpref-night .cs-subtitle,
    html.skin-theme-clientpref-os .cs-subtitle { color: #ccc !important; }
   
    html.skin-theme-clientpref-night .cs-search,
    html.skin-theme-clientpref-os .cs-search {
        background-color: #252525 !important;
        border-color: #676767 !important;
    }
    html.skin-theme-clientpref-night .cs-search input,
    html.skin-theme-clientpref-os .cs-search 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-os .cs-search input[type="submit"] {
        background-color: #444 !important;
        border-color: #555 !important;
        color: #fff !important;
    }
   
    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 !important; }
   
    html.skin-theme-clientpref-night .cs-card-list li,
    html.skin-theme-clientpref-os .cs-card-list li { color: #ccc !important; }


/* --- ICONS & DECORATION --- */
    /* 2. Programming Dark */
.cs-icon {
    html.skin-theme-clientpref-night .cs-section.prog .cs-section-header,
     font-size: 2em;
    html.skin-theme-clientpref-night .cs-section.prog .cs-card-header,
     margin-bottom: 15px;
    html.skin-theme-clientpref-os .cs-section.prog .cs-section-header,
     display: inline-block;
     html.skin-theme-clientpref-os .cs-section.prog .cs-card-header { background-color: #104437 !important; border-color: #104437 !important; }
}
   
    html.skin-theme-clientpref-night .cs-section.prog .cs-card,
    html.skin-theme-clientpref-night .cs-section.prog .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.prog .cs-card,
     html.skin-theme-clientpref-os .cs-section.prog .cs-card-footer { background-color: #0b1e1c !important; border-color: #104437 !important; }
   
    html.skin-theme-clientpref-night .cs-section.prog .cs-card-footer a,
     html.skin-theme-clientpref-os .cs-section.prog .cs-card-footer a { color: #8fbc8f !important; }


/* --- RESPONSIVE --- */
    /* 3. Data Science Dark */
@media (max-width: 1024px) {
    html.skin-theme-clientpref-night .cs-section.data .cs-section-header,
     .cs-bento-grid { grid-template-columns: repeat(2, 1fr); }
    html.skin-theme-clientpref-night .cs-section.data .cs-card-header,
     .cs-span-2-2 { grid-column: span 2; grid-row: auto; }
    html.skin-theme-clientpref-os .cs-section.data .cs-section-header,
}
     html.skin-theme-clientpref-os .cs-section.data .cs-card-header { background-color: #082849 !important; border-color: #082849 !important; }
      
    html.skin-theme-clientpref-night .cs-section.data .cs-card,
    html.skin-theme-clientpref-night .cs-section.data .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.data .cs-card,
    html.skin-theme-clientpref-os .cs-section.data .cs-card-footer { background-color: #0d1a27 !important; border-color: #082849 !important; }
   
    html.skin-theme-clientpref-night .cs-section.data .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section.data .cs-card-footer a { color: #87cefa !important; }


@media (max-width: 600px) {
    /* 4. Databases Dark */
     .cs-bento-grid { grid-template-columns: 1fr; }
    html.skin-theme-clientpref-night .cs-section.db .cs-section-header,
     .cs-span-2, .cs-span-2-2 { grid-column: span 1; }
    html.skin-theme-clientpref-night .cs-section.db .cs-card-header,
     .cs-hero { padding: 40px 15px; }
    html.skin-theme-clientpref-os .cs-section.db .cs-section-header,
     .cs-hero h1 { font-size: 1.8em; }
     html.skin-theme-clientpref-os .cs-section.db .cs-card-header { background-color: #882c43 !important; border-color: #882c43 !important; }
}
      
    html.skin-theme-clientpref-night .cs-section.db .cs-card,
    html.skin-theme-clientpref-night .cs-section.db .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.db .cs-card,
    html.skin-theme-clientpref-os .cs-section.db .cs-card-footer { background-color: #270e1a !important; border-color: #882c43 !important; }
      
    html.skin-theme-clientpref-night .cs-section.db .cs-card-footer a,
     html.skin-theme-clientpref-os .cs-section.db .cs-card-footer a { color: #ffb6c1 !important; }


/* --- CITIZEN DARK MODE OVERRIDES --- */
    /* 5. Infrastructure Dark */
/* We target the html class Citizen adds */
    html.skin-theme-clientpref-night .cs-section.inf .cs-section-header,
html.skin-theme-clientpref-night .cs-home-container { color: #e2e8f0; }
    html.skin-theme-clientpref-night .cs-section.inf .cs-card-header,
    html.skin-theme-clientpref-os .cs-section.inf .cs-section-header,
    html.skin-theme-clientpref-os .cs-section.inf .cs-card-header { background-color: #7545ab !important; border-color: #7545ab !important; }
   
    html.skin-theme-clientpref-night .cs-section.inf .cs-card,
    html.skin-theme-clientpref-night .cs-section.inf .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.inf .cs-card,
    html.skin-theme-clientpref-os .cs-section.inf .cs-card-footer { background-color: #130e20 !important; border-color: #7545ab !important; }
   
    html.skin-theme-clientpref-night .cs-section.inf .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section.inf .cs-card-footer a { color: #da70d6 !important; }


html.skin-theme-clientpref-night .cs-hero {
    /* 6. Fundamentals Dark */
    background-color: #020617; /* Even darker for hero */
    html.skin-theme-clientpref-night .cs-section.fund .cs-section-header,
     border-color: #1e293b;
     html.skin-theme-clientpref-night .cs-section.fund .cs-card-header,
}
     html.skin-theme-clientpref-os .cs-section.fund .cs-section-header,
 
     html.skin-theme-clientpref-os .cs-section.fund .cs-card-header { background-color: #663428 !important; border-color: #663428 !important; }
html.skin-theme-clientpref-night .cs-tile {
   
    background-color: #1e293b; /* Dark card bg */
    html.skin-theme-clientpref-night .cs-section.fund .cs-card,
     border-color: #334155;
    html.skin-theme-clientpref-night .cs-section.fund .cs-card-footer,
     color: #f1f5f9;
    html.skin-theme-clientpref-os .cs-section.fund .cs-card,
}
    html.skin-theme-clientpref-os .cs-section.fund .cs-card-footer { background-color: #331a00 !important; border-color: #663428 !important; }
 
   
html.skin-theme-clientpref-night .cs-tile:hover {
    html.skin-theme-clientpref-night .cs-section.fund .cs-card-footer a,
    background-color: #263346;
     html.skin-theme-clientpref-os .cs-section.fund .cs-card-footer a { color: #ffa500 !important; }
    border-color: #475569;
}
 
html.skin-theme-clientpref-night .cs-tile h3 { color: #f8fafc; }
html.skin-theme-clientpref-night .cs-tile ul li a { color: #cbd5e1; }
html.skin-theme-clientpref-night .cs-tile ul li a:hover { color: #60a5fa; } /* Light blue hover */
html.skin-theme-clientpref-night .cs-tile-footer a { color: #94a3b8; }
 
/* Keep the Main Feature blue tile bright, but adjust border */
html.skin-theme-clientpref-night .cs-span-2-2 {
     border: 1px solid #1e3a8a;
}
 
html.skin-theme-clientpref-night .cs-search-box {
    background: #334155;
}


html.skin-theme-clientpref-night .cs-search-box input {
    /* 7. Community Dark */
     color: #ffffff !important;
    html.skin-theme-clientpref-night .cs-section.comm .cs-section-header,
    html.skin-theme-clientpref-night .cs-section.comm .cs-card-header,
    html.skin-theme-clientpref-os .cs-section.comm .cs-section-header,
    html.skin-theme-clientpref-os .cs-section.comm .cs-card-header { background-color: #3d3d3d !important; border-color: #3d3d3d !important; }
   
    html.skin-theme-clientpref-night .cs-section.comm .cs-card,
    html.skin-theme-clientpref-night .cs-section.comm .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.comm .cs-card,
    html.skin-theme-clientpref-os .cs-section.comm .cs-card-footer { background-color: #171a1d !important; border-color: #3d3d3d !important; }
   
     html.skin-theme-clientpref-night .cs-section.comm .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section.comm .cs-card-footer a { color: #ccc !important; }
}
}

Latest revision as of 23:40, 22 November 2025

/**
 * ComputerScience.wiki - Final Fix
 * 1. Responsive Grid
 * 2. EXACT colors from your original file
 * 3. FIX: Added 'clientpref-os' for automatic dark mode support
 */

/* --- 1. CONTAINER & TYPOGRAPHY --- */
.cs-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 0 10px;
}

/* --- 2. 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;
    border: none;
}

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

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

.cs-search input[type="search"],
.cs-search .mw-searchInput {
    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-search input[type="submit"],
.cs-search .oo-ui-buttonElement-button {
    min-width: 80px !important;
    background-color: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    height: 40px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    color: #333 !important;
}

.cs-search input[name="fulltext"] { display: none !important; }

/* --- 4. GRID LAYOUT --- */
.cs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* --- 5. CARDS & SECTIONS (Light Mode Defaults) --- */
.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; border: none; }

.cs-card {
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-width: 1px;
    border-style: solid;
    transition: transform 0.2s;
}

.cs-card:hover { transform: translateY(-3px); }

.cs-card-header { padding: 12px 15px; }
.cs-card-title { margin: 0; font-size: 1.1em; font-weight: 600; border: none; }
.cs-card-body { padding: 15px; flex-grow: 1; }
.cs-card-list { margin: 0; padding: 0 0 0 10px; list-style: none; }
.cs-card-list li { margin-bottom: 8px; }
.cs-card-footer { padding: 8px 15px; text-align: right; font-weight: bold; }
.cs-card-footer a { text-decoration: none; }

/* ========================================================= */
/* === COLOR THEMES (Light Mode) === */
/* ========================================================= */

/* PROGRAMMING (Green) */
.cs-section.prog .cs-section-header { background-color: #cef2e0; border: 1px solid #cef2e0; }
.cs-section.prog .cs-card { background-color: #f5fffa; border-color: #cef2e0; }
.cs-section.prog .cs-card-header { background-color: #cef2e0; border-bottom: 1px solid #cef2e0; }
.cs-section.prog .cs-card-footer { background-color: #f5fffa; border-top: 1px solid #cef2e0; }
.cs-section.prog .cs-card-footer a { color: #2e8b57; }

/* DATA SCIENCE (Blue) */
.cs-section.data .cs-section-header { background-color: #cedff2; border: 1px solid #cedff2; }
.cs-section.data .cs-card { background-color: #f5faff; border-color: #cedff2; }
.cs-section.data .cs-card-header { background-color: #cedff2; border-bottom: 1px solid #cedff2; }
.cs-section.data .cs-card-footer { background-color: #f5faff; border-top: 1px solid #cedff2; }
.cs-section.data .cs-card-footer a { color: #4169e1; }

/* DATABASES (Pink) */
.cs-section.db .cs-section-header { background-color: #f2cedd; border: 1px solid #f2cedd; }
.cs-section.db .cs-card { background-color: #fff5fa; border-color: #f2cedd; }
.cs-section.db .cs-card-header { background-color: #f2cedd; border-bottom: 1px solid #f2cedd; }
.cs-section.db .cs-card-footer { background-color: #fff5fa; border-top: 1px solid #f2cedd; }
.cs-section.db .cs-card-footer a { color: #db7093; }

/* INFRASTRUCTURE (Purple) */
.cs-section.inf .cs-section-header { background-color: #ddcef2; border: 1px solid #ddcef2; }
.cs-section.inf .cs-card { background-color: #faf5ff; border-color: #ddcef2; }
.cs-section.inf .cs-card-header { background-color: #ddcef2; border-bottom: 1px solid #ddcef2; }
.cs-section.inf .cs-card-footer { background-color: #faf5ff; border-top: 1px solid #ddcef2; }
.cs-section.inf .cs-card-footer a { color: #8a2be2; }

/* FUNDAMENTALS (Orange) */
.cs-section.fund .cs-section-header { background-color: #f2e0ce; border: 1px solid #f2e0ce; }
.cs-section.fund .cs-card { background-color: #fffaf5; border-color: #f2e0ce; }
.cs-section.fund .cs-card-header { background-color: #f2e0ce; border-bottom: 1px solid #f2e0ce; }
.cs-section.fund .cs-card-footer { background-color: #fffaf5; border-top: 1px solid #f2e0ce; }
.cs-section.fund .cs-card-footer a { color: #d2691e; }

/* COMMUNITY (Grey) */
.cs-section.comm .cs-section-header { background-color: #eee; border: 1px solid #eee; }
.cs-section.comm .cs-card { background-color: #f9f9f9; border-color: #eee; }
.cs-section.comm .cs-card-header { background-color: #eee; border-bottom: 1px solid #eee; }
.cs-section.comm .cs-card-footer { background-color: #f9f9f9; border-top: 1px solid #eee; }
.cs-section.comm .cs-card-footer a { color: #444; }


/* ========================================================= */
/* === DARK MODE FIX (Citizen Skin) === */
/* ========================================================= */

@media screen {
    /* 1. Global Components - Dark Mode */
    html.skin-theme-clientpref-night .cs-header,
    html.skin-theme-clientpref-os .cs-header { 
        background-color: #171a1d !important; 
        border-color: #676767 !important; 
    }
    html.skin-theme-clientpref-night .cs-title,
    html.skin-theme-clientpref-os .cs-title { color: #fff !important; }
    html.skin-theme-clientpref-night .cs-subtitle,
    html.skin-theme-clientpref-os .cs-subtitle { color: #ccc !important; }
    
    html.skin-theme-clientpref-night .cs-search,
    html.skin-theme-clientpref-os .cs-search { 
        background-color: #252525 !important; 
        border-color: #676767 !important; 
    }
    html.skin-theme-clientpref-night .cs-search input,
    html.skin-theme-clientpref-os .cs-search 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-os .cs-search input[type="submit"] { 
        background-color: #444 !important; 
        border-color: #555 !important; 
        color: #fff !important; 
    }
    
    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 !important; }
    
    html.skin-theme-clientpref-night .cs-card-list li,
    html.skin-theme-clientpref-os .cs-card-list li { color: #ccc !important; }

    /* 2. Programming Dark */
    html.skin-theme-clientpref-night .cs-section.prog .cs-section-header,
    html.skin-theme-clientpref-night .cs-section.prog .cs-card-header,
    html.skin-theme-clientpref-os .cs-section.prog .cs-section-header,
    html.skin-theme-clientpref-os .cs-section.prog .cs-card-header { background-color: #104437 !important; border-color: #104437 !important; }
    
    html.skin-theme-clientpref-night .cs-section.prog .cs-card,
    html.skin-theme-clientpref-night .cs-section.prog .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.prog .cs-card,
    html.skin-theme-clientpref-os .cs-section.prog .cs-card-footer { background-color: #0b1e1c !important; border-color: #104437 !important; }
    
    html.skin-theme-clientpref-night .cs-section.prog .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section.prog .cs-card-footer a { color: #8fbc8f !important; }

    /* 3. Data Science Dark */
    html.skin-theme-clientpref-night .cs-section.data .cs-section-header,
    html.skin-theme-clientpref-night .cs-section.data .cs-card-header,
    html.skin-theme-clientpref-os .cs-section.data .cs-section-header,
    html.skin-theme-clientpref-os .cs-section.data .cs-card-header { background-color: #082849 !important; border-color: #082849 !important; }
    
    html.skin-theme-clientpref-night .cs-section.data .cs-card,
    html.skin-theme-clientpref-night .cs-section.data .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.data .cs-card,
    html.skin-theme-clientpref-os .cs-section.data .cs-card-footer { background-color: #0d1a27 !important; border-color: #082849 !important; }
    
    html.skin-theme-clientpref-night .cs-section.data .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section.data .cs-card-footer a { color: #87cefa !important; }

    /* 4. Databases Dark */
    html.skin-theme-clientpref-night .cs-section.db .cs-section-header,
    html.skin-theme-clientpref-night .cs-section.db .cs-card-header,
    html.skin-theme-clientpref-os .cs-section.db .cs-section-header,
    html.skin-theme-clientpref-os .cs-section.db .cs-card-header { background-color: #882c43 !important; border-color: #882c43 !important; }
    
    html.skin-theme-clientpref-night .cs-section.db .cs-card,
    html.skin-theme-clientpref-night .cs-section.db .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.db .cs-card,
    html.skin-theme-clientpref-os .cs-section.db .cs-card-footer { background-color: #270e1a !important; border-color: #882c43 !important; }
    
    html.skin-theme-clientpref-night .cs-section.db .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section.db .cs-card-footer a { color: #ffb6c1 !important; }

    /* 5. Infrastructure Dark */
    html.skin-theme-clientpref-night .cs-section.inf .cs-section-header,
    html.skin-theme-clientpref-night .cs-section.inf .cs-card-header,
    html.skin-theme-clientpref-os .cs-section.inf .cs-section-header,
    html.skin-theme-clientpref-os .cs-section.inf .cs-card-header { background-color: #7545ab !important; border-color: #7545ab !important; }
    
    html.skin-theme-clientpref-night .cs-section.inf .cs-card,
    html.skin-theme-clientpref-night .cs-section.inf .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.inf .cs-card,
    html.skin-theme-clientpref-os .cs-section.inf .cs-card-footer { background-color: #130e20 !important; border-color: #7545ab !important; }
    
    html.skin-theme-clientpref-night .cs-section.inf .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section.inf .cs-card-footer a { color: #da70d6 !important; }

    /* 6. Fundamentals Dark */
    html.skin-theme-clientpref-night .cs-section.fund .cs-section-header,
    html.skin-theme-clientpref-night .cs-section.fund .cs-card-header,
    html.skin-theme-clientpref-os .cs-section.fund .cs-section-header,
    html.skin-theme-clientpref-os .cs-section.fund .cs-card-header { background-color: #663428 !important; border-color: #663428 !important; }
    
    html.skin-theme-clientpref-night .cs-section.fund .cs-card,
    html.skin-theme-clientpref-night .cs-section.fund .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.fund .cs-card,
    html.skin-theme-clientpref-os .cs-section.fund .cs-card-footer { background-color: #331a00 !important; border-color: #663428 !important; }
    
    html.skin-theme-clientpref-night .cs-section.fund .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section.fund .cs-card-footer a { color: #ffa500 !important; }

    /* 7. Community Dark */
    html.skin-theme-clientpref-night .cs-section.comm .cs-section-header,
    html.skin-theme-clientpref-night .cs-section.comm .cs-card-header,
    html.skin-theme-clientpref-os .cs-section.comm .cs-section-header,
    html.skin-theme-clientpref-os .cs-section.comm .cs-card-header { background-color: #3d3d3d !important; border-color: #3d3d3d !important; }
    
    html.skin-theme-clientpref-night .cs-section.comm .cs-card,
    html.skin-theme-clientpref-night .cs-section.comm .cs-card-footer,
    html.skin-theme-clientpref-os .cs-section.comm .cs-card,
    html.skin-theme-clientpref-os .cs-section.comm .cs-card-footer { background-color: #171a1d !important; border-color: #3d3d3d !important; }
    
    html.skin-theme-clientpref-night .cs-section.comm .cs-card-footer a,
    html.skin-theme-clientpref-os .cs-section.comm .cs-card-footer a { color: #ccc !important; }
}