/*
Theme Name: Skynet – Vault Zero 2003
Theme URI: https://fallout.czech-games.net/
Author: Fallout Skynet
Description: Retro WordPress theme reconstructed from the original Vault Zero / Fallout Skynet BonusWeb-era design (2003).
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: skynet-vault-zero-2003
*/

:root {
    --vz-orange: #db9200;
    --vz-dark: #333333;
    --vz-grey: #999999;
    --vz-text: #cccccc;
    --vz-green: #008000;
    --vz-black: #000000;
    --vz-white: #ffffff;
}

* { box-sizing: border-box; }
html { background: var(--vz-grey); }
body {
    margin: 0;
    background: var(--vz-grey);
    color: var(--vz-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.35;
}

a { color: var(--vz-green); text-decoration: none; }
a:hover, a:focus { color: #00a000; text-decoration: underline; }

/* Fallout Skynet Wiki Links plugin: keep its dotted underline, but use this theme's link green. */
a.fswl-wiki-link,
.vz-entry-content a.fswl-wiki-link {
    color: var(--vz-green) !important;
    border-bottom-color: var(--vz-green) !important;
    text-decoration-color: var(--vz-green) !important;
}
a.fswl-wiki-link:hover,
a.fswl-wiki-link:focus,
.vz-entry-content a.fswl-wiki-link:hover,
.vz-entry-content a.fswl-wiki-link:focus {
    color: #00a000 !important;
    border-bottom-color: #00a000 !important;
    text-decoration-color: #00a000 !important;
}
img { max-width: 100%; height: auto; }

.vz-shell {
    width: min(1440px, calc(100% - 32px));
    margin: 19px auto 38px;
    background: var(--vz-orange);
    border: 2px solid var(--vz-black);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.vz-header {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 102px;
    background: var(--vz-orange);
}

.vz-vaultboy {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px 6px;
}
.vz-vaultboy img { width: 83px; height: 86px; image-rendering: auto; }

.vz-brand {
    display: flex;
    align-items: center;
    padding: 13px 0 7px;
}
.vz-brand img { width: 226px; height: 67px; display: block; }

.vz-grid {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: stretch;
}

.vz-sidebar {
    background: var(--vz-orange);
    color: #111;
    padding: 18px 7px 30px;
    min-width: 0;
}

.vz-nav, .vz-nav ul { margin: 0; padding: 0; list-style: none; }
.vz-nav > li { margin: 0 0 12px; }
.vz-nav > li > a {
    display: block;
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
    padding: 0 2px 5px;
}
.vz-nav > li > a:hover { color: #fff; }
.vz-nav .sub-menu, .vz-nav .children { margin: 0; padding: 0; list-style: none; }
.vz-nav .sub-menu li, .vz-nav .children li { margin: 0; }
.vz-nav .sub-menu a,
.vz-nav .children a {
    display: block;
    position: relative;
    padding: 1px 0 1px 9px;
    color: #111;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.vz-nav .sub-menu a::before,
.vz-nav .children a::before {
    content: "-";
    position: absolute;
    left: 0;
    top: 1px;
}
.vz-nav .sub-menu .sub-menu a, .vz-nav .children .children a { padding-left: 16px; }
.vz-nav .sub-menu .sub-menu a::before, .vz-nav .children .children a::before { left: 7px; content: "·"; }
.vz-nav .current-menu-item > a,
.vz-nav .current-menu-ancestor > a { font-weight: 700; }

.vz-sidebar-home {
    display: block;
    margin: 0 0 16px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    font-size: 12px;
}

.vz-content {
    min-width: 0;
    background: var(--vz-dark);
    border: 2px solid var(--vz-black);
    border-right: 0;
    border-bottom: 0;
    padding: 0 clamp(24px, 3vw, 48px) 32px;
}

.vz-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    padding: 12px 0 12px;
}
.vz-dashboard h2 {
    margin: 0 0 13px;
    color: var(--vz-orange);
    font-size: 12px;
    text-align: center;
}
.vz-mini-list { margin: 0; padding: 0; list-style: none; }
.vz-mini-list li {
    position: relative;
    margin: 0;
    padding: 0 0 2px 13px;
    color: var(--vz-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vz-mini-list li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: #777;
    font-size: 8px;
    top: 2px;
}
.vz-mini-list time { color: #eee; font-weight: 700; }
.vz-mini-list a { color: var(--vz-text); }

.vz-last-update {
    margin: 10px 0 1px;
    color: #bbb;
    font-size: 11px;
}

.vz-rule {
    border: 0;
    height: 5px;
    background: url("assets/images/line.bmp") repeat-x center;
    margin: 16px 30px 17px;
}

.vz-post {
    padding: 0 0 2px;
    overflow-wrap: anywhere;
}
.vz-post + .vz-post { margin-top: 0; }
.vz-post-title {
    margin: 0 0 1px;
    color: var(--vz-text);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
}
.vz-post-title a { color: var(--vz-text); }
.vz-post-date { color: var(--vz-orange); }
.vz-post-meta {
    margin: 0 0 13px;
    color: var(--vz-text);
    font-size: 9px;
    font-weight: 700;
}
.vz-post-meta a { color: var(--vz-green); }
.vz-post-body,
.vz-entry-content {
    color: var(--vz-text);
    font-size: 12px;
}
.vz-post-body { margin-left: 40px; }
.vz-post-body p:first-child { margin-top: 0; }
.vz-post-body p { margin: 0 0 10px; }
.vz-post-body .more-link { white-space: nowrap; }

.vz-entry-header { padding-top: 18px; }
.vz-entry-title {
    margin: 0 0 6px;
    color: var(--vz-orange);
    font-size: 20px;
    line-height: 1.15;
}
.vz-entry-content { padding: 5px 0 15px; }
.vz-entry-content h2,
.vz-entry-content h3,
.vz-entry-content h4 {
    color: var(--vz-orange);
    line-height: 1.2;
}
.vz-entry-content h2 { font-size: 16px; margin: 23px 0 9px; }
.vz-entry-content h3 { font-size: 14px; margin: 18px 0 7px; }
.vz-entry-content p { margin: 0 0 12px; }
.vz-entry-content blockquote {
    margin: 14px 20px;
    padding-left: 12px;
    border-left: 2px solid var(--vz-orange);
    color: #ddd;
}
.vz-entry-content ul, .vz-entry-content ol { padding-left: 24px; }
.vz-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 11px;
}
.vz-entry-content th,
.vz-entry-content td {
    border: 1px solid #666;
    padding: 5px 6px;
    vertical-align: top;
}
.vz-entry-content th { background: #292929; color: var(--vz-orange); }
.vz-entry-content img { border: 0; }
.vz-entry-content .wp-caption { max-width: 100%; }
.vz-entry-content figcaption, .wp-caption-text { color: #aaa; font-size: 10px; }

.vz-pagination { margin: 18px 0 4px; text-align: center; }
.vz-pagination .page-numbers {
    display: inline-block;
    padding: 2px 5px;
    color: var(--vz-text);
}
.vz-pagination .current { color: var(--vz-orange); font-weight: 700; }

.vz-search-form { display: flex; gap: 4px; margin: 10px 0 18px; }
.vz-search-form input[type="search"] {
    width: 100%;
    min-width: 0;
    background: #222;
    color: #ddd;
    border: 1px solid #777;
    padding: 4px 5px;
    font: inherit;
}
.vz-search-form button {
    background: var(--vz-orange);
    color: #111;
    border: 1px solid #111;
    padding: 4px 8px;
    font: inherit;
    cursor: pointer;
}

.vz-footer {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 28px;
    background: var(--vz-orange);
}
.vz-footer-text {
    padding: 7px 10px 8px;
    color: #333;
    text-align: center;
    font-family: Verdana, Arial, sans-serif;
    font-size: 9px;
}
.vz-footer-text a { color: #fff; }

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; width: 1px; word-wrap: normal !important;
}

.alignleft { float: left; margin: 4px 12px 8px 0; }
.alignright { float: right; margin: 4px 0 8px 12px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* Wide-screen adaptation: keep the 2003 bitmap artwork at native size,
   but let the frame and article area use modern desktop space. */
@media (min-width: 1100px) {
    .vz-dashboard {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(36px, 5vw, 78px);
    }
    .vz-entry-content table { font-size: 12px; }
}

.vz-entry-content .wp-block-table { overflow-x: auto; }
.vz-entry-content iframe,
.vz-entry-content video,
.vz-entry-content embed,
.vz-entry-content object { max-width: 100%; }

@media (max-width: 720px) {
    .vz-shell {
        width: calc(100% - 14px);
        margin: 7px auto 20px;
        border-radius: 7px 7px 0 0;
    }
    .vz-header { grid-template-columns: 88px 1fr; min-height: 86px; }
    .vz-vaultboy { padding: 7px 4px 2px; }
    .vz-vaultboy img { width: 67px; height: auto; }
    .vz-brand { padding: 8px 4px; }
    .vz-brand img { width: min(226px, 100%); height: auto; }
    .vz-grid { grid-template-columns: 1fr; }
    .vz-sidebar {
        padding: 7px 9px 10px;
        border-top: 1px solid rgba(0,0,0,.45);
    }
    .vz-sidebar-home { display: none; }
    .vz-nav { display: flex; flex-wrap: wrap; gap: 3px 10px; align-items: flex-start; }
    .vz-nav > li { margin: 0; min-width: 115px; flex: 1 1 120px; }
    .vz-nav > li > a { text-align: left; padding: 3px 0; }
    .vz-nav .sub-menu, .vz-nav .children { display: none; }
    .vz-content { border-left: 0; border-right: 0; padding: 0 14px 22px; }
    .vz-dashboard { grid-template-columns: 1fr; gap: 16px; }
    .vz-dashboard h2 { text-align: left; }
    .vz-mini-list li {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        padding-bottom: 5px;
    }
    .vz-last-update {
        line-height: 1.45;
        overflow-wrap: anywhere;
    }
    .vz-rule { margin-left: 0; margin-right: 0; }
    .vz-post-body { margin-left: 12px; }
    .vz-footer { grid-template-columns: 1fr; }
    .vz-footer::before { display: none; }
}
