/* ══════════════════════════════════════════════════
   IronLabs Tech — inner.css
   Styles for all inner pages: page, single, archive,
   home blog, 404. Loaded when !is_front_page().
══════════════════════════════════════════════════ */

/* ── PAGE WRAP ───────────────────────────────────── */
.il-page-wrap {
  padding-top: 90px;
  min-height: 100vh;
  position: relative;
}

/* ── INNER PAGE HERO / TITLE BAND ────────────────── */
.il-page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.il-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 34, 0, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 34, 0, .04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.il-page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 34, 0, .04) 0%, transparent 60%);
  pointer-events: none;
}
.il-page-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 900; color: #fff;
  line-height: 1.1; position: relative; z-index: 1;
}
.il-page-subtitle {
  font-size: 11px; letter-spacing: 4px;
  color: var(--amber); text-transform: uppercase;
  margin-top: 12px; position: relative; z-index: 1;
}
.il-breadcrumb {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255, 179, 0, .35); margin-bottom: 20px;
  position: relative; z-index: 1;
}
.il-breadcrumb a { color: rgba(255, 179, 0, .5); transition: color .2s; }
.il-breadcrumb a:hover { color: var(--amber); }
.il-breadcrumb .separator { margin: 0 8px; color: rgba(255, 34, 0, .3); }

/* ── CONTENT AREA ────────────────────────────────── */
.il-content {
  max-width: 800px; margin: 0 auto; padding: 60px 24px;
}

/* Headings within content */
.il-content h1,
.il-content h2,
.il-content h3,
.il-content h4,
.il-content h5,
.il-content h6 {
  color: #fff; margin-bottom: 16px; margin-top: 40px; line-height: 1.2;
}
.il-content h1 { font-family: 'Orbitron', monospace; font-size: clamp(24px,4vw,48px); font-weight: 900; }
.il-content h2 { font-family: 'Orbitron', monospace; font-size: clamp(20px,3vw,36px); font-weight: 900; }
.il-content h3 { font-family: 'Orbitron', monospace; font-size: clamp(16px,2.5vw,26px); font-weight: 700; }
.il-content h4 { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.il-content h5 { font-size: 14px; font-weight: 600; letter-spacing: 1px; color: var(--amber); }
.il-content h6 { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }

/* Paragraphs */
.il-content p {
  color: var(--text); line-height: 1.85; margin-bottom: 20px; font-size: 15px;
}

/* Links */
.il-content a {
  color: var(--amber); text-decoration: underline;
  text-decoration-color: rgba(255, 179, 0, .3);
  transition: color .2s, text-decoration-color .2s;
}
.il-content a:hover {
  color: #fff;
  text-decoration-color: rgba(255, 179, 0, .7);
}

/* Lists */
.il-content ul,
.il-content ol {
  padding-left: 0; margin-bottom: 20px;
  list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.il-content ul li {
  color: var(--text); font-size: 15px; line-height: 1.75;
  padding-left: 20px; position: relative;
}
.il-content ul li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); box-shadow: var(--glow-rs);
}
.il-content ol { counter-reset: il-counter; }
.il-content ol li {
  color: var(--text); font-size: 15px; line-height: 1.75;
  padding-left: 32px; position: relative; counter-increment: il-counter;
}
.il-content ol li::before {
  content: counter(il-counter);
  position: absolute; left: 0; top: 0;
  font-family: 'Orbitron', monospace; font-size: 10px;
  color: var(--red); font-weight: 700;
}

/* Blockquote */
.il-content blockquote {
  border-left: 3px solid var(--red);
  padding: 16px 24px; margin: 32px 0;
  background: rgba(255, 34, 0, .03);
  color: var(--amber); font-size: 16px;
  font-style: italic; line-height: 1.75;
}
.il-content blockquote p { color: var(--amber); margin-bottom: 0; }

/* Code */
.il-content code {
  background: rgba(4, 0, 0, .8); color: var(--red);
  padding: 2px 8px; border-radius: 3px;
  font-family: 'Courier New', monospace; font-size: .9em;
  border: 1px solid rgba(255, 34, 0, .15);
}
.il-content pre {
  background: rgba(4, 0, 0, .9); border: 1px solid var(--border);
  padding: 24px; overflow-x: auto; margin-bottom: 24px;
  border-radius: 4px;
}
.il-content pre code {
  background: none; border: none; padding: 0; color: var(--amber); font-size: 13px;
}

