/*
 * File:        mycv-main.css
 * Location:    /mycolecovision/css/
 * Site:        MyColecovision.com
 * Revision:    1.3
 * Date:        2026-05-04
 * Notes:       Framework styles modeled directly on odyssey2.info:
 *              bordered MENU/CONTENT columns, masthead container,
 *              news-stream layout, article-div cards.
 *              Layered on top of Bootstrap 3.3.6.
 *              ColecoVision palette: black bg, yellow heads,
 *              red-orange accent, rainbow signature element.
 *
 * Revision history:
 * 1.0 (2026-05-04) - Initial creation.
 * 1.1 (2026-05-04) - Hide hamburger on desktop fix.
 * 1.2 (2026-05-04) - Hamburger uses three icon-bar spans.
 * 1.3 (2026-05-04) - Added .sidebar-heading style for non-link
 *                    group dividers (mirrors navbar's
 *                    .dropdown-header pattern).
 */

/* ====================================================================
   GLOBAL
   ==================================================================== */
body#mycv-body {
    background-color: #141414;
    color: #ddd;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    /* Bootstrap navbar-fixed-top requires top padding so body content clears */
    padding-top: 70px;
    padding-bottom: 80px; /* space for sticky footer */
    min-height: 100vh;
    position: relative;
}

a {
    color: #ffe500;
    text-decoration: none;
}
a:hover, a:focus {
    color: #fff;
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffff00;
    font-weight: bold;
}

p { line-height: 1.55; }

img { max-width: 100%; height: auto; }

hr.separator {
    border: 0;
    border-top: 2px solid #cc3300;
    margin: 30px 0;
}

/* ====================================================================
   FIXED-TOP NAVBAR
   ==================================================================== */
.navbar-default {
    background-color: #000 !important;
    border-bottom: 2px solid #cc3300;
    border-radius: 0;
    margin-bottom: 0;
    min-height: 56px;
}

.navbar-default .navbar-brand,
#mycv-top-logo-link {
    padding: 8px 12px;
    display: inline-block;
}

#mycv-top-logo {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

/* Hamburger button styling - matches o2button red */
.navbar-toggle.mycv-button {
    border-color: #cc3300 !important;
    background-color: #cc3300 !important;
    color: #fff !important;
    font-weight: bold;
    margin-top: 10px;
    margin-right: 10px;
    padding: 9px 12px;
}
.navbar-toggle.mycv-button:hover,
.navbar-toggle.mycv-button:focus {
    background-color: #ff4400 !important;
}

/* The three horizontal "hamburger" icon bars inside the toggle button.
   Bootstrap renders these for .navbar-default but defaults to dark
   #888 - on our black navbar we want them solid white. */
.navbar-toggle.mycv-button .icon-bar {
    background-color: #ffffff !important;
    height: 2px;
    width: 22px;
    display: block;
    border-radius: 1px;
}
.navbar-toggle.mycv-button .icon-bar + .icon-bar {
    margin-top: 4px;
}

/* Restore Bootstrap's "hide hamburger on desktop" rule that .mycv-button's
   display:inline-block was overriding due to source-order cascade. The
   hamburger MUST stay hidden at >=768px so it doesn't appear above the
   horizontal nav. */
@media (min-width: 768px) {
    .navbar-toggle.mycv-button {
        display: none !important;
    }
}

/* Search form */
.navbar .search-form {
    margin-top: 12px;
    margin-bottom: 0;
}
.navbar .search-form input.form-control {
    background-color: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    font-size: 13px;
    width: 160px;
    height: 32px;
}
.navbar .search-form input.form-control::placeholder { color: #888; }
.navbar .search-form .mycv-button {
    margin-left: 4px;
    height: 32px;
    padding: 4px 14px;
    font-size: 13px;
}

/* Nav buttons (the o2button equivalent) */
#nav-button-container { margin: 0; }
#nav-button-container > li { padding: 10px 4px; }
#nav-button-container > li > .mycv-button,
#nav-button-container > li > .mycv-button > a {
    color: #fff;
}

