:root {
  --notification-bar-bg: #222f3e;
  --footer-bg: #0a0a0a;
  --dark: #141414;
  --color-green: #0d47a1;
}

[data-bs-theme="dark"] {
  --bs-body-bg: #141414!important;
  --bs-body-color: #f8f9fa;
  --bs-dark: #141414!important;
  --bs-secondary-bg: #1a1a1a;
}

[data-bs-theme="light"] {
  --bs-body-bg: whitesmoke!important;
  /*--bs-body-color: #f8f9fa;*/
  /*--bs-dark: #141414!important;*/
  /*--bs-secondary-bg: #1a1a1a;*/
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* ========================================================================================== */

.poster {
  -webkit-box-shadow: 0px 9px 24px -12px rgba(55, 56, 66, 1);
  -moz-box-shadow: 0px 9px 24px -12px rgba(55, 56, 66, 1);
  box-shadow: 0px 9px 24px -12px rgba(55, 56, 66, 1);
  border-radius: 8px;
}

.ticket-purchase {
  top: -50px;
  position: relative;
}

@media (min-width: 992px) {
  .ticket-purchase {
    top: 0px;
  }
}

[data-bs-theme="light"] #partners img {
  filter: invert(1);
}

[data-bs-theme="light"] .invert {
  filter: invert(1);
}

.production-sections a {
  font-family: "Space Mono", monospace;
  color: var(--bs-body-color);
  /*font-size: 1.2rem;*/
}

.production-sections a:hover {
  color: rgb(104, 157, 236);
}

/* IMAGES CLIP-PATHS */

/* .hero__img {
  clip-path: polygon(0% 15%, 0 0, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);
}

.second-hero__img {
  clip-path: polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 100% 0, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);
}

.third-hero__img {
  clip-path: polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 0 100%, 0% 85%);
}



.steps-card__icon-wrapper {
  width: 50px;
  height: 50px;
  border: 1px dashed #576574;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.steps i {
  font-size: 24px;
  color: var(--dark);
} */

/* ========================================================================================== */

/* TYPOGRAPHY */

h2 {
  position: relative;
  font-size: 24px;
  border-bottom: 5px;
  left: 15px;
}

h2:not(.accordion h2)::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 0;
  width: 5px;
  height: 100%;
  background-color: var(--color-green);
}

/* ========================================================================================== */

/* BUTTONS */

.hero-btn {
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  border: 2px solid var(--color-green) !important;
  /*color: #2d3436;*/
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 0px;
  clip-path: polygon( 0 0, 100% 0, 100% 20%, 100% 80%, 100% 100%, 14% 100%, 0 74%, 0% 20% );
  transition: 0.2s ease-in-out;
}

.hero-btn:hover {
  border: 2px solid #222f3e !important;
}

.hero-btn-alt {
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  background-color: #2d3436;
  border: 2px solid #2d3436;
  padding: 10px 20px;
  color: #fff;
  border-radius: 0px;
  transition: 0.2s ease-in-out;
}

.hero-btn-alt:hover {
  border: 2px solid var(--color-green) !important;
}

/* ========================================================================================== */

/* NAVBAR */

[data-bs-theme="light"] .site-logo {
  filter: invert(1);
}

.navbar a {
  font-family: Montserrat, sans-serif;
  font-size: 1rem;
}

.navbar a:hover {
  color: #4eadf1;
  font-weight: bold;
}

.navbar a {
  text-decoration: none;
  position: relative;
  display: inline-block;
  /*color: black;*/
}

/* ========================================================================================== */

footer {
  background-color: var(--footer-bg);
}

footer a {
  color: #ccc;
  text-decoration: none;
}

footer a:hover {
  /*color: #f5cd79;*/
}

footer h4 {
  color: #fff !important;
  margin-bottom: 15px;
  font-family: "Space Mono", monospace;
}

/* ========================================================================================== */

/* REPERTUAR */

#program {
  /*top: -150px;*/
  position: relative;
  z-index: 1;
}

