/* MRH Strona: minimalne style strukturalne shortcodów. Kolory i fonty biorą się z motywu (zmienne --wp--preset--*). */

:root {
  --mrh-red: var(--wp--preset--color--czerwien, #e60203);
  --mrh-blue: var(--wp--preset--color--niebieski, #6855ff);
  --mrh-violet: var(--wp--preset--color--fiolet, #5324d4);
  --mrh-navy: var(--wp--preset--color--granat, #000033);
  --mrh-sky: var(--wp--preset--color--blekit, #99a5fb);
  --mrh-paper: var(--wp--preset--color--papier, #f5f2ec);
  --mrh-display: var(--wp--preset--font-family--bebas-neue, 'Bebas Neue', Impact, sans-serif);
}

/* Przyciski */
.mrh-btn { display: inline-block; padding: .7em 1.4em; background: var(--mrh-red); color: #fff; text-decoration: none; font-weight: 600; border-radius: 2px; line-height: 1.1; }
.mrh-btn:hover { background: var(--mrh-navy); color: #fff; }
.mrh-btn--outline { background: transparent; color: var(--mrh-navy); box-shadow: inset 0 0 0 2px var(--mrh-navy); }
.mrh-btn--outline:hover { background: var(--mrh-navy); color: #fff; }
.mrh-btn--light { background: #fff; color: var(--mrh-red); }
.mrh-btn--light:hover { background: var(--mrh-navy); color: #fff; }
.mrh-btn--small { padding: .5em 1em; font-size: .9em; }
.mrh-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.mrh-tag { display: inline-block; font-family: var(--wp--preset--font-family--archivo-narrow, 'Arial Narrow', sans-serif); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mrh-violet); font-weight: 700; }
.mrh-empty, .mrh-notice { padding: 1rem 1.25rem; background: var(--mrh-paper); border-left: 4px solid var(--mrh-blue); }

/* Listwa najbliższego koncertu */
.mrh-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .9rem 1.5rem; background: var(--mrh-red); color: #fff; font-size: 1rem; }
.mrh-strip__label { font-family: var(--mrh-display); letter-spacing: .08em; font-size: 1.25rem; margin-right: .5rem; }
.mrh-strip__date { font-weight: 700; }
.mrh-strip .mrh-btn { margin-left: auto; }
@media (max-width: 600px) { .mrh-strip__sep { display: none; } .mrh-strip > span { flex-basis: 100%; } .mrh-strip .mrh-btn { margin-left: 0; } }

/* Koncerty: lista */
.mrh-koncerty { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--mrh-sky); }
.mrh-koncert { display: grid; grid-template-columns: 6rem 1fr auto; gap: 1.25rem; align-items: center; padding: 1.25rem; background: #fff; }
.mrh-koncert.is-past { opacity: .6; }
.mrh-koncert__date { text-decoration: none; color: var(--mrh-navy); text-align: center; }
.mrh-koncert__day { display: block; font-family: var(--mrh-display); font-size: 3rem; line-height: .9; color: var(--mrh-red); }
.mrh-koncert__mon { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.mrh-koncert__title { margin: 0 0 .25rem; font-size: 1.25rem; }
.mrh-koncert__title a { text-decoration: none; color: inherit; }
.mrh-koncert__meta { margin: 0; color: #555; }
@media (max-width: 600px) { .mrh-koncert { grid-template-columns: 4.5rem 1fr; } .mrh-koncert .mrh-btn { grid-column: 2; justify-self: start; } }

/* Projekty: siatka kafli ze zdjeciem na calosci i tytulem na zdjeciu */
.mrh-projekty { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.mrh-projekt { grid-column: span 2; position: relative; display: block; color: #fff; background: var(--mrh-navy); overflow: hidden; aspect-ratio: 4 / 3; margin: 0; }
.mrh-projekt__link { color: inherit; text-decoration: none; }
.mrh-projekt__link::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.mrh-projekt p { margin: 0; }
.mrh-projekt.is-featured { grid-column: span 6; aspect-ratio: 21 / 9; }
.mrh-projekt__media { position: absolute; inset: 0; }
.mrh-projekt__media img, .mrh-thumb-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.mrh-projekt:hover .mrh-projekt__media img { transform: scale(1.04); }
.mrh-thumb-placeholder { background: linear-gradient(135deg, var(--mrh-sky), var(--mrh-blue)); }
.mrh-projekt::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,51,0) 35%, rgba(0,0,51,.85) 100%); pointer-events: none; }
.mrh-projekt__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.25rem 1.4rem; }
.mrh-projekt.is-featured .mrh-projekt__text { padding: 2rem 2.5rem; max-width: 70%; }
.mrh-projekt__num { font-family: var(--mrh-display); font-size: 1rem; letter-spacing: .12em; color: var(--mrh-sky); margin: 0; }
.mrh-projekt--czerwien .mrh-projekt__num { color: #ff6b6b; }
.mrh-projekt__title { margin: .2rem 0 .1rem; font-family: var(--mrh-display); font-size: 1.9rem; line-height: .95; letter-spacing: .02em; color: #fff; }
.mrh-projekt.is-featured .mrh-projekt__title { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.mrh-projekt__sub { margin: 0; color: rgba(255,255,255,.8); font-size: .95rem; }
@media (max-width: 900px) { .mrh-projekt { grid-column: span 3; } .mrh-projekt.is-featured { aspect-ratio: 4 / 3; } .mrh-projekt.is-featured .mrh-projekt__text { max-width: 100%; padding: 1.5rem; } }
@media (max-width: 600px) { .mrh-projekt, .mrh-projekt.is-featured { grid-column: span 6; aspect-ratio: 3 / 2; } }

/* Co nowego */
.mrh-nowego { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mrh-nowego__item h3 { font-size: 1.2rem; margin: .4rem 0; }
.mrh-nowego__item h3 a { text-decoration: none; color: inherit; }
.mrh-nowego__item p { margin: 0; color: #555; }
.mrh-nowego__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--mrh-paper); margin-bottom: .75rem; text-decoration: none; }
.mrh-nowego__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mrh-nowego__date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--mrh-navy); color: #fff; }
.mrh-nowego__date .mrh-koncert__day { font-size: 4.5rem; color: #fff; }
.mrh-nowego__date .mrh-koncert__mon { color: var(--mrh-sky); }
@media (max-width: 900px) { .mrh-nowego { grid-template-columns: 1fr; } }

/* Filtry archiwum */
.mrh-filtry { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.mrh-filtry__tab { padding: .5em 1.1em; text-decoration: none; color: var(--mrh-navy); box-shadow: inset 0 0 0 1px var(--mrh-navy); border-radius: 999px; font-size: .95rem; }
.mrh-filtry__tab.is-active, .mrh-filtry__tab:hover { background: var(--mrh-navy); color: #fff; }

/* Meta (dl) */
.mrh-meta { display: grid; gap: .75rem; margin: 0; }
.mrh-meta > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--mrh-sky); }
.mrh-meta dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mrh-violet); font-weight: 700; padding-top: .2rem; }
.mrh-meta dd { margin: 0; }
.mrh-sklad, .mrh-linki, .mrh-pobierz, .mrh-social { list-style: none; margin: 0; padding: 0; }
.mrh-pobierz { display: flex; gap: .75rem; flex-wrap: wrap; }
.mrh-social { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.mrh-social a { text-decoration: none; font-weight: 600; }

/* Nagrania / YouTube */
.mrh-nagrania { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; align-items: start; }
.mrh-yt { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.mrh-yt--single { max-width: 960px; }
.mrh-yt__btn { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; }
.mrh-yt__btn img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s; }
.mrh-yt__btn:hover img { opacity: 1; }
.mrh-yt__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--mrh-red); }
.mrh-yt__play::after { content: ''; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.mrh-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mrh-video-pion { width: 100%; max-width: 360px; aspect-ratio: 9 / 16; background: #000; justify-self: center; }
@media (max-width: 700px) { .mrh-nagrania { grid-template-columns: 1fr; } }

/* Etykiety sekcji jako akapit: blok, zeby ukladac sie w siatce constrained */
p.mrh-tag { display: block; margin-bottom: .5rem; }

/* Formularz CF7 */
.mrh-form label { display: block; font-weight: 600; margin-bottom: 1rem; }
.mrh-form input[type=text], .mrh-form input[type=email], .mrh-form input[type=tel], .mrh-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: .3rem; padding: .7em .9em; font: inherit; font-weight: 400; border: 1px solid var(--mrh-sky); background: #fff; color: var(--mrh-navy); border-radius: 2px; }
.mrh-form input:focus, .mrh-form textarea:focus { outline: 2px solid var(--mrh-blue); outline-offset: 1px; border-color: var(--mrh-blue); }
.mrh-form textarea { min-height: 160px; }
.mrh-form__zgoda { font-weight: 400; font-size: .95rem; }
.mrh-form__zgoda .wpcf7-list-item { margin: 0; }
.mrh-form .wpcf7-submit { display: inline-block; padding: .8em 1.8em; background: var(--mrh-red); color: #fff; border: 0; border-radius: 2px; font: inherit; font-weight: 600; cursor: pointer; }
.mrh-form .wpcf7-submit:hover { background: var(--mrh-navy); }
.wpcf7-not-valid-tip { color: var(--mrh-red); font-size: .9rem; }
.wpcf7-response-output { border-color: var(--mrh-blue) !important; margin: 1rem 0 0 !important; }

/* Sekcja generowana przez shortcode (pelna szerokosc) */
.mrh-sekcja { padding: var(--wp--preset--spacing--60, 4rem) var(--wp--preset--spacing--40, 1.5rem); }
.mrh-sekcja--granat { background: var(--mrh-navy); color: #fff; }
.mrh-sekcja__inner { max-width: 1240px; margin: 0 auto; }
.mrh-sekcja__title { font-family: var(--mrh-display); font-size: var(--wp--preset--font-size--xx-large, 4rem); line-height: .95; text-transform: uppercase; margin: 0 0 1.5rem; color: #fff; }

/* Kadrowanie zdjec w kaflach: domyslnie gora (twarze), do zmiany w polu "Kadr" projektu */
.mrh-projekt__media img, .mrh-nowego__media img, .wp-block-post-featured-image img { object-position: 50% 25%; }
.mrh-kadr--srodek .mrh-projekt__media img { object-position: 50% 50%; }
.mrh-kadr--dol .mrh-projekt__media img { object-position: 50% 85%; }
