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
 
(48 intermediate revisions by the same user not shown)
Line 1: Line 1:
/**
/**
  * ComputerScience.wiki Main Page Styles
  * ComputerScience.wiki - Final Fix
  * Using direct styling approach from GitHub MediaWiki-Common.css
* 1. Responsive Grid
  * 2. EXACT colors from your original file
* 3. FIX: Added 'clientpref-os' for automatic dark mode support
  */
  */


/* Main Page Components */
/* --- 1. CONTAINER & TYPOGRAPHY --- */
.mp-box {
.cs-container {
  background: #f8f9fa;
    max-width: 1200px;
  border: 1px solid #a2a9b1;
    margin: 0 auto;
  margin: 0 0 1em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 1em;
    padding: 0 10px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
}


.skin-citizen-dark .mp-box {
/* --- 2. HEADER --- */
  background: #1f2937;
.cs-header {
  border-color: #374151;
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}
}


/* Section headers */
.cs-title {
.mp-h2 {
    font-size: 2em;
  font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
    font-weight: 700;
  padding: 0.5em;
    margin: 0;
  margin: 0.5em 0 0.5em;
    color: #000;
  border-bottom: 1px solid #a2a9b1;
    border: none;
  color: #2e51a3;
  font-size: 1.5em;
  font-weight: normal;
}
}


.skin-citizen-dark .mp-h2 {
.cs-subtitle {
  color: #8ab4f8;
    font-size: 1.1em;
  border-color: #374151;
    font-weight: normal;
    margin: 10px 0 0;
    color: #444;
}
}


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


.mp-contains-float {
.cs-search input[type="search"],
  overflow: auto;
.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;
}
}


/* Main page layout */
.cs-search input[type="submit"],
.MainPageBG {
.cs-search .oo-ui-buttonElement-button {
  background: #ffffff;
    min-width: 80px !important;
  border: 1px solid #a2a9b1;
    background-color: #f0f0f0 !important;
  padding: 1em;
    border: 1px solid #ddd !important;
  border-radius: 4px;
    height: 40px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    color: #333 !important;
}
}


.skin-citizen-dark .MainPageBG {
.cs-search input[name="fulltext"] { display: none !important; }
  background: #111827;
  border-color: #374151;
}
 
#mp-upper,
#mp-middle,
#mp-lower {
  overflow: auto;
  margin-bottom: 1.4em;
}
 
#mp-upper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
 
#mp-left,
#mp-right {
  flex: 1;
  min-width: 300px;
}
 
/* Top Banner */
#mp-topbanner {
  background: linear-gradient(135deg, #2e51a3, #4c6fc6);
  color: #ffffff;
  padding: 32px 24px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  border: none;
}
 
.skin-citizen-dark #mp-topbanner {
  background: linear-gradient(135deg, #375694, #2c4273);
}
 
#mp-welcome h1 {
  font-size: 2.3rem;
  margin: 0 0 8px;
  font-weight: 700;
}
 
#mp-free {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}
 
/* Search Box */
.mp-search-container {
  max-width: 650px;
  margin: -24px auto 32px;
  position: relative;
  z-index: 5;
}


.mp-search-box {
/* --- 4. GRID LAYOUT --- */
  background-color: #ffffff;
.cs-grid {
  border: 1px solid #dfe1e5;
    display: grid;
  border-radius: 8px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  padding: 20px;
    gap: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}
}


.skin-citizen-dark .mp-search-box {
/* --- 5. CARDS & SECTIONS (Light Mode Defaults) --- */
  background-color: #111827;
.cs-section { margin-bottom: 30px; }
  border-color: #374151;
.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; }


/* Section Headings */
.cs-card {
.mp-section-heading {
    border-radius: 6px;
  font-size: 1.6rem;
    overflow: hidden;
  font-weight: 700;
    height: 100%;
  margin: 32px 0 24px;
    display: flex;
  text-align: center;
    flex-direction: column;
  color: #2e51a3;
    border-width: 1px;
  position: relative;
    border-style: solid;
    transition: transform 0.2s;
}
}


.skin-citizen-dark .mp-section-heading {
.cs-card:hover { transform: translateY(-3px); }
  color: #8ab4f8;
}