#program .container {
  border-radius: 15px;
}

#program .container .row {
  /*opacity: 0.6;*/
  transition: opacity 0.3s ease;
}

#program .container .row:hover {
  position: relative;
  background: linear-gradient( 135deg, rgba(var(--bs-body-color-rgb), 0.03), rgba(var(--bs-body-bg-rgb), 0.6) );
  /*border-radius: 16px;*/
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.program__date, .program__title, .program__link {
  font-family: "Space Mono", monospace;
  /*font-size: 1rem;*/
}

.program__date-date {
  font-size: 1.1rem;
  font-family: "Space Mono", monospace;
}

.program__date-day {
  /*font-size: 2rem;*/
  color: #ff1d83;
  color: #eb6aa4;
  font-family: "Space Mono", monospace;
}

.program__date-hour {
  font-size: 2rem;
  font-family: "Space Mono", monospace;
}

.program__title {
  font-size: 1.3rem;
  color: var(--bs-body-color);
}

.program__link {
  text-decoration: none;
  background-color: var(--color-green);
  padding: 10px 15px;
  border-radius: 5px;
  color: #fff;
  transition: 0.2s ease-in-out;
}

.program__link:hover {
  background-color: #eb6aa4;
}

/* ========================================================================================== */

/* GALERIA */

.gallery-hover .col {
  position: relative;
}

.gallery-hover a {
  position: relative;
  display: block;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-hover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.gallery-hover a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-hover a::after {
  content: attr(data-caption);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 2;
  pointer-events: none;
  font-family: "Space Mono", monospace;
}

.gallery-hover a:hover img {
  transform: scale(1.05);
}

.gallery-hover a:hover::before, .gallery-hover a:hover::after {
  opacity: 1;
}

.gallery-hover a:hover::after {
  transform: translateY(0);
}

/* ========================================================================================== */

.media-card {
  position: relative;
  display: block;
  height: 340px;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bs-body-bg);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: "Space Mono", monospace;
}

.media-card-image {
  position: absolute;
  inset: 0;
}

.media-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.45s ease;
}

.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient( to bottom, rgba(0, 0, 0, 0) 45%, var(--bs-body-bg) 100% );
  pointer-events: none;
  transition: background 0.3s ease;
}

.media-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.media-card-title {
  margin: 0;
  font-weight: 600;
  color: #fff;
}

.media-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid #fff;
  background: transparent;
  opacity: 0.9;
  color: #fff;
}

.media-card:hover img {
  transform: scale(1.07);
}

.media-card:hover {
  text-decoration: none;
}

[data-bs-theme="light"] .media-card {
  box-shadow: none;
}

[data-bs-theme="light"] .media-card::after {
  background: none;
}

[data-bs-theme="dark"] .media-card {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

/* ========================================================================================== */

/* AVATARY */

.avatars {
  display: flex;
  align-items: center;
  font-family: "Space Mono", monospace;
}

.avatars ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.avatars li {
  position: relative;
}

.avatars li:not(:first-child) {
  margin-left: -15px;
}

[data-bs-theme="dark"] .avatars img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  object-fit: cover;
}

[data-bs-theme="light"] .avatars img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  object-fit: cover;
}

.avatars .more {
  margin-left: 8px;
  font-weight: 600;
  color: var(--bs-body-color);
  font-size: 1rem;
}

/* ========================================================================================== */

.splash {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #000;
}

.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://teatralnie.pl/wp-content/uploads/2025/07/Fot_Tobiasz-Papuczys-11-scaled.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  z-index: 0;
}

.splash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient( circle at top left, rgba(120, 140, 255, 0.12), transparent 45% ), radial-gradient( circle at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.6) 100% ), linear-gradient(135deg, rgba(20, 20, 30, 0.6), rgba(0, 0, 0, 0.85));
  z-index: 1;
}

.splash::marker {
  display: none;
}

