/*
Theme Name: DIVO.TV
Theme URI: https://divo-tv.com/
Description: DIVO.TV (The Currency of Culture) — дочерняя блочная тема на Twenty Twenty-Five. Воспроизводит вид статического divo-tv.com (header.php / index.php / шаблон статьи, снято 11.11.2026).
Author: DIVO.TV
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: divo-tv
*/

/* Классы перенесены 1:1 из живого header.php (CORE STYLES), чтобы вид совпадал. */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
strong, b { font-weight: 700; }

.container { max-width: 1320px; margin-left: auto !important; margin-right: auto !important; padding: 0 24px; box-sizing: border-box; width: 100%; }

/* --- Header --- */
.header-system { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--wp--preset--color--border); }
.admin-bar .header-system { top: 32px; }
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; gap: 16px; }
.logo { font-family: var(--wp--preset--font-family--heading); font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0; }
.logo a { color: var(--wp--preset--color--contrast); }
.logo span { color: var(--wp--preset--color--accent); }
.main-nav ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 32px; align-items: center; }
.main-nav a { font-size: 15px; font-weight: 600; color: var(--wp--preset--color--contrast); }
.btn-subscribe, .main-nav a.btn-subscribe { background: var(--wp--preset--color--accent); color: #fff !important; padding: 10px 22px; border-radius: 50px; transition: all .3s ease; display: inline-block; }
.btn-subscribe:hover { transform: translateY(-2px); background: var(--wp--preset--color--accent-dark); }

.categories-nav { border-top: 1px solid var(--wp--preset--color--border); padding: 10px 0; }
.categories-nav-list { display: flex; list-style: none; padding: 0; margin: 0; gap: 6px 24px; flex-wrap: wrap; }
.categories-nav-list a { font-size: 14px; color: var(--wp--preset--color--secondary); transition: color .3s; }
.categories-nav-list a:hover { color: var(--wp--preset--color--accent); }

/* --- Hero slider --- */
.hero-slider { position: relative; height: 65vh; min-height: 550px; max-height: 650px; color: #fff; overflow: hidden; margin: 0; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s cubic-bezier(.4,0,.2,1); display: flex; align-items: flex-end; color: #fff; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide::before { content: ''; position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; background-image: var(--bg-image); transform: scale(1.05); transition: transform 6s linear; }
.hero-slide.active::before { transform: scale(1); }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 15%, rgba(0,0,0,0) 60%); }
.hero-slider .hero-slide { isolation: isolate; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 64px 0; }
.hero-slogan { font-size: 1rem; font-weight: 600; text-transform: uppercase; margin: 0 0 12px; }
.hero-slogan span { display: inline-block; padding: 4px 10px; background: var(--wp--preset--color--accent); }
.hero-title { font-family: var(--wp--preset--font-family--heading); font-weight: 700; line-height: 1.2; font-size: clamp(2.8rem, 5vw, 4.2rem); text-shadow: 0 2px 10px rgba(0,0,0,.5); margin: 0 0 16px; color: #fff; }
.hero-subtitle { font-size: 1.15rem; max-width: 650px; line-height: 1.6; text-shadow: 0 1px 4px #000; margin: 0; }
.slider-nav { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 12px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; border: 0; padding: 0; transition: background .3s ease; }
.slider-dot.active { background: #fff; }

/* --- Sections & cards --- */
.section { padding: 80px 0 !important; margin: 0 !important; }
.section-alt { background-color: var(--wp--preset--color--base-soft); }
.section-header { margin-bottom: 48px; border-left: 4px solid var(--wp--preset--color--accent); padding-left: 20px; }
.section-title { font-size: 2.25rem !important; margin: 0; }
.news-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important; gap: 40px 32px !important; list-style: none; padding: 0; margin: 0; }
.news-grid > li { margin: 0 !important; width: auto !important; }
.news-card { display: flex; flex-direction: column; background-color: var(--wp--preset--color--base); transition: transform .3s ease, box-shadow .3s ease; height: 100%; gap: 0 !important; }
.news-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,.08); }
.news-card .card-image { aspect-ratio: 16 / 10; overflow: hidden; margin: 0 0 16px !important; }
.news-card .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.25,.46,.45,.94); }
.news-card:hover .card-image img { transform: scale(1.07); }
.card-content { padding: 0 8px 8px; }
.card-meta { font-size: 13px; font-weight: 600; color: var(--wp--preset--color--accent); margin: 0 0 8px !important; text-transform: uppercase; letter-spacing: .5px; }
.card-title, .article-title, .hero-title, .section-title { text-wrap: wrap; }
.card-title { font-family: var(--wp--preset--font-family--body) !important; font-size: 1.25rem !important; font-weight: 700; line-height: 1.4 !important; margin: 0 !important; }
.card-title a { color: var(--wp--preset--color--contrast); }