/* Dropdown menus on the navbar */
.navbar-default .dropdown-menu {
    background-color: #1a1a1a;
    border: 1px solid #cc3300;
    border-radius: 0 0 4px 4px;
    padding: 4px 0;
    min-width: 200px;
}
.navbar-default .dropdown-menu > li > a {
    color: #ffe500;
    padding: 8px 18px;
    font-size: 14px;
}
.navbar-default .dropdown-menu > li > a:hover,
.navbar-default .dropdown-menu > li > a:focus {
    background-color: #cc3300;
    color: #fff;
}
.navbar-default .dropdown-menu > .divider {
    background-color: #444;
    margin: 4px 0;
}
.navbar-default .dropdown-menu .dropdown-header {
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 18px 2px;
}

/* ====================================================================
   MASTHEAD CONTAINER (above the columns, on home page)
   ==================================================================== */
.masthead-container {
    text-align: center;
    margin: 0 0 18px 0;
    padding: 0;
}
.masthead-banner {
    width: 100%;
    height: auto;
    max-width: 1798px;
    display: block;
    margin: 0 auto;
}
.tagline-container {
    color: #ffd84a;
    font-style: italic;
    font-size: 18px;
    text-align: center;
    margin: 14px 0 0 0;
    line-height: 1.3;
}

/* ====================================================================
   COLUMN BORDER FRAMING (the "MENU" / "CONTENT" labelled boxes)
   ==================================================================== */
.column-border-container {
    border: 2px solid #cc3300;
    border-radius: 8px;
    background: #0d0d0d;
    margin-bottom: 25px;
    padding: 0;
    position: relative;
}
.column-heading {
    position: absolute;
    top: -12px;
    left: 14px;
    background: #cc3300;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 2px 12px;
    border-radius: 3px;
    text-transform: uppercase;
}
.column-heading > span { display: inline-block; }
.column-content,
.sidebar-content {
    padding: 22px 18px 18px;
}

/* ====================================================================
   LEFT SIDEBAR (MENU column)
   ==================================================================== */
.page-column-left .column-border-container {
    background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
}

/* The decorative "bars" wrapper that frames each section button on home
   sidebar. Two side gradient strips with the button in the middle. */
