/*
Theme Name: JAVXXX Dark Chrome
Theme URI: https://www.javxx.cz/
Author: JAVXXX
Description: A reversible dark chrome catalog theme built for the existing JAVXX WordPress structure.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: javxxx-dark-chrome
*/

:root {
  --jx-bg: #070707;
  --jx-panel: #111214;
  --jx-panel-2: #18191c;
  --jx-red: #e30613;
  --jx-red-soft: #a90711;
  --jx-silver: #d8d9dc;
  --jx-muted: #8d8f94;
  --jx-line: rgba(227, 6, 19, 0.55);
  --jx-content: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #f7f7f7;
  background:
    radial-gradient(circle at 50% -10%, rgba(227,6,19,.12), transparent 32rem),
    var(--jx-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.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;
}

.jx-shell { width: min(calc(100% - 40px), var(--jx-content)); margin-inline: auto; }

.jx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--jx-red);
  background: rgba(4, 4, 4, .94);
  box-shadow: 0 10px 35px rgba(0,0,0,.5), 0 1px 14px rgba(227,6,19,.2);
  backdrop-filter: blur(14px);
}
.admin-bar .jx-header { top: 32px; }
.jx-header__inner {
  min-height: 224px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 22px;
}
.jx-header__left, .jx-header__right { display: flex; align-items: center; gap: 14px; }
.jx-header__left { transform: translateY(34px); }
.jx-header__right { justify-content: flex-end; }
.jx-brand {
  width: clamp(400px, 38vw, 560px);
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 8px 0;
}
.jx-brand img {
  position: static;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: drop-shadow(0 0 12px rgba(227,6,19,.4));
}
.jx-brand__text {
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.08em;
  font-size: clamp(2rem, 5vw, 4.2rem);
  color: transparent;
  background: linear-gradient(180deg, #fff 0%, #7f8288 44%, #eceef2 53%, #15161a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(255,255,255,.6);
  text-shadow: 3px 3px 0 var(--jx-red), 0 0 16px rgba(227,6,19,.6);
}
.jx-icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  background: #101010;
  transition: border-color .2s, color .2s, transform .2s;
}
.jx-icon-button:hover, .jx-icon-button:focus-visible { border-color: var(--jx-red); color: var(--jx-red); transform: translateY(-1px); }
.jx-icon-button svg { width: 22px; height: 22px; }