/* --- Article (перенос STYLE из divo_publish.py / шаблона статьи) --- */
.article-container { max-width: 800px; margin: 0 auto !important; padding: 60px 24px !important; box-sizing: border-box; }
.article-header { text-align: center; margin-bottom: 40px; }
.article-category { font-family: var(--wp--preset--font-family--body); font-size: 14px; font-weight: 700; color: var(--wp--preset--color--accent); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px !important; }
.article-title { font-size: clamp(2.2rem, 6vw, 3.2rem) !important; font-family: var(--wp--preset--font-family--heading); margin: 0 0 16px !important; color: var(--wp--preset--color--contrast); line-height: 1.1 !important; }
.article-deck, .article-deck p { font-family: var(--wp--preset--font-family--body); font-size: 1.25rem !important; font-weight: 400; color: #555 !important; margin: 0; font-style: italic; line-height: 1.5; }
.article-byline, .article-byline * { font-family: var(--wp--preset--font-family--body); font-size: 14px !important; color: #888; }
.article-byline { margin: 24px 0 !important; }
.hero-image { margin: 0 0 2em !important; }
.hero-image img { width: 100%; height: auto; border-radius: 8px; display: block; }
.article-body { font-family: var(--wp--preset--font-family--serif); font-size: 1.15rem; line-height: 1.8; color: #222; }
.article-body h2 { font-family: var(--wp--preset--font-family--heading); font-size: 1.8rem; margin-top: 2em; margin-bottom: 1em; border-left: 3px solid var(--wp--preset--color--accent); padding-left: 16px; }
.article-body h3 { font-family: var(--wp--preset--font-family--heading); font-size: 1.4rem; margin-top: 1.8em; margin-bottom: .6em; color: var(--wp--preset--color--contrast); }
.article-body p { margin-bottom: 1.5em; margin-top: 0; }
.article-body a { color: var(--wp--preset--color--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body blockquote { margin: 2.5em 0; padding: 2em; background-color: #f9f9f9; border-left: 5px solid var(--wp--preset--color--accent); font-style: italic; color: #444; font-size: 1.2rem; }
.article-body img { border-radius: 8px; margin: 1.5em 0; }
.article-body figure { margin: 2em 0; }
.article-body figcaption { font-family: var(--wp--preset--font-family--body); font-size: 14px; color: #888; }

/* --- Archive header --- */
.archive-header { padding: 60px 0 0; }

/* --- Footer --- */
.main-footer { background: var(--wp--preset--color--contrast); color: #a0a0a0; padding: 80px 0 0; margin-top: 0 !important; }
.main-footer a { color: #a0a0a0; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px; }
.footer-about .logo { color: #fff; margin-bottom: 16px; display: inline-block; }
.footer-about p { font-size: 15px; line-height: 1.7; }
.footer-socials { margin-top: 20px; }
.footer-socials a { font-size: 20px; margin-right: 15px; transition: color .3s ease; }
.footer-socials a:hover, .footer-col a:hover { color: #fff; }
.footer-socials svg { width: 20px; height: 20px; fill: currentColor; vertical-align: middle; }
.footer-col h4 { font-family: var(--wp--preset--font-family--body); font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 24px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li:not(:last-child) { margin-bottom: 12px; }
.footer-col a { transition: color .3s ease; }
.footer-bottom { border-top: 1px solid #333; margin-top: 60px; padding: 30px 0; text-align: center; font-size: 14px; }
.footer-pref { margin: 18px 0; font-size: 14px; opacity: .75; }

/* --- 404 --- */
.error-404 { text-align: center; padding: 120px 24px !important; }
.error-404 > * { margin-left: auto !important; margin-right: auto !important; max-width: 640px; }
.error-404 .wp-block-search { justify-content: center; }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: span 2; }
}
@media (max-width: 768px) {
  .header-content { flex-direction: column; align-items: flex-start; }
  .main-nav { margin-top: 15px; }
  .main-nav ul { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-about { grid-column: auto; }
  .news-grid { grid-template-columns: 1fr !important; }
  .admin-bar .header-system { top: 46px; }
}
