/*
Theme Name: Yaws child Twenty Seventeen
Template: twentyseventeen
Text Domain: twentyseventeen-child

Custom styling for Citizens of Interest (yaws.com)
- Better BBPress presentation
- Higher-contrast header
- Card-style content areas to break up white
*/

/* ---------------------------------------
   1. GLOBAL / LAYOUT TWEAKS
------------------------------------------ */

/* Slightly tint the global content background so white cards stand out */
.site-content-contain {
    background-color: #f3f3f3; /* light neutral gray, WCAG-safe with #333 text */
}

/* Make primary content look like cards on the gray background */
.single .entry-content,
.page .entry-content,
.blog .site-main > article,
.archive .site-main > article {
    background-color: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Keep card effect from touching the viewport edge on small screens */
@media (max-width: 768px) {
    .single .entry-content,
    .page .entry-content,
    .blog .site-main > article,
    .archive .site-main > article {
        padding: 1.5rem 1.5rem;
    }
}

/* ---------------------------------------
   2. HEADER / NAVIGATION (HIGHER CONTRAST)
------------------------------------------ */

/* WCAG AAA-friendly dark header band */
.site-header {
    background-color: #757575; /* your existing choice */
    color: #ffffff;
}

/* Single post featured header */
.single-featured-image-header {
    background-color: #757575;
    border-bottom: 1px solid #555555;
}

/* Site title + description readable on dark header */
.site-title,
.site-title a,
.site-description {
    color: #ffffff;
}

.site-description {
    opacity: 0.9;
}

/* Top navigation bar: darker for contrast with white text */
.navigation-top {
    background: #444444;
    border-top: none;
    border-bottom: 1px solid #2e2e2e;
}

.navigation-top a {
    color: #ffffff;
}

.navigation-top .current-menu-item > a,
.navigation-top .current_page_item > a {
    color: #e0e0e0;
}

.navigation-top a:hover,
.navigation-top a:focus {
    color: #ffffff;
}

/* Footer: slightly darker text on light background for readability */
.site-footer {
    border-top: 1px solid #d0d0d0;
    background-color: #f5f5f5;
}

.site-footer,
.site-footer a {
    color: #444444;
}

/* ---------------------------------------
   Main nav dropdown visibility + contrast
------------------------------------------ */

/* Ensure top-level nav is dark so white text is readable */
.navigation-top {
    background: #444444;
    border-top: none;
    border-bottom: 1px solid #2e2e2e;
}

/* Top-level menu links – white on dark */
.navigation-top a {
    color: #ffffff;
}

/* Current item slightly dimmer */
.navigation-top .current-menu-item > a,
.navigation-top .current_page_item > a {
    color: #e0e0e0;
}

/* Hover/focus: keep strong contrast */
.navigation-top a:hover,
.navigation-top a:focus {
    color: #ffffff;
}

/* DESKTOP DROPDOWN: give submenus a dark background so white text is not on white */
.navigation-top .main-navigation ul ul {
    background-color: #333333;
    padding: 0.5em 1.5em;
    border-radius: 0 0 4px 4px;
}

/* Divider lines inside dropdown */
.navigation-top .main-navigation ul ul li {
    border-bottom: 1px solid #444444;
}

/* Submenu links: white by default */
.navigation-top .main-navigation ul ul a {
    color: #ffffff;
}

/* Submenu hover/focus: slightly lighter text + darker row */
.navigation-top .main-navigation ul ul a:hover,
.navigation-top .main-navigation ul ul a:focus {
    color: #f5f5f5;
    background-color: #444444;
}

/* ---------------------------------------
   3. LINK & TEXT TUNING
------------------------------------------ */

/* Keep body text dark on light backgrounds */
body,
button,
input,
select,
textarea {
    color: #333333;
}

/* General content links – subtle underline effect, good contrast */
.entry-content a,
.comment-content a,
.widget a {
    color: #222222;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,1);
}

.entry-content a:hover,
.entry-content a:focus,
.comment-content a:hover,
.comment-content a:focus,
.widget a:hover,
.widget a:focus {
    color: #000000;
    box-shadow: inset 0 0 0 rgba(0,0,0,0), 0 3px 0 rgba(0,0,0,1);
}

/* ---------------------------------------
   7. WCAG SMALL TWEAKS
------------------------------------------ */

/* Ensure buttons stay high-contrast on dark header/nav */
button,
input[type="button"],
input[type="submit"] {
    background-color: #222222;
    color: #ffffff;
}

button:hover,
button:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
    background-color: #000000;
}

/* Text selection – subtle but still visible */
::selection {
    background: #88cc00;
    color: #111111;
}
::-moz-selection {
    background: #88cc00;
    color: #111111;
}
/* ---------------------------------------
   6A. AI CO-PILOT HUD PANEL (PRIVATEERS-101)
   Used for Surprise A refactor
------------------------------------------ */

