/*
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.7.4
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: #070707;
    --bgvnt-surface-soft: #111111;
    --bgvnt-surface-hover: #171717;
    --bgvnt-accent: #ffffff;
    --bgvnt-accent-soft: #f2f2f2;
    --bgvnt-text: #ffffff;
    --bgvnt-muted: #a8a8a8;
    --bgvnt-line: rgba(255, 255, 255, 0.14);
    --bgvnt-line-strong: rgba(255, 255, 255, 0.28);
    --bgvnt-radius: 18px;
    --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;
    overflow-x: hidden;
}

a {
    color: var(--bgvnt-accent-soft);
    text-decoration: none;
    text-underline-offset: 0.22em;
    transition: color 160ms ease, opacity 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

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

::selection {
    background: #ffffff;
    color: #000000;
}

.site-shell {
    background: #000000;
    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: #000000;
    border-bottom: 0;
    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: 70px;
}

.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: clamp(1.04rem, 1.5vw, 1.32rem);
    font-weight: 800;
    gap: 10px;
    letter-spacing: 0.08em;
    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: 46px;
    width: auto;
}

.site-main {
    flex: 0 0 auto;
    padding: clamp(16px, 3vw, 34px) 0;
}

.content-panel {
    background: var(--bgvnt-surface);
    border: 1px solid var(--bgvnt-line);
    border-radius: var(--bgvnt-radius);
    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.12em;
    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 a {
    border-bottom: 0;
    text-decoration: none;
}

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

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

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

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #ffffff;
    line-height: 1.08;
    margin: 1.5em 0 0.55em;
}

.entry-content blockquote {
    border-left: 3px solid #ffffff;
    color: var(--bgvnt-muted);
    margin-left: 0;
    padding-left: 18px;
}

.entry-content table,
table {
    background: #050505;
    border: 1px solid var(--bgvnt-line);
    border-collapse: separate;
    border-radius: 14px;
    border-spacing: 0;
    color: var(--bgvnt-text);
    overflow: hidden;
    width: 100%;
}

.entry-content th,
.entry-content td,
th,
td {
    border-bottom: 1px solid var(--bgvnt-line);
    padding: 13px 15px;
    text-align: left;
    vertical-align: top;
}

.entry-content th,
th {
    background: #111111;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.entry-content tr:last-child td,
tr:last-child td {
    border-bottom: 0;
}

input,
select,
textarea {
    background: #050505;
    border: 1px solid var(--bgvnt-line);
    border-radius: 12px;
    color: #ffffff;
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #777777;
}

input:focus,
select:focus,
textarea:focus {
    background: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
    outline: none;
}

.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);
    border: 1px solid var(--bgvnt-line);
    border-radius: 16px;
    padding: 20px;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.post-card:hover {
    background: var(--bgvnt-surface-hover);
    border-color: var(--bgvnt-line-strong);
    transform: translateY(-2px);
}

.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 {
    background: #000000;
    border-top: 0;
    color: var(--bgvnt-muted);
    padding: 18px 0 20px;
}

.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"],
input[type="button"],
input[type="reset"] {
    appearance: none;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 999px;
    color: #000000;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 850;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.button:hover,
.button:focus-visible,
button:hover,
button:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible,
input[type="button"]:hover,
input[type="button"]:focus-visible,
input[type="reset"]:hover,
input[type="reset"]:focus-visible {
    background: #000000;
    border-color: #ffffff;
    color: #ffffff;
    outline: none;
    transform: translateY(-1px);
}

.wp-block-separator {
    border-color: var(--bgvnt-line);
}

.wp-block-quote,
.wp-block-pullquote {
    border-color: #ffffff;
}

.navigation,
.nav-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
}

.page-numbers {
    align-items: center;
    background: #080808;
    border: 1px solid var(--bgvnt-line);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    justify-content: center;
    min-height: 38px;
    min-width: 38px;
    padding: 8px 12px;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus-visible {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    text-decoration: none;
}

@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;
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        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: 0 22px 70px rgba(0, 0, 0, 0.34);
    }
}

.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;
    }
}

/* Remove full-width separator lines across the theme. */
.site-header,
.site-footer {
    border-bottom: 0 !important;
    border-top: 0 !important;
}

.entry-content a,
.entry-content a:hover,
.entry-content a:focus-visible {
    border-bottom: 0 !important;
    text-decoration: none;
}

hr {
    display: none;
}

/* Shortcode pages use a clean black canvas without page-wide separators. */
.bgvnt-video-news-page .site-shell,
.bgvn-shortcode-page .site-shell {
    background: #000000 !important;
}

.bgvnt-video-news-page .site-header,
.bgvnt-video-news-page .site-main,
.bgvnt-video-news-page .content-panel,
.bgvnt-video-news-page .entry-content,
.bgvnt-video-news-page .site-footer,
.bgvn-shortcode-page .site-header,
.bgvn-shortcode-page .site-main,
.bgvn-shortcode-page .content-panel,
.bgvn-shortcode-page .entry-content,
.bgvn-shortcode-page .site-footer {
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.bgvnt-video-news-page .site-header::before,
.bgvnt-video-news-page .site-header::after,
.bgvnt-video-news-page .site-main::before,
.bgvnt-video-news-page .site-main::after,
.bgvnt-video-news-page .content-panel::before,
.bgvnt-video-news-page .content-panel::after,
.bgvnt-video-news-page .entry-content::before,
.bgvnt-video-news-page .entry-content::after,
.bgvnt-video-news-page .site-footer::before,
.bgvnt-video-news-page .site-footer::after,
.bgvn-shortcode-page .site-header::before,
.bgvn-shortcode-page .site-header::after,
.bgvn-shortcode-page .site-main::before,
.bgvn-shortcode-page .site-main::after,
.bgvn-shortcode-page .content-panel::before,
.bgvn-shortcode-page .content-panel::after,
.bgvn-shortcode-page .entry-content::before,
.bgvn-shortcode-page .entry-content::after,
.bgvn-shortcode-page .site-footer::before,
.bgvn-shortcode-page .site-footer::after {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    content: none !important;
    display: none !important;
}

.bgvnt-video-news-page .content-panel,
.bgvn-shortcode-page .content-panel {
    border-radius: 0 !important;
}

.bgvnt-story-close {
    align-items: center;
    background: #ffffff;
    border: 2px solid #000000 !important;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #ffffff, 0 14px 34px rgba(0, 0, 0, 0.55);
    color: #000000;
    display: inline-flex;
    font-size: 1.15rem;
    font-weight: 900;
    height: 48px;
    justify-content: center;
    line-height: 1;
    position: fixed;
    right: 20px;
    text-decoration: none !important;
    text-transform: uppercase;
    top: 20px;
    width: 48px;
    z-index: 1201;
}

.bgvnt-story-close:hover,
.bgvnt-story-close:focus-visible {
    background: #ffffff;
    color: #000000;
    outline: none;
    text-decoration: none !important;
}

.bgvnt-close-icon {
    color: currentColor;
    display: block;
    height: 18px;
    position: relative;
    width: 18px;
}

.bgvnt-close-icon::before,
.bgvnt-close-icon::after {
    background: currentColor;
    border-radius: 999px;
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform-origin: center;
    width: 18px;
}

.bgvnt-close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.bgvnt-close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.admin-bar .bgvnt-story-close {
    top: 52px;
}

@media (max-width: 620px) {
    .bgvnt-story-close {
        right: 12px;
        top: 12px;
    }

    .admin-bar .bgvnt-story-close {
        top: 58px;
    }
}
