/* ==========================================================================
   ODYSEE EMBED
   ========================================================================== */

.fl-odysee-wrapper {
  margin-bottom: 30px;
  width: 100%;
}

.fl-odysee-container {
  left: 0;
  width: 100%;
  height: 0;
  position: relative;
  padding-bottom: 56.25%;
}

.fl-odysee-iframe {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  border: 0;
}

.fl-odysee-logo {
  position: absolute;
  top: 5px;
  right: 10px;
  pointer-events: none;
  z-index: 3;
}

.fl-odysee-wpr {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto; /* blokuje kliknięcia w link dostawcy */
  cursor: default;
  z-index: 3;
}

/* Bloker klikań — przezroczysty div nad linkiem dostawcy (prawy górny róg iframea) */
.fl-odysee-link-blocker {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;  /* szerokosc obszaru z linkiem dostawcy */
  height: 40px;  /* wysokosc obszaru z linkiem dostawcy */
  z-index: 2;    /* nad iframeam, pod logo */
  background: transparent;
  pointer-events: auto;
  cursor: default;
}

/* ==========================================================================
   QUICK LINKS BLOCK (STREFA KURSANTA)
   ========================================================================== */

.fl-section-quicklinks {
  padding: 2.5rem 0;
}

.fl-quicklinks__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.75rem;
}

.fl-quicklink-card {
  display: flex;
  align-items: center; /* Idealne centrowanie pionowe ikony i tekstu */
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--fl-ink-200);
  border-radius: var(--fl-radius-md);
  text-decoration: none !important;
  transition: all 0.2s ease;
  min-height: 5.75rem; /* Stała wysokość zapobiega drżeniu sekcji */
  cursor: pointer;
}

.fl-quicklink-card:hover {
  border-color: var(--fl-cta-500);
  background-color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-decoration: none !important;
}

.fl-quicklink-card__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fl-sand);
  color: var(--fl-accent-500);
  border-radius: var(--fl-radius-sm);
  transition: all 0.2s ease;
}

.fl-quicklink-card:hover .fl-quicklink-card__icon {
  background: var(--fl-cta-500);
  color: #FFFFFF;
}

.fl-quicklink-card__content {
  flex: 1;
  /* Stały kontener na tekst – obydwa warianty nakładają się absolutnie */
  position: relative;
  min-height: 3.5rem; /* Rezerwuje miejsce na 2 linie opisu */
}

.fl-quicklink-card__title,
.fl-quicklink-card__explanation {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  margin: 0 !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

.fl-quicklink-card__title {
  font-family: var(--fl-font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fl-ink-900);
  line-height: 1.2;
  opacity: 1;
}

.fl-quicklink-card__explanation {
  font-size: 0.8125rem;
  color: var(--fl-ink-600);
  line-height: 1.4;
  opacity: 0;
}

/* Crossfade na hover – żadnych zmian układu, tylko przezroczystość */
.fl-quicklink-card:hover .fl-quicklink-card__title {
  opacity: 0;
}

.fl-quicklink-card:hover .fl-quicklink-card__explanation {
  opacity: 1;
}

@media (min-width: 768px) {
  .fl-quicklinks__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .fl-quicklinks__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* ==========================================================================
   FOOTER LEGAL LINKS
   ========================================================================== */

.footer-legal-links {
  text-align: center;
  margin-top: 10px;
}

.footer-legal-links a {
  color: #000000 !important;
  font-size: 0.85em;
  text-decoration: none !important;
  transition: text-decoration 0.2s ease;
}

.footer-legal-links a:hover {
  text-decoration: underline !important;
}

.footer-legal-links .separator {
  color: #000000;
  margin: 0 8px;
  font-size: 0.85em;
}

/* =========================================
   Blog Banner Styling
   ========================================= */

/* Use higher specificity to override .entry-content[data-ast-blocks-layout] > * */
.entry-content .fl-banner-wrap {
  position: relative;
  border: 1px solid var(--color-ink-300);
  padding: 0.5rem;
  margin: 0 !important; /* Force removal of Astra block margins */
  border-radius: var(--radius-lg);
  background: transparent !important; /* Force transparency */
  box-sizing: border-box;
}

/* Label "AUTOREKLAMA" sitting on the border */
.entry-content .fl-banner-wrap::before {
  content: attr(data-label);
  position: absolute;
  top: -0.55rem;
  left: 1.5rem;
  background: var(--color-cream); /* Match body/container background */
  padding: 0 0.6rem;
  font-size: 0.6rem;
  color: var(--color-ink-400);
  letter-spacing: 0.15em;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
}

.entry-content .fl-banner-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* Top Banner - Centered, Full Width */
.entry-content .fl-banner-top {
  display: flex;
  justify-content: center;
  align-items: center;
  clear: both;
  margin: 2.5rem 0 !important; /* Re-apply specific spacing */
}

/* Side Banner - Right Aligned, Float */
.entry-content .fl-banner-side {
  float: right;
  max-width: 350px;
  width: 100%; /* Allows max-width to take effect properly */
  margin-left: 2.5rem !important; /* Push text away */
  margin-right: 0 !important;   /* Flush to right */
  margin-bottom: 1.5rem !important;
  margin-top: 0.5rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .entry-content .fl-banner-side {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 2rem 0 !important;
    padding: 0;
    display: flex !important;
    justify-content: center;
    align-items: center;
  }

  .entry-content .fl-banner-side a {
    display: block;
    width: 100%;
    text-align: center;
  }

  .entry-content .fl-banner-side img {
    width: 100% !important;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

/* =========================================
   Responsive Banner Shortcode
   ========================================= */

.fl-responsive-banner {
  width: 100%;
}

.fl-responsive-banner a {
  display: block;
  text-decoration: none !important;
  border: none !important;
}

.fl-responsive-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Device Switching */
.fl-responsive-banner .fl-banner-pc {
  display: block;
}

.fl-responsive-banner .fl-banner-mobile {
  display: none;
}

@media (max-width: 768px) {
  .fl-responsive-banner .fl-banner-pc {
    display: none;
  }

  .fl-responsive-banner .fl-banner-mobile {
    display: block;
  }
}