/* Images */
.il-content img {
  max-width: 100%; height: auto; border: 1px solid var(--border);
  margin: 24px 0;
}
.il-content figure { margin: 32px 0; }
.il-content figcaption {
  font-size: 11px; letter-spacing: 2px; color: var(--dim);
  text-align: center; margin-top: 8px;
}

/* Tables */
.il-content table {
  width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px;
}
.il-content th {
  background: rgba(255, 34, 0, .06);
  border: 1px solid var(--border); padding: 12px 16px;
  font-family: 'Orbitron', monospace; font-size: 9px;
  letter-spacing: 2px; color: var(--amber); text-align: left;
}
.il-content td {
  border: 1px solid var(--border); padding: 12px 16px;
  color: var(--text); vertical-align: top;
}
.il-content tr:hover td { background: rgba(255, 34, 0, .02); }

/* Horizontal rule */
.il-content hr {
  border: none; border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── BLOG CARD ────────────────────────────────────── */
.il-post-card {
  border: 1px solid var(--border);
  background: rgba(255, 34, 0, .02);
  padding: 32px; position: relative;
  transition: border-color .3s, background .3s;
  overflow: hidden;
}
.il-post-card:hover {
  border-color: rgba(255, 179, 0, .2);
  background: rgba(255, 34, 0, .03);
}
.il-post-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--red), var(--amber));
  opacity: 0; transition: opacity .3s;
}
.il-post-card:hover::before { opacity: 1; }

.il-post-card-thumb {
  width: 100%; aspect-ratio: 16/7; object-fit: cover;
  border: 1px solid rgba(255, 34, 0, .1);
  margin-bottom: 24px; display: block;
}
.il-post-card-meta {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px; opacity: .8;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.il-post-card-meta span { color: rgba(255, 34, 0, .4); }
.il-post-card-title {
  font-family: 'Orbitron', monospace; font-size: clamp(15px, 2vw, 22px);
  font-weight: 900; color: #fff; margin-bottom: 12px;
  line-height: 1.2; transition: color .2s;
}
.il-post-card:hover .il-post-card-title { color: var(--red); }
.il-post-card-excerpt {
  font-size: 14px; color: var(--dim); line-height: 1.75; margin-bottom: 20px;
}
.il-post-card-link {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--amber); display: inline-flex; align-items: center; gap: 8px;
  transition: gap .2s;
}
.il-post-card:hover .il-post-card-link { gap: 14px; }

/* ── BLOG GRID ────────────────────────────────────── */
.il-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* ── PAGINATION ──────────────────────────────────── */
.il-pagination {
  display: flex; gap: 8px; margin-top: 60px;
  flex-wrap: wrap; align-items: center;
}
.il-page-btn {
  border: 1px solid var(--border); padding: 10px 18px;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--dim); background: transparent;
  transition: border-color .2s, color .2s, background .2s;
  cursor: pointer; text-decoration: none; display: inline-block;
}
.il-page-btn:hover, .il-page-btn.current {
  border-color: var(--red); color: var(--red);
  background: rgba(255, 34, 0, .04);
}

/* ── SINGLE POST ─────────────────────────────────── */
.il-single-header { padding: 0 0 40px; }
.il-post-featured-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border: 1px solid var(--border); margin-bottom: 40px; display: block;
}
.il-post-meta {
  display: inline-flex; flex-wrap: wrap; gap: 16px;
  color: var(--amber); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 20px;
}
.il-post-meta a { color: var(--amber); transition: color .2s; }
.il-post-meta a:hover { color: #fff; }

/* ── POST TAGS ───────────────────────────────────── */
.il-post-tags {
  display: inline-flex; flex-wrap: wrap; gap: 8px;
  margin-top: 40px;
}
.il-tag {
  border: 1px solid var(--border); padding: 4px 12px;
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--amber); background: transparent;
  transition: border-color .2s, background .2s;
  text-decoration: none; display: inline-block;
}
.il-tag:hover { border-color: var(--red); background: rgba(255, 34, 0, .04); }