.mycv-button-bars-container {
    display: flex;
    align-items: center;
    margin: 14px 0 8px 0;
    gap: 4px;
}
.mycv-button-bars-container .bars {
    flex: 1;
    height: 6px;
    background: linear-gradient(to right,
        #ff0000, #ff8000, #ffff00, #80ff00, #00ff80, #00ffff, #0080ff, #ff00ff);
    border-radius: 3px;
}
.mycv-button-bars-container .mycv-button { flex-shrink: 0; }

/* The "SELECT LINK" multicolor caption */
.select-link {
    text-align: center;
    font-size: 11px;
    letter-spacing: 4px;
    margin: 4px 0 16px 0;
}
.select-link span { font-weight: bold; }
.select-link .c-red    { color: #ff3333; }
.select-link .c-orange { color: #ff8800; }
.select-link .c-yellow { color: #ffff00; }
.select-link .c-green  { color: #88ff66; }
.select-link .c-cyan   { color: #66ffff; }
.select-link .c-blue   { color: #66aaff; }
.select-link .c-purple { color: #cc88ff; }
.select-link .c-white  { color: #ffffff; }

/* Sidebar links list */
ul.sidebar-links {
    list-style: none;
    padding: 0 0 0 6px;
    margin: 0 0 14px 0;
}
ul.sidebar-links > li {
    margin: 4px 0;
    font-size: 13px;
    line-height: 1.4;
}
ul.sidebar-links > li > a {
    color: #ffe500;
}
ul.sidebar-links > li > a:hover {
    color: #fff;
}
/* Group-heading rows (e.g. "In-Depth", "DiRoccoVision Sites") are
   plain non-link labels like the navbar's .dropdown-header. */
ul.sidebar-links > li.sidebar-heading {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 8px;
    margin-bottom: 2px;
    border-top: 1px dotted #333;
    padding-top: 4px;
}
ul.sidebar-links ul {
    list-style: none;
    padding-left: 12px;
    margin: 4px 0;
    border-left: 1px dotted #444;
}
ul.sidebar-links ul li {
    font-size: 12px;
    color: #aaa;
    margin: 3px 0;
}

/* The HOME button at bottom of sidebar */
.home-container {
    text-align: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #333;
}
.home-container .mycv-button.reset {
    width: 38px;
    height: 38px;
    line-height: 30px;
    padding: 0;
    font-size: 22px;
    border-radius: 50%;
    display: inline-block;
}
.home-container .home {
    color: #888;
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 4px;
}

/* ====================================================================
   RIGHT MAIN COLUMN (CONTENT)
   ==================================================================== */
.page-column-right .column-border-container {
    background: #0d0d0d;
}

/* Breadcrumb at top of every non-home page */
.breadcrumb {
    background: rgba(204, 51, 0, 0.08);
    border: 1px solid #2a1a0d;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 14px;
}
.breadcrumb > li,
.breadcrumb > li > a {
    color: #ffe500;
}
.breadcrumb > li.active { color: #fff; }
.breadcrumb > li + li:before {
    content: "/";
    color: #666;
    padding: 0 8px;
}

/* Page header (h1 banner inside .column-content) */
.page-header.mycv-header {
    border-bottom: 2px solid #cc3300;
    padding-bottom: 8px;
    margin: 0 0 12px 0;
}
.page-header.mycv-header h1 {
    margin: 0;
    font-size: 30px;
    color: #ffff00;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.subtitle {
    color: #aaa;
    font-style: italic;
    margin-bottom: 18px;
    font-size: 15px;
}

/* ====================================================================
   NEWS STREAM (front page main column)
   ==================================================================== */
.news-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}
.news-heading-row h2.news-graphic {
    color: #ffff00;
    font-size: 32px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
}
.news-heading-links {
    font-size: 13px;
    color: #999;
}
.news-heading-links a { color: #ffe500; }
.news-heading-links .text-muted { color: #666; padding: 0 6px; }

/* "Recent Update" highlighted callout (replaces Bootstrap .well) */
#recent-update-container { margin-bottom: 22px; }
.mycv-well {
    background: linear-gradient(to bottom, #2a1a0d, #1a0d05);
    border: 1px solid #cc3300;
    border-radius: 6px;
    padding: 14px 18px;
}
.mycv-well h4 {
    margin: 0 0 8px 0;
    color: #ffff00;
    font-size: 18px;
}
.recent-update-img {
    float: left;
    margin-right: 14px;
    margin-bottom: 6px;
}
.recent-update-img img {
    max-width: 110px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #444;
}

/* Individual news item: headline + dateline + floated image + prose */
h1.headline {
    color: #ffff00;
    font-size: 26px;
    margin: 30px 0 4px 0;
    border-bottom: 1px solid #2a1a0d;
    padding-bottom: 6px;
}
h1.headline a { color: #ffff00; }
h1.headline a:hover { color: #fff; text-decoration: none; }

.dateline {
    color: #888;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.news-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dotted #333;
}
.news-item:last-of-type { border-bottom: none; }

.news-item img.news-lead {
    max-width: 275px;
    border-radius: 5px;
    border: 1px solid #444;
    float: right;
    margin: 0 0 10px 16px;
}
.news-item p { color: #ddd; font-size: 15px; }

/* Mobile: drop the float */
@media (max-width: 600px) {
    .news-item img.news-lead {
        float: none;
        display: block;
        margin: 0 auto 14px;
    }
    .recent-update-img {
        float: none;
        display: block;
        text-align: center;
        margin: 0 0 10px 0;
    }
    .recent-update-img img { margin: 0 auto; }
}

.more-news {
    text-align: right;
    margin-top: 24px;
    font-size: 14px;
}
.more-news a { color: #ffe500; font-weight: bold; }

/* ====================================================================
   ARTICLE-DIV CARDS (Articles index page)
   ==================================================================== */
.article-div {
    border: 3px ridge #555;
    border-radius: 10px;
    margin-bottom: 18px;
    min-height: 185px;
    padding: 14px;
    background-color: rgba(0, 0, 0, 0.45);
    background-image: linear-gradient(to bottom, rgba(204,51,0,0.08), rgba(0,0,0,0));
}
.article-div:hover { border-color: #cc3300; }
.article-div img.article-thumb {
    float: left;
    width: 150px;
    height: 150px;
    margin-right: 14px;
    border: 2px ridge #888;
    border-radius: 10px;
    object-fit: cover;
}
.article-div img.article-thumb:hover { border-color: #ddd; }
.article-div h3.title {
    margin: 0 0 4px 0;
    font-size: 19px;
    color: #ffff00;
}
.article-div h3.title a { color: #ffff00; }
.article-div .byline {
    font-style: italic;
    color: #88aaff;
    font-size: 13px;
    margin-bottom: 8px;
}
.article-div .byline .sprite {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #88aaff;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 5px;
}
.article-div p { color: #ccc; font-size: 14px; margin: 0; }

@media screen and (max-width: 399px) {
    .article-div img.article-thumb {
        float: none;
        display: block;
        margin: 0 auto 8px;
    }
    .article-div .title,
    .article-div .byline { text-align: center; }
}

/* ====================================================================
   FOOTER
   ==================================================================== */
.mycv-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #000;
    border-top: 2px solid #cc3300;
    padding: 14px 0;
    color: #ccc;
    font-size: 12px;
}
.mycv-footer .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.mycv-footer .footer-logo img { height: 36px; width: auto; }
.mycv-footer .copyright {
    flex: 1;
    text-align: center;
    line-height: 1.5;
}
.mycv-footer .copyright a { color: #ffe500; }
.mycv-footer .copyright .full { display: block; }
.mycv-footer .copyright .short,
.mycv-footer .copyright .contact { display: none; }

@media (max-width: 768px) {
    .mycv-footer { position: static; }
    body#mycv-body { padding-bottom: 0; }
    .mycv-footer .copyright .full { display: none; }
    .mycv-footer .copyright .short { display: block; }
}
@media (max-width: 480px) {
    .mycv-footer .copyright .short { display: none; }
    .mycv-footer .copyright .contact { display: block; }
    .mycv-footer .footer-logo img { height: 30px; }
}

/* Back-to-top floating button */
#back-to-top {
    position: fixed;
    right: 18px;
    bottom: 80px;
    z-index: 90;
}
#back-to-top .mycv-button {
    padding: 8px 12px;
    font-size: 12px;
}
.glyphicon-arrow-up:before { content: "\2B06"; margin-right: 4px; }

/* ====================================================================
   STUB-SECTION (still used by pages that don't have native content)
   ==================================================================== */
.stub-section h2 {
    color: #ffff00;
    font-size: 22px;
    margin-top: 22px;
    margin-bottom: 10px;
}
.stub-section ul.cta-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}
.stub-section ul.cta-list li {
    margin: 8px 0;
    padding: 10px 14px;
    background: rgba(204, 51, 0, 0.08);
    border-left: 3px solid #cc3300;
    border-radius: 3px;
}

/* ====================================================================
   RESPONSIVE COLUMN BEHAVIOR
   At <768px Bootstrap stacks the columns; sidebar appears above content.
   ==================================================================== */
@media (max-width: 767px) {
    body#mycv-body { padding-top: 56px; }
    .masthead-container { margin-bottom: 14px; }
    .tagline-container { font-size: 14px; padding: 0 10px; }
}
