/*
Theme Name: MKK.Legal
Theme URI: https://mkk.legal
Author: MKK.Legal / Claude Code
Author URI: https://mkk.legal
Description: Własny motyw klasyczny kancelarii MKK.Legal (dr Marta Kowalczuk-Kędzierska). 1:1 z prototypem Editorial + Noir. Wielojęzyczny (PL/EN/DE/ES, Polylang), ACF, ochrona kontaktu anti-scraping, RODO-ready. Front bez jQuery (vanilla JS).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mkk-legal
Tags: custom-colors, translation-ready, full-width-template, threaded-comments
*/

/* Style właściwe motywu są w assets/css/tokens.css (motywy + Noir) oraz
   assets/css/base.css (układ i komponenty) — ładowane przez inc/enqueue.php.
   Ten plik trzyma nagłówek motywu i ewentualne drobne nadpisania poniżej. */

/* Drobne usprawnienia dostępności / WP-specyficzne. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-on);
  padding: 12px 18px; border-radius: 0 0 10px 0;
  font-family: var(--font-mono); font-size: 13px;
}
.skip-link:focus { left: 0; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Admin bar nie powinien zasłaniać sticky nav. */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* Bez JS: pokaż wszystkie elementy reveal (nie ukrywaj treści). */
html:not(.js) .reveal { opacity: 1 !important; transform: none !important; }

/* Kotwice migracyjne: odsuń od sticky nav (deep-link / stare #anchor). */
[id], .section[id], .area-card[id] { scroll-margin-top: 92px; }

/* Chroniony adres renderowany jako przycisk „Pokaż”. */
.mkk-address {
  cursor: pointer; text-align: left; background: none; border: 0; padding: 0;
  color: inherit; font: inherit;
}
.mkk-address .mkk-reveal { display: block; font-size: 12px; opacity: .7; margin-top: 4px; }
.mkk-protect { cursor: pointer; }

/* screen-reader-only (gdy motyw nie ładuje domyślnych stylów WP). */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ============================================================
   WIDEO (facade YouTube)
   ============================================================ */
.yt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
@media (max-width: 900px) { .yt-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .yt-grid { grid-template-columns: 1fr; } }
.yt-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--card-radius);
  overflow: hidden; transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s, box-shadow .4s;
}
.yt-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.yt-play-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  position: relative; line-height: 0;
}
.yt-thumb { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); transition: transform .5s; }
.yt-card:hover .yt-thumb img { transform: scale(1.05); }
.yt-play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--accent-on);
  box-shadow: 0 10px 30px -8px var(--accent-shadow); transition: transform .3s;
}
.yt-play svg { margin-left: 3px; }
.yt-play-btn:hover .yt-play { transform: scale(1.08); }
.yt-info { padding: 18px 20px 20px; }
.yt-title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 17px; line-height: 1.3; margin: 0; letter-spacing: var(--display-tracking); }
.yt-date { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); margin-top: 8px; }
/* osadzony odtwarzacz po zgodzie */
.yt-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.yt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* komunikat zgody */
.yt-consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center; text-align: center; padding: 18px;
  background: color-mix(in oklab, var(--ink) 82%, transparent); color: var(--bg);
}
.yt-consent p { margin: 0; font-size: 14px; max-width: 30ch; }
.yt-consent-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.yt-consent-manage, .yt-consent-watch {
  font-family: var(--font-mono); font-size: 12px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.yt-consent-manage { background: var(--accent); color: var(--accent-on); }
.yt-consent-watch { border: 1px solid color-mix(in oklab, var(--bg) 50%, transparent); color: var(--bg); }
.yt-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