/* ── AUTHOR BOX ──────────────────────────────────── */
.il-author-box {
  border: 1px solid var(--border); padding: 28px;
  display: flex; gap: 20px; margin-top: 48px;
  background: rgba(255, 34, 0, .02);
  align-items: flex-start;
}
.il-author-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  border: 2px solid var(--red); flex-shrink: 0; object-fit: cover;
}
.il-author-info { flex: 1; }
.il-author-label {
  font-size: 8px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--amber); opacity: .6; margin-bottom: 4px;
}
.il-author-name {
  font-family: 'Orbitron', monospace; font-size: 14px;
  font-weight: 700; color: #fff; margin-bottom: 8px;
}
.il-author-bio { font-size: 13px; color: var(--dim); line-height: 1.7; }

/* ── POST NAVIGATION ─────────────────────────────── */
.il-post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 48px;
}
.il-post-nav-item {
  border: 1px solid var(--border); padding: 20px;
  transition: border-color .2s, background .2s;
  position: relative; overflow: hidden;
}
.il-post-nav-item:hover {
  border-color: rgba(255, 34, 0, .4);
  background: rgba(255, 34, 0, .03);
}
.il-post-nav-label {
  font-size: 8px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--amber); opacity: .6; margin-bottom: 8px; display: block;
}
.il-post-nav-title {
  font-size: 13px; color: #fff; line-height: 1.4;
  font-weight: 600; display: block; text-decoration: none;
  transition: color .2s;
}
.il-post-nav-item:hover .il-post-nav-title { color: var(--amber); }

/* ── 404 PAGE ────────────────────────────────────── */
.il-404-wrap {
  text-align: center; padding: 140px 24px; min-height: 80vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.il-404-code {
  font-family: 'Orbitron', monospace;
  font-size: clamp(80px, 18vw, 180px);
  font-weight: 900; color: rgba(255, 34, 0, .08);
  line-height: 1; margin-bottom: -20px;
  user-select: none; pointer-events: none;
}
.il-404-title {
  font-family: 'Orbitron', monospace; font-size: clamp(20px, 3vw, 32px);
  font-weight: 900; color: #fff; margin-bottom: 16px;
}
.il-404-sub {
  font-size: 15px; color: var(--dim); line-height: 1.75;
  max-width: 480px; margin: 0 auto 40px;
}
.il-404-search {
  max-width: 440px; display: flex; margin: 40px auto 0;
  border: 1px solid var(--border); background: rgba(255, 34, 0, .02);
  transition: border-color .3s, box-shadow .3s;
}
.il-404-search:focus-within { border-color: var(--amber); box-shadow: var(--glow-a); }
.il-404-input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 14px 18px; font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; color: var(--text);
}
.il-404-input::placeholder { color: rgba(255, 179, 0, .2); }
.il-404-btn {
  padding: 14px 22px;
  background: var(--red); color: #fff; border: none; cursor: pointer;
  font-family: 'Orbitron', monospace; font-size: 9px;
  font-weight: 700; letter-spacing: 2px; transition: background .3s;
}
.il-404-btn:hover { background: var(--amber); color: #000; }
.il-404-links {
  display: flex; gap: 16px; margin-top: 32px;
  flex-wrap: wrap; justify-content: center;
}
.il-404-links a {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--dim); border-bottom: 1px solid rgba(255, 34, 0, .2);
  padding-bottom: 2px; transition: color .2s, border-color .2s;
  text-decoration: none;
}
.il-404-links a:hover { color: var(--amber); border-color: var(--amber); }

