/*
Theme Name: Variety
Author: Developer
Description: Entertainment news theme with bold typography and dramatic imagery. Inspired by Hollywood entertainment magazines.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: variety
Tags: news, entertainment, magazine, grid-layout, custom-colors, custom-logo, featured-images, translation-ready
*/

/* === CSS VARIABLES === */
:root {
    --vrt-color-primary: #d4af37;
    --vrt-color-secondary: #1a1a1a;
    --vrt-color-accent: #c41e3a;
    --vrt-color-text: #222222;
    --vrt-color-text-light: #666666;
    --vrt-color-bg: #ffffff;
    --vrt-color-bg-alt: #f8f8f8;
    --vrt-color-border: #e0e0e0;
    --vty-font-heading: "Playfair Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --vty-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --vrt-font-heading: var(--vty-font-heading);
    --vrt-font-body: var(--vty-font-body);
    --vrt-font-accent: 'Oswald', 'Impact', sans-serif;
    --vrt-max-width: 1280px;
    --vrt-spacing: 24px;
    --vrt-radius: 0;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--vrt-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--vrt-color-text);
    background: var(--vrt-color-bg);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--vrt-font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5em;
    color: var(--vrt-color-secondary);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
a { color: var(--vrt-color-secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--vrt-color-primary); }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1.5em; }

/* === ACCESSIBILITY === */
.vrt-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--vrt-color-primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    font-weight: 600;
}
.vrt-skip-link:focus { left: 0; }

