/*
Theme Name: Black Gold Video News
Theme URI: https://example.com/black-gold-video-news
Author: Codex
Author URI: https://example.com
Description: A minimalist black and white WordPress theme for video news pages.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: black-gold-video-news-theme
*/

:root {
    --bgvnt-black: #000000;
    --bgvnt-surface: #101010;
    --bgvnt-surface-soft: #181818;
    --bgvnt-accent: #ffffff;
    --bgvnt-accent-soft: #f2f2f2;
    --bgvnt-text: #ffffff;
    --bgvnt-muted: #b8b8b8;
    --bgvnt-line: rgba(255, 255, 255, 0.18);
    --bgvnt-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bgvnt-black);
}

body {
    background: var(--bgvnt-black);
    color: var(--bgvnt-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
    min-width: 320px;
}

a {
    color: var(--bgvnt-accent-soft);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: #ffffff;
}

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

.site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.skip-link {
    background: var(--bgvnt-accent);
    color: #000000;
    font-weight: 800;
    left: 16px;
    padding: 10px 12px;
    position: fixed;
    top: 16px;
    transform: translateY(-140%);
    z-index: 999;
}

.skip-link:focus {
    transform: translateY(0);
}

.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;
    width: 1px;
    word-wrap: normal;
}

.site-header {
    backdrop-filter: blur(18px);
    background: rgba(0, 0, 0, 0.92);
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-bar .site-header {
    top: 32px;
}

.site-header-inner,
.site-main,
.site-footer-inner {
    margin: 0 auto;
    max-width: var(--bgvnt-width);
    width: min(calc(100% - 32px), var(--bgvnt-width));
}

.site-header-inner {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 64px;
}

.site-branding {
    align-items: center;
    display: flex;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

.site-title {
    align-items: center;
    color: var(--bgvnt-text);
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: 800;
    gap: 10px;
    line-height: 1.2;
    text-transform: uppercase;
}

.custom-logo-link {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.custom-logo {
    display: block;
    max-height: 44px;
    width: auto;
}

.site-main {
    flex: 0 0 auto;
    padding: clamp(12px, 2vw, 22px) 0;
}

.content-panel {
    background: var(--bgvnt-surface);
    padding: clamp(20px, 4vw, 46px);
}

.entry-header {
    margin-bottom: clamp(22px, 4vw, 40px);
}

.entry-kicker {
    color: var(--bgvnt-accent);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.entry-title {
    color: var(--bgvnt-text);
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1;
    margin: 0;
    max-width: 980px;
}

.entry-content {
    color: var(--bgvnt-text);
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
    max-width: 760px;
}

.entry-content .bgvn-video-wall {
    margin-left: calc(clamp(20px, 4vw, 46px) * -1);
    margin-right: calc(clamp(20px, 4vw, 46px) * -1);
}

.entry-content .bgvn-video-wall:last-child {
    margin-bottom: calc(clamp(20px, 4vw, 46px) * -1);
}

.post-list {
    display: grid;
    gap: 18px;
}

.post-card {
    background: var(--bgvnt-surface-soft);
    padding: 20px;
}

.post-card h2 {
    font-size: 1.35rem;
    line-height: 1.2;
    margin: 0 0 8px;
}

.post-card p {
    color: var(--bgvnt-muted);
    margin: 0;
}

.site-footer {
    color: var(--bgvnt-muted);
    padding: 10px 0 14px;
}

.site-footer-inner {
    align-items: center;
    display: flex;
    justify-content: center;
    text-align: center;
}

.site-footer p {
    color: var(--bgvnt-accent-soft);
    font-size: 0.92rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
}

.wp-block-button__link,
.button,
button,
input[type="submit"] {
    border-radius: 0;
}

@media (max-width: 720px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .site-header-inner {
        min-height: 58px;
        padding: 6px 0;
    }

    .site-title {
        font-size: 1rem;
    }

    .custom-logo {
        max-height: 38px;
    }

    .site-main {
        padding: 8px 0 12px;
    }

    .entry-title {
        font-size: clamp(1.8rem, 11vw, 2.7rem);
        line-height: 1.05;
    }

    .content-panel {
        margin-left: -16px;
        margin-right: -16px;
        padding: 24px 16px;
    }

    .entry-content .bgvn-video-wall {
        margin-left: -16px;
        margin-right: -16px;
    }

    .entry-content .bgvn-video-wall:last-child {
        margin-bottom: -24px;
    }

    .site-footer {
        padding: 8px 0 10px;
    }

    .site-footer-inner {
        justify-content: center;
    }
}

@media (min-width: 721px) {
    .content-panel {
        box-shadow: none;
    }
}

.front-page .site-main,
.home .site-main,
.bgvnt-video-news-page .site-main {
    max-width: none;
    padding: 0;
    width: 100%;
}

.front-page .content-panel,
.home .content-panel,
.bgvnt-video-news-page .content-panel {
    background: transparent;
    margin: 0;
    padding: 0;
    width: 100%;
}

.front-page .entry-content .bgvn-video-wall,
.home .entry-content .bgvn-video-wall,
.bgvnt-video-news-page .entry-content .bgvn-video-wall {
    margin: 0;
    width: 100%;
}

.front-page .entry-content .bgvn-video-wall:last-child,
.home .entry-content .bgvn-video-wall:last-child,
.bgvnt-video-news-page .entry-content .bgvn-video-wall:last-child {
    margin-bottom: 0;
}

.front-page .site-header-inner,
.home .site-header-inner,
.bgvnt-video-news-page .site-header-inner {
    min-height: 58px;
}

.front-page .custom-logo,
.home .custom-logo,
.bgvnt-video-news-page .custom-logo {
    max-height: 40px;
}

.front-page .site-footer,
.home .site-footer,
.bgvnt-video-news-page .site-footer {
    padding-top: 8px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}
