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

Template page
Revision as of 23:07, 22 November 2025 by Fred (talk | contribs)
/* 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;
}