/*
Theme Name: Iron Vision
Theme URI: https://www.youtube.com/@ironvision1
Author: Iron Vision
Author URI: https://www.youtube.com/@ironvision1
Description: Dark tactical theme for Iron Vision — military analysis, modern warfare, and geopolitics channel. Video-focused magazine layout with YouTube embeds.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ironvision
Tags: dark, magazine, video, one-column, two-columns, custom-menu, featured-images
*/

:root {
  --iv-bg: #0b0d10;
  --iv-bg-2: #12151a;
  --iv-bg-3: #1a1e25;
  --iv-border: #262c35;
  --iv-text: #d6dae0;
  --iv-text-dim: #8b929c;
  --iv-accent: #e0a52e;
  --iv-accent-2: #b98314;
  --iv-red: #c0392b;
  --iv-font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --iv-font-body: 'Inter', 'Segoe UI', sans-serif;
  --iv-max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--iv-bg);
  color: var(--iv-text);
  font-family: var(--iv-font-body);
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--iv-accent); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

h1, h2, h3, h4, h5 {
  font-family: var(--iv-font-head);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.25;
  color: #fff;
}

.iv-container { max-width: var(--iv-max); margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.iv-topbar {
  background: #000;
  border-bottom: 1px solid var(--iv-border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.iv-topbar .iv-container {
  display: flex; justify-content: space-between; align-items: center;
  height: 34px;
}
.iv-topbar-tag { color: var(--iv-text-dim); }
.iv-topbar-tag span { color: var(--iv-accent); }
.iv-topbar-social a { margin-left: 14px; color: var(--iv-text-dim); }
.iv-topbar-social a:hover { color: var(--iv-accent); }

/* ---------- Header ---------- */
.iv-header {
  background: linear-gradient(180deg, #12151a 0%, #0b0d10 100%);
  border-bottom: 2px solid var(--iv-accent);
  position: sticky; top: 0; z-index: 100;
}
.iv-header .iv-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.iv-logo {
  font-family: var(--iv-font-head);
  font-size: 28px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: #fff; display: flex; align-items: center; gap: 10px;
}
.iv-logo:hover { color: #fff; }
.iv-logo .iv-logo-mark {
  width: 34px; height: 34px;
  background: var(--iv-accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #000; font-size: 16px; font-weight: 800;
}
.iv-logo span.iv-logo-accent { color: var(--iv-accent); }
.iv-logo img.custom-logo { max-height: 48px; width: auto; }

.iv-nav ul { list-style: none; display: flex; gap: 4px; }
.iv-nav a {
  display: block; padding: 10px 16px;
  font-family: var(--iv-font-head); font-size: 14px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--iv-text);
}
.iv-nav a:hover, .iv-nav .current-menu-item > a {
  color: var(--iv-accent);
  border-bottom: 2px solid var(--iv-accent);
}
.iv-nav-toggle {
  display: none; background: none; border: 1px solid var(--iv-border);
  color: var(--iv-text); font-size: 20px; padding: 6px 12px; cursor: pointer;
}

/* ---------- Hero ---------- */
.iv-hero {
  position: relative;
  background: radial-gradient(ellipse at 30% 20%, #1c2129 0%, #0b0d10 70%);
  border-bottom: 1px solid var(--iv-border);
  overflow: hidden;
}
.iv-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 40px, rgba(224,165,46,.03) 40px 41px);
  pointer-events: none;
}
.iv-hero .iv-container { padding: 70px 20px; position: relative; }
.iv-hero-kicker {
  color: var(--iv-accent); font-family: var(--iv-font-head);
  font-size: 14px; letter-spacing: .3em; text-transform: uppercase;
  margin-bottom: 14px;
}
.iv-hero h1 { font-size: clamp(32px, 5vw, 58px); max-width: 800px; }
.iv-hero p { max-width: 620px; margin-top: 18px; color: var(--iv-text-dim); font-size: 18px; }
.iv-hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

.iv-btn {
  display: inline-block; padding: 13px 28px;
  font-family: var(--iv-font-head); font-size: 14px;
  text-transform: uppercase; letter-spacing: .12em;
  border: 1px solid var(--iv-accent); color: var(--iv-accent);
  background: transparent; cursor: pointer;
}
.iv-btn:hover { background: var(--iv-accent); color: #000; }
.iv-btn--solid { background: var(--iv-accent); color: #000; }
.iv-btn--solid:hover { background: var(--iv-accent-2); color: #000; }
.iv-btn--red { border-color: var(--iv-red); color: #fff; background: var(--iv-red); }
.iv-btn--red:hover { background: #a93226; color: #fff; }

/* ---------- Section headings ---------- */
.iv-section { padding: 56px 0; }
.iv-section-head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 30px;
}
.iv-section-head h2 { font-size: 24px; white-space: nowrap; }
.iv-section-head h2::before { content: "// "; color: var(--iv-accent); }
.iv-section-head .iv-rule { flex: 1; height: 1px; background: var(--iv-border); }

/* ---------- Post grid ---------- */
.iv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.iv-card {
  background: var(--iv-bg-2); border: 1px solid var(--iv-border);
  display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.iv-card:hover { border-color: var(--iv-accent); transform: translateY(-3px); }
.iv-card-thumb { position: relative; aspect-ratio: 16/9; background: var(--iv-bg-3); overflow: hidden; }
.iv-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.iv-card-thumb .iv-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.25); opacity: 0; transition: opacity .2s;
}
.iv-card:hover .iv-play { opacity: 1; }
.iv-play svg { width: 56px; height: 56px; fill: var(--iv-accent); }
.iv-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.iv-card-meta {
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--iv-text-dim);
}
.iv-card-meta a { color: var(--iv-accent); }
.iv-card h3 { font-size: 18px; }
.iv-card h3 a { color: #fff; }
.iv-card h3 a:hover { color: var(--iv-accent); }
.iv-card p { color: var(--iv-text-dim); font-size: 14px; }

/* ---------- Content / single ---------- */
.iv-main { padding: 48px 0; }
.iv-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.iv-article { background: var(--iv-bg-2); border: 1px solid var(--iv-border); padding: 36px; }
.iv-article h1.entry-title { font-size: 34px; margin-bottom: 12px; }
.iv-entry-meta { color: var(--iv-text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 24px; }
.iv-entry-content { font-size: 17px; }
.iv-entry-content p, .iv-entry-content ul, .iv-entry-content ol, .iv-entry-content figure { margin-bottom: 1.3em; }
.iv-entry-content h2, .iv-entry-content h3 { margin: 1.6em 0 .7em; }
.iv-entry-content iframe { max-width: 100%; }
.iv-entry-content .wp-block-embed iframe { width: 100%; aspect-ratio: 16/9; height: auto; }
.iv-entry-content blockquote {
  border-left: 3px solid var(--iv-accent); padding: 8px 20px;
  background: var(--iv-bg-3); color: var(--iv-text-dim); font-style: italic;
}

/* ---------- Sidebar ---------- */
.iv-sidebar .widget {
  background: var(--iv-bg-2); border: 1px solid var(--iv-border);
  padding: 24px; margin-bottom: 24px;
}
.iv-sidebar .widget-title, .iv-sidebar .wp-block-heading {
  font-size: 16px; margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--iv-border);
}
.iv-sidebar ul { list-style: none; }
.iv-sidebar li { padding: 8px 0; border-bottom: 1px dashed var(--iv-border); font-size: 14px; }
.iv-sidebar li:last-child { border-bottom: none; }

/* ---------- Subscribe band ---------- */
.iv-subscribe {
  background: linear-gradient(90deg, #171207 0%, #0b0d10 100%);
  border-top: 1px solid var(--iv-accent); border-bottom: 1px solid var(--iv-accent);
  padding: 48px 0; text-align: center;
}
.iv-subscribe h2 { font-size: 28px; margin-bottom: 10px; }
.iv-subscribe p { color: var(--iv-text-dim); margin-bottom: 22px; }

/* ---------- Footer ---------- */
.iv-footer { background: #000; border-top: 1px solid var(--iv-border); margin-top: 0; }
.iv-footer-widgets {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
  padding: 48px 0;
}
.iv-footer h4 { font-size: 15px; margin-bottom: 14px; color: var(--iv-accent); }
.iv-footer ul { list-style: none; }
.iv-footer li { padding: 5px 0; font-size: 14px; }
.iv-footer a { color: var(--iv-text-dim); }
.iv-footer a:hover { color: var(--iv-accent); }
.iv-footer-bottom {
  border-top: 1px solid var(--iv-border); padding: 18px 0;
  font-size: 12px; color: var(--iv-text-dim);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Pagination / misc ---------- */
.iv-pagination { margin-top: 40px; display: flex; gap: 8px; justify-content: center; }
.iv-pagination .page-numbers {
  padding: 8px 16px; border: 1px solid var(--iv-border); color: var(--iv-text);
  font-family: var(--iv-font-head); font-size: 14px;
}
.iv-pagination .page-numbers.current, .iv-pagination .page-numbers:hover {
  border-color: var(--iv-accent); color: var(--iv-accent);
}

.iv-search-form { display: flex; }
.iv-search-form input[type="search"] {
  flex: 1; background: var(--iv-bg-3); border: 1px solid var(--iv-border);
  color: var(--iv-text); padding: 10px 14px; font-size: 14px;
}
.iv-search-form button {
  background: var(--iv-accent); border: none; color: #000; padding: 0 18px;
  font-family: var(--iv-font-head); text-transform: uppercase; cursor: pointer;
}

.iv-404 { text-align: center; padding: 100px 20px; }
.iv-404 h1 { font-size: 80px; color: var(--iv-accent); }

/* ---------- Comments ---------- */
.comment-list { list-style: none; margin-top: 30px; }
.comment-list .comment { border-top: 1px solid var(--iv-border); padding: 18px 0; }
.comment-respond { margin-top: 30px; }
.comment-form input, .comment-form textarea {
  width: 100%; background: var(--iv-bg-3); border: 1px solid var(--iv-border);
  color: var(--iv-text); padding: 10px 14px; margin-bottom: 12px;
}
.comment-form .submit { width: auto; background: var(--iv-accent); color: #000; border: none;
  padding: 12px 26px; font-family: var(--iv-font-head); text-transform: uppercase; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .iv-grid { grid-template-columns: repeat(2, 1fr); }
  .iv-layout { grid-template-columns: 1fr; }
  .iv-footer-widgets { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .iv-nav { display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--iv-bg-2); border-bottom: 1px solid var(--iv-border); }
  .iv-nav.is-open { display: block; }
  .iv-nav ul { flex-direction: column; padding: 10px 0; }
  .iv-nav-toggle { display: block; }
  .iv-grid { grid-template-columns: 1fr; }
  .iv-article { padding: 22px; }
  .iv-topbar { display: none; }
}