/* === HEADER === */
.vrt-header {
    background: var(--vrt-color-secondary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.vrt-header-inner {
    max-width: var(--vrt-max-width);
    margin: 0 auto;
    padding: 0 var(--vrt-spacing);
}
.vrt-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.vrt-logo-wrap { flex: 1; text-align: center; }
.vrt-logo a {
    font-family: var(--vrt-font-accent);
    font-size: 2rem;
    font-weight: 700;
    color: var(--vrt-color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.vrt-logo a:hover { color: #fff; }
.vrt-logo img,
.vrt-logo .custom-logo,
.vrt-logo-wrap img,
.vrt-logo-wrap .custom-logo { max-height: 50px; width: auto; height: auto; margin: 0 auto; }
.vrt-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #fff;
}
.vrt-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}
.vrt-header-actions { display: flex; align-items: center; gap: 16px; }
.vrt-search-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}
.vrt-search-toggle:hover { color: var(--vrt-color-primary); }

/* === NAVIGATION === */
.vrt-nav { border-bottom: 3px solid var(--vrt-color-primary); }
.vrt-nav-menu {
    display: flex;
    justify-content: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 12px 0;
}
.vrt-nav-menu li { position: relative; }
.vrt-nav-menu a {
    color: #fff;
    font-family: var(--vrt-font-accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 0;
    display: block;
}
.vrt-nav-menu a:hover { color: var(--vrt-color-primary); }
.vrt-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--vrt-color-secondary);
    min-width: 200px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.vrt-nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; }
.vrt-nav-menu .sub-menu a {
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* === SEARCH OVERLAY === */
.vrt-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.vrt-search-overlay.vrt-search-active { opacity: 1; visibility: visible; }
.vrt-search-container {
    width: 90%;
    max-width: 600px;
    position: relative;
}
.vrt-search-container input[type="search"] {
    width: 100%;
    padding: 20px 60px 20px 20px;
    font-size: 1.5rem;
    border: none;
    border-bottom: 3px solid var(--vrt-color-primary);
    background: transparent;
    color: #fff;
    font-family: var(--vrt-font-heading);
}
.vrt-search-container input[type="search"]::placeholder { color: #666; }
.vrt-search-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 16px;
}

/* === MAIN CONTENT === */
.vrt-main { min-height: 60vh; }
.vrt-content {
    max-width: var(--vrt-max-width);
    margin: 0 auto;
    padding: var(--vrt-spacing);
}
.vrt-content-inner { display: flex; gap: 48px; }
.vrt-articles { flex: 1; min-width: 0; }

/* === SIDEBAR === */
.vrt-has-sidebar .vrt-articles { flex: 1; }
.vrt-sidebar {
    width: 320px;
    flex-shrink: 0;
}
.vrt-has-sidebar.vrt-sidebar-left .vrt-content-inner { flex-direction: row-reverse; }
.vrt-widget {
    margin-bottom: var(--vrt-spacing);
    padding: var(--vrt-spacing);
    background: var(--vrt-color-bg-alt);
}
.vrt-widget-title {
    font-family: var(--vrt-font-accent);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vrt-color-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--vrt-color-primary);
}

/* === FEATURED / HERO === */
.vrt-hero {
    position: relative;
    margin-bottom: 48px;
}
.vrt-hero-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--vrt-color-secondary);
}
.vrt-hero-card .vrt-hero-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.vrt-hero-card .vrt-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.vrt-hero-card:hover .vrt-hero-image img { transform: scale(1.05); }
.vrt-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
}
.vrt-hero-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 16px;
}
.vrt-hero-title a { color: inherit; }
.vrt-hero-title a:hover { color: var(--vrt-color-primary); }
.vrt-hero-excerpt {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 16px;
    max-width: 600px;
}
.vrt-hero-meta {
    font-family: var(--vrt-font-accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

/* === CATEGORY BADGE === */
.vrt-category {
    display: inline-block;
    font-family: var(--vrt-font-accent);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: var(--vrt-color-accent);
    padding: 4px 10px;
    margin-bottom: 12px;
}
.vrt-category:hover { background: var(--vrt-color-primary); color: #fff; }

/* === ARTICLE GRID === */
.vrt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.vrt-grid.grid-3col { grid-template-columns: repeat(3, 1fr); }
.vrt-grid.grid-2col { grid-template-columns: repeat(2, 1fr); }
.vrt-grid.grid-list { grid-template-columns: 1fr; }
.vrt-grid.grid-list .vrt-card { flex-direction: row; }
.vrt-grid.grid-list .vrt-card-image { flex: 0 0 300px; aspect-ratio: 16/10; }
.vrt-grid.grid-list .vrt-card-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.vrt-card {
    display: flex;
    flex-direction: column;
}
.vrt-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--vrt-color-bg-alt);
}
.vrt-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.vrt-card:hover .vrt-card-image img { transform: scale(1.05); }
.vrt-card-content { padding: 16px 0; }
.vrt-card-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 8px;
}
.vrt-card-title a { color: var(--vrt-color-secondary); }
.vrt-card-title a:hover { color: var(--vrt-color-primary); }
.vrt-card-excerpt {
    font-size: 0.9rem;
    color: var(--vrt-color-text-light);
    margin-bottom: 8px;
}
.vrt-card-meta {
    font-family: var(--vrt-font-accent);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vrt-color-text-light);
}
.vrt-sticky { position: relative; }
.vrt-sticky::before {
    content: "★";
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--vrt-color-primary);
    color: #fff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    z-index: 1;
}

