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:
/**
/* CONTAINER & FONTS */
* ComputerScience.wiki - Main Page Styles
.cs-home-container {
* With fixed button width and single button
*/
 
/* Base container */
.cs-container {
     max-width: 1200px;
     max-width: 1200px;
     margin: 0 auto;
     margin: 0 auto;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
}
}


/* Header */
/* --- HERO SECTION (The Terminal Look) --- */
.cs-header {
.cs-hero {
    background-color: #0f172a; /* Dark Navy */
    color: #f8fafc;
    padding: 60px 20px;
    border-radius: 12px;
     text-align: center;
     text-align: center;
     padding: 30px 20px;
     margin-bottom: 40px;
     margin-bottom: 30px;
    position: relative;
     border-radius: 8px;
     overflow: hidden;
     background-color: #f9f9f9;
     border: 1px solid #1e293b;
     border: 1px solid #ddd;
}
 
.cs-hero h1 {
    font-size: 2.5em;
     font-weight: 800;
    margin: 0 0 15px 0;
    color: #ffffff;
     border: none;
    line-height: 1.2;
}
}


.cs-title {
.cs-hero-tag {
     font-size: 2em;
     font-family: 'Courier New', monospace;
     font-weight: 700;
     color: #4ade80; /* Terminal Green */
     margin: 0;
     background: rgba(74, 222, 128, 0.1);
     color: #000;
     padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}
}


.cs-subtitle {
.cs-hero p {
     font-size: 1.1em;
     font-size: 1.1em;
     font-weight: normal;
     color: #94a3b8;
     margin: 10px 0 0;
     max-width: 600px;
     color: #444;
     margin: 0 auto 30px auto;
}
}


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


/* Search input - restore original background */
/* Overriding MW InputBox defaults */
.cs-search input[type="search"],
.cs-search-box input {
.cs-search input[type="text"],
     border: none !important;
.cs-search .mw-searchInput,
     background: transparent !important;
.cs-search .cdx-text-input__input {
     outline: none !important;
    background-color: #ffffff !important;
     border: 1px solid #ddd !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 60: Line 65:
}
}