.jx-menu-toggle { display: none; }
.jx-nav ul { display: flex; align-items: center; gap: 6px; padding: 0; margin: 0; list-style: none; }
.jx-nav a {
  display: block;
  padding: 10px 12px;
  color: #bfc0c4;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.jx-nav a:hover, .jx-nav .current-menu-item > a { color: #fff; background: linear-gradient(180deg, transparent, rgba(227,6,19,.16)); }

.jx-search {
  display: none;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.jx-search.is-open { display: block; }
.jx-search form { display: flex; gap: 10px; }
.jx-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #343434;
  color: #fff;
  background: #111;
  outline: 0;
}
.jx-search input[type="search"]:focus { border-color: var(--jx-red); }
.jx-search input[type="submit"] { padding: 0 24px; border: 1px solid var(--jx-red); color: #fff; background: var(--jx-red); cursor: pointer; }

.jx-main { min-height: 62vh; padding: 44px 0 64px; }
.jx-section { margin-bottom: 64px; }
.jx-section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(auto, 430px) 1fr;
  align-items: center;
  gap: 0;
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(1.4rem, 2.7vw, 2.05rem);
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
.jx-section-heading::before, .jx-section-heading::after { content: ""; height: 1px; background: linear-gradient(90deg, transparent, var(--jx-line)); }
.jx-section-heading::after { background: linear-gradient(90deg, var(--jx-line), transparent); }
.jx-section-heading span {
  position: relative;
  padding: 16px 28px;
  border-block: 1px solid rgba(227,6,19,.5);
  background: linear-gradient(115deg, transparent 8%, #18191c 8%, #101113 92%, transparent 92%);
  text-shadow: 0 2px 12px rgba(227,6,19,.28);
}

.jx-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px 18px; }
.jx-card { min-width: 0; }
.jx-card__media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid rgba(227,6,19,.78);
  background:
    linear-gradient(150deg, transparent 0 23%, rgba(227,6,19,.72) 23.2%, transparent 23.8%),
    linear-gradient(28deg, #080808 0 38%, #18191c 38.2% 65%, #0e0e10 65.2%),
    #111;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 14px 28px rgba(0,0,0,.22);
}
.jx-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55));
  pointer-events: none;
}
.jx-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, filter .35s; }
.jx-card:hover .jx-card__media img { transform: scale(1.025); filter: contrast(1.04) saturate(1.05); }
.jx-card__duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 3px;
  color: #fff;
  background: rgba(0,0,0,.84);
  font-size: .73rem;
  font-weight: 750;
}
.jx-card__body { padding: 13px 2px 0; }
.jx-card__title {
  margin: 0 0 8px;
  overflow: hidden;
  color: #f4f4f4;
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jx-card__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--jx-muted); font-size: .75rem; }
.jx-card__meta strong { color: var(--jx-red); font-weight: 750; }
.jx-card__stats { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.jx-card__stats span { display: inline-flex; align-items: center; gap: 4px; }
.jx-card__stats svg { width: 14px; height: 14px; }

.jx-skeleton .jx-card__bar { height: 10px; margin-bottom: 10px; background: linear-gradient(90deg,#e9e9ea 0 54%,transparent 54%); opacity: .92; }
.jx-skeleton .jx-card__bar--short { height: 7px; background: linear-gradient(90deg,var(--jx-red) 0 22%,transparent 22%); }
.jx-skeleton .jx-card__meta { justify-content: flex-end; }

.jx-more { display: flex; justify-content: center; margin-top: 28px; }
.jx-button {
  min-width: 230px;
  padding: 12px 24px;
  border: 1px solid var(--jx-red);
  color: var(--jx-red);
  background: transparent;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  transition: .2s ease;
}
.jx-button:hover { color: #fff; background: var(--jx-red); box-shadow: 0 0 24px rgba(227,6,19,.25); }

.jx-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.jx-pagination .page-numbers { min-width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid #303033; color: #b8b8bc; background: #101012; }
.jx-pagination .current, .jx-pagination a:hover { border-color: var(--jx-red); color: #fff; background: var(--jx-red); }

.jx-empty { padding: 28px; border: 1px solid #252528; color: var(--jx-muted); background: #0d0d0f; text-align: center; }
.jx-content { width: min(100%, 900px); margin-inline: auto; }
.jx-content h1 { font-size: clamp(2rem,5vw,4rem); line-height: 1.08; }
.jx-content a { color: var(--jx-red); text-decoration: underline; }
.jx-content img { height: auto; }

.jx-footer {
  position: relative;
  padding: 48px 0 26px;
  border-top: 1px solid var(--jx-red);
  background: linear-gradient(180deg,#111214,#070707);
}
.jx-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 28px; background: linear-gradient(180deg,rgba(227,6,19,.08),transparent); pointer-events: none; }
.jx-footer__grid { display: grid; grid-template-columns: 1.25fr repeat(3,1fr); gap: 38px; }
.jx-footer__brand { font-size: 1.7rem; font-weight: 950; font-style: italic; letter-spacing: -.06em; text-shadow: 1px 1px 0 var(--jx-red); }
.jx-footer h2 { margin: 0 0 14px; color: var(--jx-red); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.jx-footer p, .jx-footer li { color: #8b8c90; font-size: .8rem; }
.jx-footer ul { padding: 0; margin: 0; list-style: none; }
.jx-footer li + li { margin-top: 8px; }
.jx-footer a:hover { color: #fff; }
.jx-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 18px; border-top: 1px solid #202024; color: #626368; font-size: .72rem; }

@media (max-width: 1040px) {
  .jx-header__left { transform: none; }
  .jx-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 15px 20px; border-bottom: 1px solid var(--jx-red); background: #080808; }
  .jx-nav.is-open { display: block; }
  .jx-nav ul { flex-direction: column; align-items: stretch; }
  .jx-nav a { text-align: center; }
  .jx-menu-toggle { display: inline-grid; }
  .jx-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 782px) { .admin-bar .jx-header { top: 46px; } }

@media (max-width: 680px) {
  .jx-shell { width: min(calc(100% - 24px), var(--jx-content)); }
  .jx-header__inner { min-height: 142px; gap: 8px; }
  .jx-brand { width: clamp(210px, 58vw, 280px); height: 130px; padding-block: 6px; }
  .jx-header__right { gap: 7px; }
  .jx-icon-button { width: 38px; height: 38px; }
  .jx-main { padding-top: 30px; }
  .jx-section { margin-bottom: 46px; }
  .jx-section-heading { grid-template-columns: 22px 1fr 22px; font-size: 1.2rem; }
  .jx-section-heading span { padding: 14px 8px; }
  .jx-grid { grid-template-columns: 1fr; gap: 27px; }
  .jx-footer__grid { grid-template-columns: 1fr 1fr; }
  .jx-footer__bottom { flex-direction: column; }
}

@media (max-width: 430px) {
  .jx-header__inner { grid-template-columns: auto 1fr auto; }
  .jx-brand { width: 100%; }
  .jx-account-button { display: none; }
  .jx-footer__grid { grid-template-columns: 1fr; }
}