/* === SINGLE POST === */
.vrt-single-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 32px;
}
.vrt-single-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 16px;
}
.vrt-single-meta {
    font-family: var(--vrt-font-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vrt-color-text-light);
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.vrt-single-image {
    margin: 0 0 32px;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.vrt-single-image img { width: 100%; height: 100%; object-fit: cover; }
.vrt-single-image figcaption {
    font-size: 0.875rem;
    color: var(--vrt-color-text-light);
    padding: 12px 0;
    text-align: center;
    font-style: italic;
}
.vrt-single-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}
.vrt-single-content h2 { font-size: 1.75rem; margin-top: 48px; }
.vrt-single-content h3 { font-size: 1.5rem; margin-top: 32px; }
.vrt-single-content blockquote {
    border-left: 4px solid var(--vrt-color-primary);
    margin: 32px 0;
    padding: 16px 32px;
    font-style: italic;
    font-size: 1.25rem;
    background: var(--vrt-color-bg-alt);
}
.vrt-single-content a { color: var(--vrt-color-primary); text-decoration: underline; }
.vrt-single-footer {
    max-width: 720px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--vrt-color-border);
}
.vrt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.vrt-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: var(--vrt-color-bg-alt);
    border: 1px solid var(--vrt-color-border);
}
.vrt-tag:hover { background: var(--vrt-color-primary); color: #fff; border-color: var(--vrt-color-primary); }

/* === SHARE === */
.vrt-share {
    max-width: 720px;
    margin: 32px auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.vrt-share-label {
    font-family: var(--vrt-font-accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vrt-color-text-light);
}
.vrt-share-link {
    font-size: 0.875rem;
    padding: 8px 16px;
    background: var(--vrt-color-secondary);
    color: #fff;
}
.vrt-share-link:hover { background: var(--vrt-color-primary); color: #fff; }

/* === AUTHOR BOX === */
.vrt-author-box {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--vrt-color-bg-alt);
    max-width: 720px;
}

.vrt-author-avatar img { width: 80px; height: 80px; border-radius: 50%; }
.vrt-author-info { flex: 1; }
.vrt-author-name { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
.vrt-author-name a { color: var(--vrt-color-secondary); text-decoration: none; }
.vrt-author-name a:hover { color: var(--vrt-color-primary); }
.vrt-author-bio { font-size: 0.9375rem; color: var(--vrt-color-text-light); }

/* === POST NAVIGATION === */
.vrt-post-nav {
    max-width: 720px;
    margin: 48px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.vrt-post-nav-prev, .vrt-post-nav-next {
    padding: 24px;
    background: var(--vrt-color-bg-alt);
}
.vrt-post-nav-next { text-align: right; }
.vrt-post-nav-label {
    font-family: var(--vrt-font-accent);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vrt-color-text-light);
    display: block;
    margin-bottom: 8px;
}
.vrt-post-nav-title { font-weight: 600; color: var(--vrt-color-secondary); }

/* === RELATED === */
.vrt-related {
    max-width: 720px;
    margin: 64px auto;
}
.vrt-related-title {
    font-family: var(--vrt-font-accent);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vrt-color-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--vrt-color-primary);
}
.vrt-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vrt-related-card-title { font-size: 1rem; margin-top: 12px; }

/* === PAGE === */
.vrt-page-header {
    text-align: center;
    margin-bottom: 32px;
}
.vrt-page-title { font-size: 2.5rem; }
.vrt-page-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* === ARCHIVE === */
.vrt-archive-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 3px solid var(--vrt-color-primary);
}
.vrt-archive-title {
    font-family: var(--vrt-font-accent);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vrt-color-text-light);
}
.vrt-archive-title span { color: var(--vrt-color-secondary); font-size: 2rem; display: block; margin-top: 8px; }
.vrt-archive-desc { color: var(--vrt-color-text-light); margin-top: 12px; }