.coi-hud-panel {
    background: linear-gradient(145deg, #03121c 0%, #072530 100%);
    border: 2px solid #00c8ff;
    border-radius: 12px;
    color: #e6f9ff;
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    line-height: 1.55;
    box-shadow: 0 0 22px rgba(0,200,255,0.35);
    position: relative;
}

/* Optional holo-style corners */
.coi-hud-panel--holo .coi-hud-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: #00c8ff;
    border-style: solid;
}

/* top-left */
.coi-hud-panel--holo .coi-hud-corner--tl {
    top: -6px;
    left: -6px;
    border-width: 3px 0 0 3px;
}

/* top-right */
.coi-hud-panel--holo .coi-hud-corner--tr {
    top: -6px;
    right: -6px;
    border-width: 3px 3px 0 0;
}

/* bottom-left */
.coi-hud-panel--holo .coi-hud-corner--bl {
    bottom: -6px;
    left: -6px;
    border-width: 0 0 3px 3px;
}

/* bottom-right */
.coi-hud-panel--holo .coi-hud-corner--br {
    bottom: -6px;
    right: -6px;
    border-width: 0 3px 3px 0;
}

/* HUD title + subtitle */
.coi-hud-title {
    margin: 0 0 0.8rem;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7fe8ff;
    text-shadow: 0 0 8px #00c8ff;
}

.coi-hud-subtitle {
    margin: 0 0 1.2rem;
    font-size: 1rem;
    color: #b7eaff;
}

/* Divider inside panel */
.coi-hud-divider {
    border: 0;
    border-top: 1px solid #005f73;
    margin: 1.5rem 0;
}

/* Bulleted list inside panel */
.coi-hud-list {
    margin: 0 0 1rem 1.2rem;
    padding: 0;
    font-size: 0.95rem;
}

/* Pro-tip box inside HUD */
.coi-hud-tip {
    margin-top: 1.6rem;
    padding: 0.9rem 1rem;
    border: 1px solid #00c8ff;
    border-radius: 8px;
    background: rgba(0, 44, 66, 0.55);
    color: #c8f6ff;
    font-size: 0.95rem;
}

/* Links inside HUD (overrides generic link styling) */
.coi-hud-panel a {
    color: #9feaff;
    text-decoration: none;
    box-shadow: inset 0 -1px 0 rgba(159,234,255,1);
}

.coi-hud-panel a:hover,
.coi-hud-panel a:focus {
    color: #ffffff;
    box-shadow: inset 0 0 0 rgba(0,0,0,0), 0 2px 0 rgba(159,234,255,1);
}
/* ---------------------------------------
   Mobile navigation – burger + slide-down
   (Twenty Seventeen, Citizens of Interest)
------------------------------------------ */

@media screen and (max-width: 48em) {

    /* Make sure the header/nav area is consistently dark on mobile */
    .navigation-top {
        background-color: #444444;
        border-top: none;
        border-bottom: 1px solid #2e2e2e;
    }

    .navigation-top .wrap {
        padding-left: 0;
        padding-right: 0;
    }

    /* Burger button (menu-toggle) */
    .menu-toggle {
        background-color: #333333;
        color: #ffffff;
        width: 100%;
        text-align: left;
        border-radius: 0;
        border-top: 1px solid #2e2e2e;
        border-bottom: 1px solid #2e2e2e;
        box-shadow: none;
    }

    .menu-toggle:hover,
    .menu-toggle:focus {
        background-color: #222222;
        color: #ffffff;
        box-shadow: none;
        outline: none;
    }

    .menu-toggle:focus {
        outline: 2px solid #88cc00;   /* visible keyboard focus, WCAG friendly */
        outline-offset: 2px;
    }

    /* Main mobile dropdown panel */
    .main-navigation ul {
        background-color: #333333;
        padding: 0.5em 1.5em;
        margin: 0;
        list-style: none;
    }

    /* Ensure the menu actually shows when toggled (JS adds .toggled-on) */
    .js .main-navigation.toggled-on > div > ul,
    .main-navigation.toggled-on ul.nav-menu {
        display: block;
    }

    /* Top-level mobile menu items */
    .main-navigation li {
        border-bottom: 1px solid #444444;
    }

    .main-navigation a {
        color: #ffffff;
        padding: 0.65em 0;
        text-decoration: none;
        display: block;
    }

    .main-navigation a:hover,
    .main-navigation a:focus {
        color: #f5f5f5;
        background-color: #444444;
    }

    /* Submenus on mobile (children) */
    .main-navigation ul ul {
        background-color: #2b2b2b;
        margin-left: 0;
        padding-left: 1em;
        border-left: 2px solid #555555;
    }

    .main-navigation ul ul li {
        border-bottom: 1px solid #444444;
    }

    .main-navigation ul ul a {
        font-size: 0.95rem;
        padding: 0.45em 0;
    }

    /* Dropdown toggle icons/buttons (chevron next to items with children) */
    .dropdown-toggle {
        color: #ffffff;
        background: transparent;
        border: none;
    }

    .dropdown-toggle:hover,
    .dropdown-toggle:focus {
        color: #f5f5f5;
        background: transparent;
        outline: none;
    }
}