.mp-section-heading:after {
.cs-card-header { padding: 12px 15px; }
  content: "";
.cs-card-title { margin: 0; font-size: 1.1em; font-weight: 600; border: none; }
  display: block;
.cs-card-body { padding: 15px; flex-grow: 1; }
  width: 60px;
.cs-card-list { margin: 0; padding: 0 0 0 10px; list-style: none; }
  height: 3px;
.cs-card-list li { margin-bottom: 8px; }
  background: #4c6fc6;
.cs-card-footer { padding: 8px 15px; text-align: right; font-weight: bold; }
  margin: 10px auto 0;
.cs-card-footer a { text-decoration: none; }
  border-radius: 1px;
}


.skin-citizen-dark .mp-section-heading:after {
/* ========================================================= */
  background: #8ab4f8;
/* === COLOR THEMES (Light Mode) === */
}
/* ========================================================= */


/* Category Layout */
/* PROGRAMMING (Green) */
#mp-categories-container {
.cs-section.prog .cs-section-header { background-color: #cef2e0; border: 1px solid #cef2e0; }
  margin: 32px 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; }


.mp-category-row {
/* DATA SCIENCE (Blue) */
  display: flex;
.cs-section.data .cs-section-header { background-color: #cedff2; border: 1px solid #cedff2; }
  flex-wrap: wrap;
.cs-section.data .cs-card { background-color: #f5faff; border-color: #cedff2; }
  margin: 0 -10px 20px;
.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; }


/* Category Cards */
/* DATABASES (Pink) */
.mp-category-card {
.cs-section.db .cs-section-header { background-color: #f2cedd; border: 1px solid #f2cedd; }
  background-color: #ffffff;
.cs-section.db .cs-card { background-color: #fff5fa; border-color: #f2cedd; }
  border-radius: 8px;
.cs-section.db .cs-card-header { background-color: #f2cedd; border-bottom: 1px solid #f2cedd; }
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
.cs-section.db .cs-card-footer { background-color: #fff5fa; border-top: 1px solid #f2cedd; }
  padding: 20px;
.cs-section.db .cs-card-footer a { color: #db7093; }
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  border: 1px solid #eaecef;
  margin: 0 10px 20px;
  transition: box-shadow 0.2s;
}


.skin-citizen-dark .mp-category-card {
/* INFRASTRUCTURE (Purple) */
  background-color: #111827;
.cs-section.inf .cs-section-header { background-color: #ddcef2; border: 1px solid #ddcef2; }
  border-color: #374151;
.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; }


.mp-category-card:hover {
/* FUNDAMENTALS (Orange) */
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
.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; }


/* Category Header with Icon and Title on same line */
/* COMMUNITY (Grey) */
.mp-category-header {
.cs-section.comm .cs-section-header { background-color: #eee; border: 1px solid #eee; }
  display: flex;
.cs-section.comm .cs-card { background-color: #f9f9f9; border-color: #eee; }
  align-items: center;
.cs-section.comm .cs-card-header { background-color: #eee; border-bottom: 1px solid #eee; }
  margin-bottom: 16px;
.cs-section.comm .cs-card-footer { background-color: #f9f9f9; border-top: 1px solid #eee; }
}
.cs-section.comm .cs-card-footer a { color: #444; }


.mp-category-icon {
  font-size: 24px;
  margin-right: 12px;
}


.mp-category-title {
/* ========================================================= */
  font-size: 1.25rem;
/* === DARK MODE FIX (Citizen Skin) === */
  font-weight: 600;
/* ========================================================= */
  margin: 0;
  color: #2e51a3;
}


.skin-citizen-dark .mp-category-title {
@media screen {
  color: #8ab4f8;
    /* 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; }


.mp-category-list {
    /* 2. Programming Dark */
  list-style: none;
    html.skin-theme-clientpref-night .cs-section.prog .cs-section-header,
  padding: 0;
    html.skin-theme-clientpref-night .cs-section.prog .cs-card-header,
  margin: 0;
    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; }


.mp-category-list li {
    /* 3. Data Science Dark */
  padding: 8px 0;
    html.skin-theme-clientpref-night .cs-section.data .cs-section-header,
  border-bottom: 1px solid #eaecef;
    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; }


.skin-citizen-dark .mp-category-list li {
    /* 4. Databases Dark */
  border-bottom: 1px solid #374151;
    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; }


.mp-category-list li:last-child {
    /* 5. Infrastructure Dark */
  border-bottom: none;
    html.skin-theme-clientpref-night .cs-section.inf .cs-section-header,
  margin-top: 10px;
    html.skin-theme-clientpref-night .cs-section.inf .cs-card-header,
  font-weight: 500;
    html.skin-theme-clientpref-os .cs-section.inf .cs-section-header,
  color: #2e51a3;
    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; }


.skin-citizen-dark .mp-category-list li:last-child {
    /* 6. Fundamentals Dark */
  color: #8ab4f8;
    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,
/* Feature & Trending Grids */
    html.skin-theme-clientpref-os .cs-section.fund .cs-card-header { background-color: #663428 !important; border-color: #663428 !important; }
.mp-featured-grid,
   
.mp-trending-grid,
    html.skin-theme-clientpref-night .cs-section.fund .cs-card,
.mp-paths-grid {
    html.skin-theme-clientpref-night .cs-section.fund .cs-card-footer,
  display: flex;
    html.skin-theme-clientpref-os .cs-section.fund .cs-card,
  flex-wrap: wrap;
    html.skin-theme-clientpref-os .cs-section.fund .cs-card-footer { background-color: #331a00 !important; border-color: #663428 !important; }
  margin: 0 -12px;
   
  padding: 20px 0;
    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; }
 
.mp-featured-grid > *,
.mp-trending-grid > *,
.mp-paths-grid > * {
  flex: 1 1 300px;
  margin: 0 12px 24px;
  min-width: 250px;
}
 
/* Community Section */
.mp-community-flex {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}
 
.mp-community-card {
  flex: 1 1 300px;
  min-width: 250px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  border: 1px solid #eaecef;
  margin: 0 12px 24px;
}
 
.skin-citizen-dark .mp-community-card {
  background-color: #111827;
  border-color: #374151;
}
 
.mp-community-card h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eaecef;
  color: #2e51a3;
}
 
.skin-citizen-dark .mp-community-card h3 {
  border-bottom: 1px solid #374151;
  color: #8ab4f8;
}
 
.mp-community-card ul {
  padding-left: 20px;
  margin: 0;
}
 
.mp-community-card li {
  margin-bottom: 8px;
}
 
/* Statistics Section */
.mp-statistics-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}
 
.mp-stat-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  padding: 20px;
  min-width: 140px;
  text-align: center;
  border: 1px solid #eaecef;
  flex: 1 1 140px;
  margin: 0 12px 24px;
}
 
.skin-citizen-dark .mp-stat-card {
  background-color: #111827;
  border-color: #374151;
}
 
.mp-stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2e51a3;
  margin-bottom: 8px;
}
 
.skin-citizen-dark .mp-stat-number {
  color: #8ab4f8;
}
 
.mp-stat-label {
  font-size: 0.95rem;
  color: #586069;
}
 
.skin-citizen-dark .mp-stat-label {
  color: #9ca3af;
}


/* Responsive Adjustments */
    /* 7. Community Dark */
@media (max-width: 768px) {
    html.skin-theme-clientpref-night .cs-section.comm .cs-section-header,
  #mp-upper {
    html.skin-theme-clientpref-night .cs-section.comm .cs-card-header,
     display: block;
    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; }
 
   
  .mp-category-card {
    html.skin-theme-clientpref-night .cs-section.comm .cs-card,
     flex: 0 0 100%;
     html.skin-theme-clientpref-night .cs-section.comm .cs-card-footer,
     max-width: 100%;
     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; }
 
   
  #mp-welcome h1 {
    html.skin-theme-clientpref-night .cs-section.comm .cs-card-footer a,
    font-size: 1.8rem;
     html.skin-theme-clientpref-os .cs-section.comm .cs-card-footer a { color: #ccc !important; }
  }
 
  .mp-section-heading {
     font-size: 1.4rem;
  }
}
}

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