/* Search button */
/* --- BENTO GRID LAYOUT --- */
.cs-search input[name="go"],
.cs-bento-grid {
.cs-search button[name="go"],
     display: grid;
.cs-search input[type="submit"],
     grid-template-columns: repeat(4, 1fr);
.cs-search button[type="submit"],
     grid-auto-rows: minmax(180px, auto);
.cs-search .oo-ui-buttonElement-button {
     gap: 20px;
     width: 80px !important;
     margin-bottom: 40px;
     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 */
/* CARD STYLES */
.cs-search input[name="fulltext"],
.cs-tile {
.cs-search button[name="fulltext"],
     background: #ffffff;
.cs-search input[value="Search full text"],
     border: 1px solid #e2e8f0;
.cs-search button[value="Search full text"] {
     border-radius: 12px;
     display: none !important;
     padding: 24px;
}
     transition: transform 0.2s ease, box-shadow 0.2s ease;
 
     display: flex;
/* Grid Layout */
     flex-direction: column;
.cs-grid {
     position: relative;
    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;
     overflow: hidden;
    height: 100%;
}
}


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


.cs-card-title {
/* Typography inside tiles */
     margin: 0;
.cs-tile h3 {
     font-size: 1.1em;
     margin-top: 0;
     font-weight: 600;
     font-size: 1.2em;
}
    border: none;
 
     font-weight: 700;
.cs-card-body {
    margin-bottom: 10px;
    padding: 15px;
}
}


.cs-card-list {
.cs-tile ul {
    list-style: none;
     margin: 0;
     margin: 0;
     padding: 0 0 0 20px;
     padding: 0;
}
     font-size: 0.95em;
 
.cs-card-list li {
     margin-bottom: 10px;
}
}


/* Card footer with hover effects */
.cs-tile ul li {
.cs-card-footer {
     margin-bottom: 6px;
     padding: 8px 15px;
     padding-left: 0;
     text-align: right;
}
}


/* Link hover effects */
.cs-tile ul li a {
.cs-card-footer a {
     text-decoration: none;
     text-decoration: none;
     position: relative;
     color: #475569;
     padding-bottom: 2px;
     display: block;
     transition: all 0.2s ease-in-out;
     padding: 2px 0;
}
}


.cs-card-footer a:hover {
.cs-tile ul li a:hover {
     opacity: 0.85;
     color: #2563eb; /* Blue hover */
    padding-left: 4px; /* Slide effect */
    transition: padding 0.2s;
}
}


.cs-card-footer a::after {
.cs-tile-footer {
     content: '';
     margin-top: auto;
     position: absolute;
     padding-top: 15px;
     width: 0;
     font-size: 0.85em;
     height: 1px;
     font-weight: bold;
     bottom: 0;
     text-transform: uppercase;
    left: 0;
     letter-spacing: 0.5px;
     background-color: currentColor;
    transition: width 0.3s ease;
}
}


.cs-card-footer a:hover::after {
.cs-tile-footer a {
     width: 100%;
    text-decoration: none;
     color: #0f172a;
}
}


/* Section color schemes */
/* --- FEATURED TILES (Bento Sizing) --- */
/* Programming */
/* The "Big" Feature Tile (Span 2 cols, 2 rows) */
.cs-section:nth-child(3) .cs-section-header {
.cs-span-2-2 {
     background-color: #cef2e0;
    grid-column: span 2;
     border: 1px solid #cef2e0;
    grid-row: span 2;
     background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
     border: none;
}
}


.cs-section:nth-child(3) .cs-card {
.cs-span-2-2 h3, .cs-span-2-2 a { color: white !important; }
    background-color: #f5fffa;
.cs-span-2-2 ul li a:hover { color: #bfdbfe; }
    border: 1px solid #cef2e0;
}


.cs-section:nth-child(3) .cs-card-header {
/* Wide Tiles (Span 2 cols) */
    background-color: #cef2e0;
.cs-span-2 { grid-column: span 2; }
    border-bottom: 1px solid #cef2e0;
}


.cs-section:nth-child(3) .cs-card-footer {
/* Tall Tiles (Span 2 rows) */
    background-color: #f5fffa;
.cs-span-row-2 { grid-row: span 2; }
    border-top: 1px solid #cef2e0;
}


.cs-section:nth-child(3) .cs-card-footer a {
/* --- ICONS & DECORATION --- */
    color: #2e8b57;
.cs-icon {
}
     font-size: 2em;
 
     margin-bottom: 15px;
/* Data Science */
     display: inline-block;
.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 {
/* --- RESPONSIVE --- */
    background-color: #cedff2;
@media (max-width: 1024px) {
    border-bottom: 1px solid #cedff2;
    .cs-bento-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-span-2-2 { grid-column: span 2; grid-row: auto; }
}
}


.cs-section:nth-child(4) .cs-card-footer {
@media (max-width: 600px) {
     background-color: #f5faff;
    .cs-bento-grid { grid-template-columns: 1fr; }
     border-top: 1px solid #cedff2;
    .cs-span-2, .cs-span-2-2 { grid-column: span 1; }
     .cs-hero { padding: 40px 15px; }
     .cs-hero h1 { font-size: 1.8em; }
}
}


.cs-section:nth-child(4) .cs-card-footer a {
/* --- CITIZEN DARK MODE OVERRIDES --- */
    color: #4169e1;
/* We target the html class Citizen adds */
}
html.skin-theme-clientpref-night .cs-home-container { color: #e2e8f0; }


/* Databases */
html.skin-theme-clientpref-night .cs-hero {
.cs-section:nth-child(5) .cs-section-header {
     background-color: #020617; /* Even darker for hero */
     background-color: #f2cedd;
     border-color: #1e293b;
     border: 1px solid #f2cedd;
}
}


.cs-section:nth-child(5) .cs-card {
html.skin-theme-clientpref-night .cs-tile {
     background-color: #fff5fa;
     background-color: #1e293b; /* Dark card bg */
     border: 1px solid #f2cedd;
     border-color: #334155;
    color: #f1f5f9;
}
}


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


.cs-section:nth-child(5) .cs-card-footer {
html.skin-theme-clientpref-night .cs-tile h3 { color: #f8fafc; }
    background-color: #fff5fa;
html.skin-theme-clientpref-night .cs-tile ul li a { color: #cbd5e1; }
    border-top: 1px solid #f2cedd;
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; }
 
.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 */
/* Keep the Main Feature blue tile bright, but adjust border */
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-night .cs-span-2-2 {
     /* Dark mode handled through class combinations above */
     border: 1px solid #1e3a8a;
}
}


/* Responsive layout */
html.skin-theme-clientpref-night .cs-search-box {
@media (max-width: 875px) {
     background: #334155;
    .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 */
html.skin-theme-clientpref-night .cs-search-box input {
@media (max-width: 480px) {
     color: #ffffff !important;
    .cs-search {
        padding: 10px;
    }
   
    .cs-card-header,
    .cs-card-body {
        padding: 10px;
     }
   
    .cs-title {
        font-size: 1.6em;
    }
}
}

Revision as of 23:07, 22 November 2025

/* CONTAINER & FONTS */
.cs-home-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
}

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

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

.cs-hero-tag {
    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;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

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

/* Overriding MW InputBox defaults */
.cs-search-box input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 16px !important;
    color: #333 !important;
    width: 100% !important;
}

/* --- BENTO GRID LAYOUT --- */
.cs-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
    margin-bottom: 40px;
}

/* CARD STYLES */
.cs-tile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

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

/* Typography inside tiles */
.cs-tile h3 {
    margin-top: 0;
    font-size: 1.2em;
    border: none;
    font-weight: 700;
    margin-bottom: 10px;
}

.cs-tile ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.95em;
}

.cs-tile ul li {
    margin-bottom: 6px;
    padding-left: 0;
}

.cs-tile ul li a {
    text-decoration: none;
    color: #475569;
    display: block;
    padding: 2px 0;
}

.cs-tile ul li a:hover {
    color: #2563eb; /* Blue hover */
    padding-left: 4px; /* Slide effect */
    transition: padding 0.2s;
}

.cs-tile-footer {
    margin-top: auto;
    padding-top: 15px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs-tile-footer a {
    text-decoration: none;
    color: #0f172a;
}

/* --- FEATURED TILES (Bento Sizing) --- */
/* The "Big" Feature Tile (Span 2 cols, 2 rows) */
.cs-span-2-2 {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    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; }

/* Tall Tiles (Span 2 rows) */
.cs-span-row-2 { grid-row: span 2; }

/* --- ICONS & DECORATION --- */
.cs-icon {
    font-size: 2em;
    margin-bottom: 15px;
    display: inline-block;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .cs-bento-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-span-2-2 { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 600px) {
    .cs-bento-grid { grid-template-columns: 1fr; }
    .cs-span-2, .cs-span-2-2 { grid-column: span 1; }
    .cs-hero { padding: 40px 15px; }
    .cs-hero h1 { font-size: 1.8em; }
}

/* --- CITIZEN DARK MODE OVERRIDES --- */
/* We target the html class Citizen adds */
html.skin-theme-clientpref-night .cs-home-container { color: #e2e8f0; }

html.skin-theme-clientpref-night .cs-hero {
    background-color: #020617; /* Even darker for hero */
    border-color: #1e293b;
}

html.skin-theme-clientpref-night .cs-tile {
    background-color: #1e293b; /* Dark card bg */
    border-color: #334155;
    color: #f1f5f9;
}

html.skin-theme-clientpref-night .cs-tile:hover {
    background-color: #263346;
    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 {
    color: #ffffff !important;
}