/*
Theme Name: Green Screen
Theme URI: http://www.brucearmstrong.net
Author: BruceArmstrong.net
Description: A retro green-screen terminal theme based on the original BruceArmstrong.net design circa 2000-2006.
Version: 1.0
*/

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scrollbar-color: #006000 #000000;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    background-image: url(assets/greenishbg.gif);
    background-repeat: repeat;
    color: #00C000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: Arial, Helvetica, sans-serif;
    color: #00FF00;
    margin-top: 0.5em;
    margin-bottom: 0.3em;
}

h1 { font-size: 2em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.3em; }
h4 { font-size: 1.1em; }

p {
    margin-top: 0.4em;
    margin-bottom: 0.8em;
}

a {
    color: #99FF99;
    text-decoration: none;
}

a:visited {
    color: #00D000;
}

a:hover {
    color: #CCFFCC;
    text-decoration: underline;
}

a:active {
    color: #008000;
}

strong, b {
    color: #00FF00;
}

/* ============================================================
   LAYOUT
   ============================================================ */

#page-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
}

#sidebar {
    width: 160px;
    min-width: 160px;
    padding: 10px 5px;
    border-right: 1px solid #006000;
    vertical-align: top;
}

#main-column {
    flex: 1;
    padding: 0 10px 20px 10px;
    min-width: 0;
}

/* ============================================================
   SITE HEADER
   ============================================================ */

#site-header {
    border-bottom: 2px solid #006000;
    padding: 8px 0 4px 0;
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-end;
}

#site-header a {
    margin-left: auto;
}

#site-header a:hover img {
    opacity: 0.85;
}

/* ============================================================
   TOP NAV BAR
   ============================================================ */

#top-nav {
    border: 1px solid #008000;
    background-color: #000000;
    padding: 4px 8px;
    margin-bottom: 10px;
    text-align: center;
}

#top-nav a {
    color: #99FF99;
    font-size: 0.85em;
    margin: 0 6px;
    white-space: nowrap;
}

#top-nav a:hover {
    color: #CCFFCC;
    font-style: italic;
}

/* ============================================================
   SIDEBAR / NAVIGATION
   ============================================================ */

#sidebar .widget-title,
#sidebar h2,
#sidebar h3 {
    color: #00FF00;
    font-size: 0.9em;
    margin-bottom: 4px;
    border-bottom: 1px solid #006000;
    padding-bottom: 2px;
}

#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

#sidebar ul li {
    padding: 2px 0;
    background: url(assets/hexbullet1.gif) no-repeat left center;
    padding-left: 20px;
    margin-bottom: 2px;
}

#sidebar ul li a {
    color: #99FF99;
    font-size: 0.85em;
    display: block;
}

#sidebar ul li a:hover {
    color: #CCFFCC;
    text-decoration: underline;
}

.sidebar-section {
    margin-bottom: 14px;
}

/* ============================================================
   SECTION SEPARATOR
   ============================================================ */

.section-separator {
    text-align: center;
    margin: 10px 0;
    line-height: 0;
}

.section-separator img {
    max-width: 100%;
}

hr.green-rule {
    border: none;
    border-top: 2px solid #006000;
    margin: 14px 0;
}

/* ============================================================
   POST / ENTRY
   ============================================================ */

.post-date-header {
    background-color: #000000;
    border: 1px solid #008000;
    padding: 2px 6px;
    margin-bottom: 0;
    width: 100%;
    clear: both;
}

.post-date-header span {
    color: #C0C0C0;
    font-size: 1.1em;
}

.entry {
    margin-bottom: 16px;
}

.entry-content {
    border: 0;
    padding: 4px 0 4px 0;
    margin-bottom: 8px;
    overflow: hidden;
}

.entry-content img {
    border: 2px solid #006000;
    max-width: 100%;
    height: auto;
}

.entry-title {
    color: #00FF00;
    font-size: 1.3em;
    margin-bottom: 4px;
}

.entry-title a {
    color: #00FF00;
}

.entry-title a:hover {
    color: #CCFFCC;
}

.entry-meta {
    color: #008000;
    font-size: 0.8em;
    margin-bottom: 4px;
}

.entry-meta a {
    color: #006000;
}

/* ============================================================
   SECTION HEADINGS (Top Picks style)
   ============================================================ */