/* === SEARCH === */
.vrt-search-header { text-align: center; margin-bottom: 48px; }
.vrt-search-title {
    font-size: 1.5rem;
}
.vrt-search-title span { color: var(--vrt-color-primary); }
.vrt-articles-list { display: flex; flex-direction: column; gap: 32px; }
.vrt-search-card {
    display: flex;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--vrt-color-border);
}
.vrt-search-image {
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.vrt-search-image img { width: 100%; height: 100%; object-fit: cover; }
.vrt-search-card-title { font-size: 1.25rem; margin-bottom: 8px; }
.vrt-search-card-title a { color: var(--vrt-color-secondary); }
.vrt-search-card-title a:hover { color: var(--vrt-color-primary); }
.vrt-search-excerpt { font-size: 0.9rem; color: var(--vrt-color-text-light); margin-bottom: 8px; }
.vrt-search-meta {
    font-size: 0.75rem;
    color: var(--vrt-color-text-light);
}
.vrt-no-results {
    text-align: center;
    padding: 64px var(--vrt-spacing);
}
.vrt-no-results h2 { font-size: 2rem; margin-bottom: 16px; }
.vrt-search-form-wrap { max-width: 400px; margin: 24px auto 0; }

/* === 404 === */
.vrt-error-page {
    text-align: center;
    padding: 80px var(--vrt-spacing);
}
.vrt-error-code {
    font-family: var(--vrt-font-accent);
    font-size: 8rem;
    font-weight: 700;
    color: var(--vrt-color-primary);
    line-height: 1;
}
.vrt-error-title { font-size: 2rem; margin: 24px 0 16px; }
.vrt-error-text { color: var(--vrt-color-text-light); max-width: 500px; margin: 0 auto 32px; }
.vrt-error-search { max-width: 400px; margin: 0 auto 32px; }
.vrt-error-home {
    display: inline-block;
    background: var(--vrt-color-primary);
    color: #fff;
    padding: 12px 32px;
    font-family: var(--vrt-font-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.vrt-error-home:hover { background: var(--vrt-color-secondary); color: #fff; }

/* === PAGINATION === */
.vrt-pagination {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--vrt-color-border);
}
.vrt-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.vrt-pagination a, .vrt-pagination span {
    display: block;
    padding: 8px 16px;
    font-family: var(--vrt-font-accent);
    font-size: 0.875rem;
    background: var(--vrt-color-bg-alt);
}
.vrt-pagination a:hover { background: var(--vrt-color-primary); color: #fff; }
.vrt-pagination .current { background: var(--vrt-color-secondary); color: #fff; }

/* === BREADCRUMBS === */
.vrt-breadcrumbs {
    font-size: 0.75rem;
    margin-bottom: 24px;
    color: var(--vrt-color-text-light);
}
.vrt-breadcrumbs a { color: var(--vrt-color-text-light); }
.vrt-breadcrumbs a:hover { color: var(--vrt-color-primary); }
.vrt-breadcrumbs .separator { margin: 0 8px; }

/* === COMMENTS === */
.vrt-comments {
    max-width: 720px;
    margin: 64px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--vrt-color-border);
}
.vrt-comments-title {
    font-size: 1.25rem;
    margin-bottom: 32px;
}
.vrt-comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.vrt-comment { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--vrt-color-border); }
.vrt-comment-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.vrt-comment-avatar img { border-radius: 50%; }
.vrt-comment-author { font-weight: 600; }
.vrt-comment-date { font-size: 0.8rem; color: var(--vrt-color-text-light); }
.vrt-comment-content { font-size: 0.95rem; }
.vrt-comment-actions { margin-top: 12px; }
.vrt-comment-actions a {
    font-size: 0.8rem;
    color: var(--vrt-color-text-light);
    margin-right: 16px;
}
.vrt-comments-closed { color: var(--vrt-color-text-light); font-style: italic; }
.vrt-comment-form { margin-top: 32px; }
.vrt-comment-form label { display: block; margin-bottom: 8px; font-weight: 600; }
.vrt-comment-form input[type="text"],
.vrt-comment-form input[type="email"],
.vrt-comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--vrt-color-border);
    margin-bottom: 16px;
    font-family: inherit;
    font-size: 1rem;
}
.vrt-comment-form textarea { min-height: 150px; }
.vrt-comment-form input[type="submit"] {
    background: var(--vrt-color-secondary);
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-family: var(--vrt-font-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}
.vrt-comment-form input[type="submit"]:hover { background: var(--vrt-color-primary); }

/* === FOOTER === */
.vrt-footer {
    background: var(--vrt-color-secondary);
    color: #fff;
    padding: 48px 0 0;
    margin-top: 64px;
}
.vrt-footer-inner {
    max-width: var(--vrt-max-width);
    margin: 0 auto;
    padding: 0 var(--vrt-spacing);
}
.vrt-footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.vrt-footer-widget-title {
    font-family: var(--vrt-font-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vrt-color-primary);
    margin-bottom: 16px;
}
.vrt-footer-widget a { color: rgba(255,255,255,0.7); }
.vrt-footer-widget a:hover { color: var(--vrt-color-primary); }
.vrt-footer-widget ul { list-style: none; margin: 0; padding: 0; }
.vrt-footer-widget li { margin-bottom: 8px; }
.vrt-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}
.vrt-footer-nav { }
.vrt-footer-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.vrt-footer-menu a {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}
.vrt-footer-menu a:hover { color: var(--vrt-color-primary); }
.vrt-copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* === SCROLL TO TOP === */
.vrt-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--vrt-color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vrt-scroll-top:hover { background: var(--vrt-color-secondary); }
.vrt-scroll-top.vrt-visible { opacity: 1; visibility: visible; }

/* === FORMS === */
.search-form {
    display: flex;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--vrt-color-border);
    border-right: none;
    font-size: 1rem;
    font-family: inherit;
}
.search-form input[type="submit"] {
    padding: 12px 20px;
    background: var(--vrt-color-secondary);
    color: #fff;
    border: none;
    font-family: var(--vrt-font-accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
}
.search-form input[type="submit"]:hover { background: var(--vrt-color-primary); }

/* === PAGE LINKS === */
.vrt-page-links {
    margin: 32px 0;
    font-weight: 600;
}
.vrt-page-links span { margin-right: 8px; }
.vrt-page-links a {
    margin: 0 4px;
    padding: 4px 12px;
    background: var(--vrt-color-bg-alt);
}
.vrt-page-links a:hover { background: var(--vrt-color-primary); color: #fff; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .vrt-grid, .vrt-grid.grid-3col, .vrt-grid.grid-2col { grid-template-columns: repeat(2, 1fr); }
    .vrt-sidebar { width: 280px; }
    .vrt-footer-widgets { grid-template-columns: repeat(2, 1fr); }
    .vrt-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --vrt-spacing: 16px; }
    .vrt-logo img,
    .vrt-logo .custom-logo,
    .vrt-logo-wrap img,
    .vrt-logo-wrap .custom-logo { max-height: 40px; }
    .vrt-menu-toggle { display: block; }
    .vrt-nav { display: none; }
    .vrt-nav.vrt-nav-open { display: block; }
    .vrt-nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    .vrt-nav-menu a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .vrt-nav-menu .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 20px;
    }
    .vrt-content-inner { flex-direction: column; }
    .vrt-sidebar { width: 100%; }
    .vrt-has-sidebar.vrt-sidebar-left .vrt-content-inner { flex-direction: column; }
    .vrt-grid, .vrt-grid.grid-3col, .vrt-grid.grid-2col { grid-template-columns: 1fr; }
    .vrt-hero-content { padding: 24px; }
    .vrt-hero-title { font-size: 1.75rem; }
    .vrt-single-title { font-size: 2rem; }
    .vrt-footer-widgets { grid-template-columns: 1fr; gap: 32px; }
    .vrt-footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .vrt-post-nav { grid-template-columns: 1fr; }
    .vrt-search-card { flex-direction: column; }
    .vrt-search-image { width: 100%; }
    .vrt-related-grid { grid-template-columns: 1fr; }
    .vrt-sidebar { display: none !important; }
    .vrt-footer-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Interlinking Section */
.vari-interlinking {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}
.vari-interlinking-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}
.vari-interlinking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.vari-interlinking-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}
.vari-interlinking-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--vari-color-primary, #333);
}
.vari-interlinking-list a {
    color: var(--vari-color-primary, #333);
    text-decoration: none;
}
.vari-interlinking-list a:hover {
    text-decoration: underline;
}