/* ── SIDEBAR ─────────────────────────────────────── */
.il-sidebar {
  display: flex; flex-direction: column; gap: 32px;
}
.il-widget {
  border: 1px solid var(--border);
  padding: 28px; background: rgba(255, 34, 0, .015);
}
.il-widget-title {
  font-family: 'Orbitron', monospace; font-size: 10px;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--amber); border-bottom: 1px solid var(--border);
  padding-bottom: 12px; margin-bottom: 16px;
}
.il-widget ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.il-widget ul li a {
  font-size: 13px; color: rgba(255, 200, 160, .5);
  transition: color .2s; display: block; text-decoration: none;
  padding: 4px 0;
}
.il-widget ul li a:hover { color: var(--amber); }
.il-widget .search-form { display: flex; gap: 0; }
.il-widget .search-field {
  flex: 1; background: rgba(4, 0, 0, .6);
  border: 1px solid var(--border); border-right: none;
  outline: none; padding: 10px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; color: var(--text);
}
.il-widget .search-submit {
  padding: 10px 16px; background: var(--red); color: #fff;
  border: none; cursor: pointer; font-size: 12px; transition: background .3s;
}
.il-widget .search-submit:hover { background: var(--amber); color: #000; }

/* ── WITH-SIDEBAR LAYOUT ─────────────────────────── */
.il-with-sidebar {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 48px; max-width: 1200px; margin: 0 auto;
  padding: 0 52px 80px;
}

/* ── COMMENTS ────────────────────────────────────── */
.comments-area { margin-top: 60px; }
.comments-title {
  font-family: 'Orbitron', monospace; font-size: 14px;
  font-weight: 700; letter-spacing: 3px; color: var(--amber);
  text-transform: uppercase; margin-bottom: 32px;
  border-bottom: 1px solid var(--border); padding-bottom: 16px;
}
.comment-list { list-style: none; }
.comment-body {
  border: 1px solid var(--border); padding: 24px;
  margin-bottom: 16px; background: rgba(255, 34, 0, .015);
}
.comment-author { margin-bottom: 8px; }
.comment-author .fn {
  font-family: 'Orbitron', monospace; font-size: 12px;
  font-weight: 700; color: var(--amber); font-style: normal;
}
.comment-metadata { font-size: 10px; color: var(--dim); margin-bottom: 12px; }
.comment-content p { font-size: 14px; color: var(--text); line-height: 1.75; }
.reply a {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); transition: color .2s; text-decoration: none;
}
.reply a:hover { color: var(--amber); }
.comment-form label {
  display: block; font-size: 9px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--amber); margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; background: rgba(4, 0, 0, .6);
  border: 1px solid var(--border); outline: none;
  padding: 12px 16px; font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; color: var(--text); margin-bottom: 20px;
  transition: border-color .2s, box-shadow .2s;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: rgba(255, 179, 0, .4); box-shadow: var(--glow-as);
}
.comment-form .submit {
  padding: 12px 32px; background: var(--red); color: #fff;
  border: none; cursor: pointer; font-family: 'Orbitron', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; transition: background .3s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.comment-form .submit:hover { background: var(--amber); color: #000; }

/* ── BLOG WRAP ───────────────────────────────────── */
.il-blog-wrap {
  padding: 48px 52px 80px;
}

/* ── CATEGORY FILTER BAR ─────────────────────────── */
.il-cat-filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 40px;
}
.il-cat-tab {
  padding: 8px 18px;
  border: 1px solid var(--border);
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--dim); text-decoration: none;
  background: transparent;
  transition: border-color .2s, color .2s, background .2s;
}
.il-cat-tab:hover {
  border-color: rgba(255, 34, 0, .4);
  color: var(--amber);
  background: rgba(255, 34, 0, .03);
}
.il-cat-tab.is-active {
  border-color: var(--red);
  color: var(--red);
  background: rgba(255, 34, 0, .06);
}

/* ── CATEGORY PILL ───────────────────────────────── */
.il-cat-pill {
  display: inline-block;
  padding: 3px 10px; margin-bottom: 10px;
  font-size: 8px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); border: 1px solid rgba(255, 34, 0, .3);
  background: rgba(255, 34, 0, .06);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.il-cat-pill:hover {
  background: rgba(255, 34, 0, .12);
  border-color: var(--red);
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .il-with-sidebar {
    grid-template-columns: 1fr;
    padding: 0 24px 60px;
  }
  .il-blog-wrap { padding: 32px 24px 60px; }
  .il-post-nav { grid-template-columns: 1fr; }
  .il-posts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .il-content { padding: 40px 0; }
  .il-author-box { flex-direction: column; }
  .il-page-hero { padding: 60px 0 40px; }
  .il-404-search { flex-direction: column; }
  .il-404-btn { padding: 12px; }
}
