/*
Theme Name: Blackframe
Theme URI: https://example.com/blackframe
Author: CsA
Description: Minimal, black, video-first WordPress theme (MP4 poster previews, click-to-play).
Version: 1.0.0
Text Domain: blackframe
*/


@font-face {
  font-family: "Source Sans 3";
  src: url("https://matthiasmentesdop.com/wp-content/fonts/source-sans-3.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Spectral";
  src: url("https://matthiasmentesdop.com/wp-content/fonts/spectral.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255,255,255,.75);
  --line: rgba(255,255,255,.14);
  --maxw: 1200px;

  /* UPDATED: typography families */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
html, body{ overflow-x: hidden; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.45;
}

a{ color: var(--fg); text-decoration: none; }
a:hover{ text-decoration: underline; }
img{ max-width: 100%; height: auto; display: block; }

/* a11y */
.screen-reader-text{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.screen-reader-text:focus{
  position:static !important;
  width:auto;
  height:auto;
  margin:0;
  overflow:visible;
  clip:auto;
  white-space:normal;
}


/* ---- Layout ---- */
.bf-wrap{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}

/* HEADER (stabil, nem függ más CSS-től) */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* header.php-ben: <div class="bf-wrap bf-header-grid"> */
.site-header .bf-wrap.bf-header-grid{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  gap: 18px;
}

.site-brand{ justify-self: start; display:flex; align-items:center; gap:12px; min-width:160px; }
.bf-nav{ justify-self: center; }

.site-brand .custom-logo{ max-height: 34px; width: auto; }
.site-title{ font-weight: 650; letter-spacing: .2px; }

/* Menu */
.bf-menu{
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.bf-menu a{
  display: inline-block;
  padding: 10px 6px;
  border-radius: 0;
  color: rgba(255,255,255,.92);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 15px;
  position: relative;
}

.bf-menu a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  opacity: .35;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.bf-menu a:hover{
  background: transparent;
  text-decoration: none;
}

.bf-menu a:hover::after{
  transform: scaleX(1);
}

.bf-menu .current-menu-item > a,
.bf-menu .current_page_item > a{
  background: transparent;
}

.bf-menu .current-menu-item > a::after,
.bf-menu .current_page_item > a::after{
  transform: scaleX(1);
  opacity: .55;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---- Content ---- */
main{ padding-top: 22px; }
.bf-bottom{ margin-top: 22px; }

/* Full-width */
.bf-full{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.bf-full.bf-wide{
  width: 100%;
  max-width: 95vw;
  margin: 0 auto 5px;
}
.bf-full .work-card{
  border: 0;
  border-radius: 0;
  background: transparent;
}
.bf-full .work-video{
  width: 100%;
  margin: 0;
  border-radius: 0;
}
.bf-full .work-video img,
.bf-full .work-video video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---- Video cards ---- */
.work-card{
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}

.work-video{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.work-video img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
}
.work-video:hover img{ opacity: 1; }

.work-video video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Play overlay (általános) */
.work-video .play{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,.9);
  text-shadow: 0 10px 20px rgba(0,0,0,.5);
}
.work-video .play::before{
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 12px 30px rgba(0,0,0,.55);
  display: block;
  position: absolute;
}
.work-video .play span{
  position: relative;
  transform: translateX(2px);
}

/* Meta ribbon */
.work-card .work-meta{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 12px 16px;
  background: rgba(0,0,0,.20);
}
.work-card .work-meta h3{
  margin: 0;
  font-weight: 600;
  font-size: 18px;
  color: rgba(255,255,255,1);
}
.work-card .work-meta h3 a{
  color: rgba(255,255,255,1);
  text-decoration: none;
}
.work-card .work-meta .meta{
  margin-top: 4px;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,1);
}
.work-card .work-meta a:hover{ text-decoration: none; }

/* HERO (overlay + tipó, spacing harmadolva) */
.bf-hero .work-video.bf-hero-media{
  position: relative;
  display: block; /* felülírja a grid-et */
}

.bf-hero .bf-hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.55),
    rgba(0,0,0,.25) 45%,
    rgba(0,0,0,.55)
  );
}

/* =========================
   HERO – végleges layout (EGY H1/H2: nincs duplikáció)
   ========================= */

.bf-hero-stage{
  position: relative;
}

/* desktop/tablet: overlay */
.bf-hero .bf-hero-content{
  position: absolute;
  inset: 0;
  z-index: 3;

  display: grid;
  align-content: start;
  justify-items: center;

  text-align: center;
  padding: 48px 20px 72px;
  color: rgba(255,255,255,.92);

  pointer-events: none; /* hogy a videóra lehessen kattintani */
}

/* Gutenberg blokkok alap margójának lenullázása a HERO-ban */
.bf-hero .bf-hero-content > *{
  margin: 0 !important;
}

/* HERO typography (desktop/tablet) */
.bf-hero .bf-hero-content h1.wp-block-heading{
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 10px !important;
}

.bf-hero .bf-hero-content h2.wp-block-heading{
  font-family: var(--sans);
  font-size: clamp(14px, 1.4vw, 20px);
  letter-spacing: .14em;
  font-weight: 600;
  margin-bottom: 12px !important;
}

.bf-hero .bf-hero-content p.has-text-align-center{
  max-width: 60ch;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.5;
  color: rgba(255,255,255,.82);
}

/* HERO play gomb – mindig szabadon */
.bf-hero .work-video .play{
  inset: auto;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  z-index: 4;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}
.bf-hero .work-video .play::before{
  width: 64px;
  height: 64px;
}

/* =========================
   HERO: mobilon a szöveg a videó fölé kerüljön (ugyanaz a blokk)
   ========================= */
@media (max-width: 640px){
  .bf-hero .bf-hero-content{
    position: relative;
    inset: auto;
    padding: 18px 0 14px;
    pointer-events: auto;
  }

  /* mobil tipó a videó fölött */
  .bf-hero .bf-hero-content h1.wp-block-heading{
    font-size: clamp(28px, 8.5vw, 40px);
    line-height: 1.08;
    margin: 0 0 8px !important;
  }
  .bf-hero .bf-hero-content h2.wp-block-heading{
    font-size: 14px;
    letter-spacing: .16em;
    margin: 0 0 10px !important;
  }
  .bf-hero .bf-hero-content p.has-text-align-center{
    font-size: 14px;
    line-height: 1.45;
    margin: 0 !important;
  }

  .bf-hero .work-video .play{
    width: 58px;
    height: 58px;
  }
  .bf-hero .work-video .play::before{
    width: 58px;
    height: 58px;
  }
}

/* ---- Single ---- */
.single .work-card{ border-radius: 22px; }
.single .work-card .work-meta{
  position: static;
  background: transparent;
  padding: 18px;
}
.single .work-card h1{ margin: 0 0 8px; font-size: 26px; }
.single .work-card .content{ color: rgba(255,255,255,.92); }

/* Buttons (generic) */
.bf-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);
  font-weight: 600;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.bf-btn:hover{
  text-decoration: none;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}
.bf-btn:active{ transform: translateY(0); }
.bf-btn:focus-visible{
  outline: 2px solid rgba(255,255,255,.7);
  outline-offset: 2px;
}

/* Single: prev / next */
.bf-post-nav{
  margin-top: 34px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.bf-post-nav a{
  max-width: 48%;
}
.bf-post-nav__next{
  margin-left: auto;
}
@media (max-width: 560px){
  .bf-post-nav{ flex-direction: column; }
  .bf-post-nav a{ max-width: 100%; }
}



/* Work: grid + filter + pagination */
.bf-work-grid{
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px){
  .bf-work-grid{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px){
  .bf-work-grid{ grid-template-columns: 1fr 1fr 1fr; }
}

.bf-filter{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 0 0 18px 0;
}
.bf-filter a{
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
}
.bf-filter a.is-active{
  background: rgba(255,255,255,.12);
}

.bf-pagination{ margin-top: 18px; }
.bf-pagination ul{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  list-style:none;
  padding:0;
  margin:0;
}
.bf-pagination a,
.bf-pagination span{
  display:inline-block;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
}
.bf-pagination .current{ background: rgba(255,255,255,.12); }

/* Search */
.bf-search-hero{
  text-align: center;
  margin: 0 0 18px;
}
.bf-search-hero h1{
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}
.bf-search-hero p{
  margin: 0 auto;
  max-width: 70ch;
  color: rgba(255,255,255,.78);
}

.bf-search-form{
  max-width: 520px;
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.bf-search-form input[type="search"]{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.92);
  outline: none;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: .01em;
}
.bf-search-form input[type="search"]::placeholder{
  color: rgba(255,255,255,.55);
}
.bf-search-form button{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.bf-search-form button:hover{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
}
@media (max-width: 560px){
  .bf-search-form{ grid-template-columns: 1fr; }
}


/* Mobil */
@media (max-width: 560px){
  .site-header .bf-wrap.bf-header-grid{
    grid-template-columns: auto 1fr auto;
  }
}

/* =========================
   CONTACT PAGE
   ========================= */

.bf-contact{
  padding: 48px 0 64px;
}

.bf-contact-hero h1{
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  margin-bottom: 10px;
  font-weight: 400;
}

.bf-contact-hero h2{
  font-size: 16px;
  letter-spacing: .18em;
  margin-bottom: 18px;
  font-weight: 600;
}

.bf-contact-hero p{
  max-width: 58ch;
  margin: 0 auto 14px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.bf-contact-hero a{
  font-weight: 600;
}

.bf-contact-hero hr{
  margin: 28px auto;
  max-width: 120px;
  border-color: rgba(255,255,255,.18);
}

/* Mobil finomítás */
@media (max-width: 640px){
  .bf-contact{
    padding: 36px 0 48px;
  }

  .bf-contact-hero h1{
    font-size: 30px;
  }

  .bf-contact-hero p{
    font-size: 15px;
  }
}

.page-about .page-header {
  text-align: center;
  margin: 6rem 0 4rem;
}

.page-about .page-header h1 {
  margin: 0;
}
.single .work-video--extra { margin-top: 22px; }

:root {
  --system-sans: system-ui, -apple-system, BlinkMacSystemFont,
                 "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =========================
   404 – Blackframe styled
   ========================= */

.bf-404{
  padding: 34px 0 10px;
}

.bf-404-card{
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  padding: clamp(20px, 3.2vw, 34px);
}

/* finom “film grain / vignette” érzet, nem hivalkodó */
.bf-404-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(800px 280px at 20% 10%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(700px 260px at 80% 0%, rgba(255,255,255,.06), transparent 55%),
    radial-gradient(900px 500px at 50% 110%, rgba(0,0,0,.55), transparent 60%);
  pointer-events:none;
  opacity: .9;
}

.bf-404-card > *{
  position: relative;
  z-index: 1;
}

.bf-404-top{
  text-align: center;
  margin-bottom: 18px;
}

.bf-404-kicker{
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.70);
  border: 1px solid rgba(255,255,255,.14);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(6px);
}

.bf-404 h1{
  margin: 14px 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 10vw, 120px);
  line-height: .95;
  letter-spacing: .01em;
}

.bf-404-lead{
  margin: 0 auto;
  max-width: 64ch;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.6;
}

.bf-404-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 18px;
}

.bf-404-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);
  font-weight: 600;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.bf-404-btn:hover{
  text-decoration: none;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}

.bf-404-btn--primary{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}

.bf-404-search{
  max-width: 520px;
  margin: 0 auto;
  padding-top: 6px;
}

/* csak a 404 keresőre: ne nyúljon más search formokhoz */
.bf-404-search form{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.bf-404-search input[type="search"]{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.92);
  outline: none;
}

.bf-404-search input[type="search"]::placeholder{
  color: rgba(255,255,255,.55);
}

.bf-404-search input[type="submit"]{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.bf-404-search input[type="submit"]:hover{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
}

/* mobilon: gombok + kereső egymás alá */
@media (max-width: 560px){
  .bf-404-search form{
    grid-template-columns: 1fr;
  }
}
.bf-404-search input[type="search"]{
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: .01em;
}

.bf-404-search input[type="submit"]{
  letter-spacing: .04em;
}
.bf-404-btn--primary{
  background: rgba(255,255,255,.16);
}
.bf-404-card{
  transition: box-shadow 220ms ease;
}
.bf-404-card:hover{
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.bf-404-filmtear-img{
  display:block;
  width:min(300px,88%);
  height:auto;
  margin: 10px auto 18px;
  opacity:.92;
  pointer-events:none;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.35));
}
@media (max-width: 640px){
  .bf-404-filmtear-img{ margin: 8px auto 14px; }
}
.bf-to-top{
  position: fixed;
  right: calc(18px + env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 99999;
  isolation: isolate;

  display: grid;
  place-items: center;
  text-decoration: none;
}

/* ha a JS fut, akkor ez elrejti görgetés előtt */
.bf-to-top.is-hidden{
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}