/*
Theme Name: btsblog
Theme URI: https://local.test/
Author: Codex
Description: Archive Reel inspired WordPress blog theme for BTS movie clip archive posts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: btsblog
*/

:root {
  --bg: #030308;
  --ink: #d0e8f0;
  --muted: #6d8491;
  --dim: #3a4a55;
  --line: rgba(0, 245, 255, .15);
  --line-soft: rgba(0, 245, 255, .08);
  --panel: #090912;
  --panel-2: #100615;
  --rust: #ff0080;
  --cyan: #00f5ff;
  --olive: #f5e642;
  --purple: #7000ff;
  --danger: #ff4e68;
  --shadow-cyan: 0 0 28px rgba(0, 245, 255, .28);
  --shadow-pink: 0 0 28px rgba(255, 0, 128, .28);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(0, 245, 255, .075) 0%, transparent 34%),
    linear-gradient(225deg, rgba(80, 70, 255, .08) 0%, transparent 36%),
    linear-gradient(0deg, rgba(255, 0, 128, .045) 0%, transparent 42%),
    var(--bg);
  font-family: Rajdhani, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-tap-highlight-color: rgba(0, 245, 255, .25);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-nav {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(16px, 4vw, 48px);
  background: rgba(3, 3, 8, .95);
  backdrop-filter: blur(10px);
}

.brand {
  font-family: Orbitron, sans-serif;
  font-size: clamp(28px, 5vw, 58px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: linear-gradient(90deg, var(--cyan), var(--rust));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(0, 245, 255, .6);
}

.links,
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-family: "Share Tech Mono", monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.links a,
.menu a {
  position: relative;
  color: var(--muted);
  transition: color 180ms ease;
}

.links a::after,
.menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: width 240ms ease;
}

.links a:hover::after,
.menu a:hover::after {
  width: 100%;
}

.layout {
  width: min(1320px, calc(100% - 32px));
  margin: 28px auto 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.archive-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.archive-head h1,
.single-title {
  margin: 0;
  font-family: Orbitron, sans-serif;
  color: var(--ink);
  font-size: clamp(38px, 7vw, 78px);
  font-weight: 900;
  line-height: .9;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(0, 245, 255, .32);
}

.single-title {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.archive-head h1 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.meta a,
.post-categories a,
.post-tags a {
  background: rgba(0, 245, 255, .04);
  border: 1px solid rgba(0, 245, 255, .2);
  color: var(--cyan);
  padding: 7px 9px;
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.post-card .meta,
.single-main .meta {
  display: grid;
  gap: 6px;
}

.meta-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.meta-row > strong {
  padding: 7px 0;
  color: var(--cyan);
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.meta-values a {
  background: rgba(0, 245, 255, .04);
  border: 1px solid rgba(0, 245, 255, .2);
  color: var(--cyan);
  padding: 7px 9px;
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.single-main .meta-values a {
  background: none;
  border: 0;
  padding: 7px 0;
}

.rail {
  display: grid;
  gap: 18px;
}

.post-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 220px;
  box-shadow: 0 0 0 1px var(--line-soft), 0 18px 50px rgba(0, 0, 0, .28);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.post-card > *,
.widget > *,
.single-main > * {
  position: relative;
  z-index: 1;
}

.post-card:nth-child(2n) {
  border-left: 6px solid var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.post-card:nth-child(2n+1) {
  border-left: 6px solid var(--rust);
  box-shadow: var(--shadow-pink);
}

.post-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--bg);
  filter: contrast(1.05) saturate(.88);
}

.post-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(0, 245, 255, .15), transparent 50%, rgba(255, 0, 128, .1)),
    linear-gradient(135deg, #060610, #100615);
  border-right: 1px solid var(--line);
}

.post-body {
  padding: 20px;
}

.post-card h2,
.single-downloads h2,
.widget-title,
.sidebar h2 {
  margin: 0;
  font-family: Orbitron, sans-serif;
  text-transform: uppercase;
}

.post-card h2 {
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.post-card h2 a:hover,
.brand:hover,
.links a:hover,
.menu a:hover {
  color: var(--cyan);
}

.byline {
  margin-top: 8px;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
}

.post-body p,
.single-content,
.no-results {
  color: var(--muted);
  line-height: 1.45;
}

.downloads {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.downloads a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 245, 255, .035);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: "Share Tech Mono", monospace;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.downloads a:first-child {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(255, 0, 128, .28);
}

.downloads a:hover {
  border-color: var(--cyan);
  background: rgba(0, 245, 255, .07);
  color: var(--cyan);
  box-shadow: 0 0 26px rgba(0, 245, 255, .28);
  transform: translateY(-1px);
}

.downloads .release-download-cta {
  justify-content: center;
}

.sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.widget {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
  position: relative;
  isolation: isolate;
  box-shadow: 0 0 0 1px var(--line-soft), var(--shadow-cyan);
}

.widget-tezfiles-banner {
  display: flex;
  justify-content: center;
  padding: 10px;
}

.widget-tezfiles-banner a {
  display: block;
  line-height: 0;
}

.widget-tezfiles-banner img {
  display: block;
  width: 125px;
  max-width: 100%;
  height: auto;
}

.widget-title,
.sidebar h2 {
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 25px;
  text-shadow: 0 0 18px rgba(0, 245, 255, .32);
}

.widget input[type="search"],
.search-field {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 245, 255, .04);
  color: var(--cyan);
  padding: 12px;
  font-family: "Share Tech Mono", monospace;
}

.search-submit {
  margin-top: 8px;
  width: 100%;
  border: 0;
  padding: 12px;
  background: var(--cyan);
  color: var(--bg);
  font-family: Orbitron, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget li,
.widget a.widget-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.pagination .page-numbers,
.nav-links a,
.nav-links span {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  padding: 9px 12px;
  font-family: "Share Tech Mono", monospace;
  font-weight: 900;
}

.pagination .current {
  background: var(--cyan);
  color: var(--bg);
}

.single-main {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 6px solid var(--rust);
  position: relative;
  isolation: isolate;
  box-shadow: var(--shadow-pink);
}

.single-hero img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  filter: contrast(1.05) saturate(.88);
}

.single-inner {
  padding: clamp(18px, 4vw, 34px);
}

.single-content {
  margin-top: 18px;
}

.single-downloads {
  margin-top: 22px;
  padding-top: 18px;
}

.single-downloads h2 {
  color: var(--cyan);
  font-size: 30px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto 32px;
  padding-top: 18px;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .archive-head {
    display: grid;
  }
}

@media (max-width: 720px) {
  .site-nav,
  .post-card {
    grid-template-columns: 1fr;
  }

}