.section-heading {
    color: #00FF00;
    font-size: 1.25em;
    font-weight: bold;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.navigation {
    margin: 16px 0;
    text-align: center;
}

.nav-links a,
.page-numbers {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid #008000;
    color: #99FF99;
    margin: 2px;
    font-size: 0.9em;
}

.nav-links a:hover,
.page-numbers:hover {
    background-color: #001800;
    text-decoration: none;
}

.page-numbers.current {
    background-color: #003000;
    color: #00FF00;
    border-color: #00FF00;
}

/* ============================================================
   CHILD ALBUM GRID
   ============================================================ */

.child-albums {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.child-album-item {
    width: 150px;
    text-align: center;
}

.child-album-item a {
    display: block;
    color: #99FF99;
    text-decoration: none;
    border: 1px solid #004000;
    padding: 4px;
    background: #000800;
}

.child-album-item a:hover {
    border-color: #00FF00;
    background: #001800;
    text-decoration: none;
}

.child-album-item img {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
    border: 0;
    margin-bottom: 4px;
}

.child-album-no-thumb {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #004000;
    background: #000800;
    margin-bottom: 4px;
}

.child-album-item span {
    display: block;
    font-size: 0.8em;
    padding: 2px;
    line-height: 1.3;
    color: #99FF99;
}

/* WordPress core gallery shortcode */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.gallery-item {
    overflow: hidden;
    border: 1px solid #004000;
}

.gallery-item img {
    display: block;
    border: 0 !important;
    transition: opacity 0.2s;
}

.gallery-item img:hover {
    opacity: 0.85;
}

.gallery-caption {
    font-size: 0.75em;
    color: #008000;
    padding: 2px 4px;
    text-align: center;
}

/* ============================================================
   COMMENTS
   ============================================================ */

#comments {
    margin-top: 20px;
}

#comments h2 {
    color: #00FF00;
    border-bottom: 1px solid #006000;
    padding-bottom: 4px;
}

.comment {
    border: 1px solid #004000;
    padding: 8px;
    margin-bottom: 10px;
    background-color: #000800;
}

.comment-author {
    color: #00D000;
    font-weight: bold;
    font-size: 0.9em;
}

.comment-meta {
    color: #006000;
    font-size: 0.8em;
}

.comment-content p {
    margin: 4px 0;
}

/* ============================================================
   COMMENT FORM
   ============================================================ */

#respond {
    margin-top: 20px;
    border: 1px solid #004000;
    padding: 10px;
    background-color: #000800;
}

#respond h3 {
    color: #00FF00;
}

#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
    background-color: #001000;
    border: 1px solid #006000;
    color: #00C000;
    font-family: Arial, Helvetica, sans-serif;
    padding: 4px;
    width: 100%;
    max-width: 500px;
}

#respond input[type="submit"] {
    background-color: #002000;
    border: 1px solid #008000;
    color: #00FF00;
    font-family: Arial, Helvetica, sans-serif;
    padding: 4px 12px;
    cursor: pointer;
}

#respond input[type="submit"]:hover {
    background-color: #004000;
}

/* ============================================================
   FOOTER
   ============================================================ */

#site-footer {
    border-top: 2px solid #006000;
    padding: 8px 10px;
    margin-top: 20px;
    color: #008000;
    font-size: 0.8em;
    text-align: left;
}

#site-footer a {
    color: #006000;
}

/* ============================================================
   SEARCH FORM
   ============================================================ */

.search-form {
    margin-bottom: 10px;
}

.search-form input[type="search"] {
    background-color: #001000;
    border: 1px solid #006000;
    color: #00C000;
    font-family: Arial, Helvetica, sans-serif;
    padding: 3px;
    width: 110px;
    font-size: 0.85em;
}

.search-form input[type="submit"] {
    background-color: #002000;
    border: 1px solid #006000;
    color: #00FF00;
    font-family: Arial, Helvetica, sans-serif;
    padding: 3px 6px;
    cursor: pointer;
    font-size: 0.85em;
}

/* ============================================================
   UTILITY
   ============================================================ */

.alignleft  { float: left;  margin: 0 10px 6px 0; }
.alignright { float: right; margin: 0 0 6px 10px; }
.aligncenter { display: block; margin: 6px auto; }

img.alignleft  { float: left;  margin: 0 10px 6px 0; }
img.alignright { float: right; margin: 0 0 6px 10px; }

.wp-caption {
    border: 1px solid #004000;
    padding: 4px;
    background-color: #000800;
    font-size: 0.85em;
    color: #008000;
}

.wp-caption-text {
    text-align: center;
    margin: 4px 0 0;
    color: #008000;
}

/* Sticky / featured post */
.sticky .entry-content {
    border-left: 3px solid #00FF00;
    padding-left: 8px;
}

/* Screen reader text */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    top: -9999px;
}