.splash::before, .splash::after {
  clip-path: polygon( 0 0, 100% 0, 100% calc(100% - 80px), calc(100% - 120px) 100%, 0 100% );
}

.splash .container {
  position: relative;
  z-index: 2;
}

/* ========================================================================================== */

.persona__link {
  font-family: "Space Mono", monospace;
  text-decoration: none;
  color: var(--bs-body-color);
}

.persona__link img {
  transition: opacity 0.3s ease;
}

/* ========================================================================================== */

.py-150 {
  padding: 150px 0 !important;
}

/* ========================================================================================== */

.shop__gallery-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: var(--shop-bg);
  border: 1px solid var(--shop-border);
  box-shadow: var(--shop-shadow);
  transition: box-shadow 0.35s ease, filter 0.35s ease;
}

.shop__gallery-img {
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
  will-change: transform;
}

.shop__gallery-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--shop-overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.shop__gallery-link:hover {
  box-shadow: 0 0 0 2px var(--shop-hover), var(--shop-shadow);
}

.shop__gallery-link:hover .shop__gallery-img {
  transform: scale(1.1);
  filter: saturate(1.15) brightness(1.05);
}

.shop__gallery-link:hover::after {
  opacity: 1;
}

/* ========================================================================================== */

.section-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: "Space Mono", monospace;
}

@media (min-width: 992px) {
  .section-title {
    font-size: 2.3rem;
  }
}

.section-title::before {
  content: "";
  width: 5px;
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 3px;
}

.section-title::after {
  content: "";
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(to right, var(--line-color), transparent);
}

[data-bs-theme="light"] {
  --accent-color: var(--bs-success);
  --line-color: rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] {
  /*--accent-color: var(--bs-success);*/
  --accent-color: rgb(25, 108, 202);
  --line-color: rgba(255, 255, 255, 0.25);
}

.section-title::after {
  animation: line-grow 0.8s ease-out forwards;
  transform-origin: left;
  transform: scaleX(0);
}

@keyframes line-grow {
  to {
    transform: scaleX(1);
  }
}

[data-bs-theme="dark"] .section-title::before {
  box-shadow: 0 0 10px rgba(25, 135, 84, 0.6);
}

/* ========================================================================================== */

.btn-invert {
  font-family: 'Space Mono', monospace;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 1px solid;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* =========================
   LIGHT MODE
   jasne tło → ciemny button
========================= */

[data-bs-theme="light"] .btn-invert {
  background-color: var(--bs-body-color);
  color: var(--bs-body-bg);
  border-color: var(--bs-body-color);
}

[data-bs-theme="light"] .btn-invert:hover {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

/* =========================
   DARK MODE
   ciemne tło → jasny button
========================= */

[data-bs-theme="dark"] .btn-invert {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  border-color: var(--bs-body-bg);
}

[data-bs-theme="dark"] .btn-invert:hover {
  background-color: var(--bs-body-color);
  color: var(--bs-body-bg);
}

/* =========================
   FOCUS (a11y)
========================= */

.btn-invert:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--bs-body-color) 30%, transparent);
}

/* =========================
   ACCORDION – RESET STYLI
   ========================= */

.accordion-button {
  font-family: "Space Mono", monospace;
  box-shadow: none !important;
  outline: none !important;
  background-color: transparent;
  color: inherit;
  font-size: 1.3rem;
}

/* focus / click / active */

.accordion-button:focus, .accordion-button:active, .accordion-button:not(.collapsed) {
  box-shadow: none !important;
  outline: none !important;
  background-color: transparent;
  color: inherit;
}

/* usuwa niebieską poświatę w Safari */

.accordion-button:focus-visible {
  outline: none;
}

/* strzałka (caret) */

.accordion-button::after {
  filter: none;
}

/* =========================
   JASNE TŁO
   ========================= */

[data-bs-theme="light"] .accordion-button:not(.collapsed) {
  background-color: transparent;
  color: #000;
}

/* =========================
   CIEMNE TŁO
   ========================= */

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: transparent;
  color: #fff;
}

