/*
 Theme Name: Przyszłość
 Theme URI: https://przyszlosc.malbork.pl
 Description: Motyw potomny dla Przyszłość
 Author: Krzysztof Grzelak
 Author URI: https://krzysztofgrzelak.pl
 Template: kadence
 Version: v1
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: przyszlosc
*/

.my-button:hover {
  transform: translate(-2px, -2px);
}

.site-main-header-wrap {
  background: rgba(255, 255, 255, 0.05); /* półprzezroczyste tło */
  backdrop-filter: blur(10px); /* efekt rozmycia tła */
  -webkit-backdrop-filter: blur(10px); /* wsparcie dla Safari */
  border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* delikatna linia */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* lekki cień */
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.tlo_blur {
  background: rgba(255, 255, 255, 0.05); /* półprzezroczyste tło */
  backdrop-filter: blur(10px); /* efekt rozmycia tła */
  -webkit-backdrop-filter: blur(10px); /* wsparcie dla Safari */
  border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* delikatna linia */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* lekki cień */
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
  border-radius: 20px;
}

.site-top-header-wrap.site-header-row-container.site-header-focus-item.site-header-row-layout-standard > .site-header-row-container-inner {
  background: rgba(0, 0, 0, 0.3) !important; /* półprzezroczysty czarny */
  backdrop-filter: blur(12px) !important; /* mocniejsze rozmycie tła */
  -webkit-backdrop-filter: blur(12px) !important; /* wsparcie Safari */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; /* delikatna linia w jasnym kolorze */
  box-shadow: 0 2px 10px rgba(0,0,0,0.4) !important; /* lekki cień */
  transition: background 0.3s ease, backdrop-filter 0.3s ease !important;
}

#SR7_20_1-72-29 {
  margin-right: 20px !important;
}


.minimalna_section > .kt-inside-inner-col > p {
  display: none !important;
}

.site-footer-wrap {
  padding-top: 80px;
}

.kb-adv-form-label {
  text-align: left;
}

@media (min-width: 1024px) {
  .only-desktop {
    display: none !important; /* !important jeśli builder nadaje inline styles */
  }
}

.header-button-inner-wrap a {
    position: relative;
    overflow: hidden;
    z-index: 0;
}


  
.header-button-inner-wrap a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 80%;
  height: 100%;
  pointer-events: none;
  z-index: 1;

  /* mocniejszy, ale nadal miękki gradient */
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.15) 30%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0.15) 70%,
    rgba(255,255,255,0) 100%
  );

  filter: blur(6px); /* blur umiarkowany – żeby było widać, ale nie jak pasek */
  transform: translateX(0) skewX(-12deg);

  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);

  mix-blend-mode: screen;

  transition: left 0.7s ease;
}
  
  .header-button-inner-wrap a:hover::after {
    left: 120%;
  }

 /* Stopka / footer */

  .footer-credit {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px;
    font-style: normal;
    font-weight: normal;
    line-height: 1.4;
    letter-spacing: -0.03rem;
    color:#D8D8D8;
  }

  .footer-credit .shine-link {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px;
  font-style: normal;
  font-weight: normal;
  line-height: 1.4;
  letter-spacing: -0.03rem;
  color:#000;
  position: relative;
  display: inline-block;
  background: linear-gradient(
    90deg,
    #000 0%,
    #219ca0 50%,
    #000 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  font-weight: 500;
  filter: brightness(1.2) contrast(1.3);
  animation: shineMove 3s linear infinite;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-credit .shine-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: #219ca0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-credit .shine-link:hover::after {
  transform: scaleX(1);
}

/* Ensure parent container doesn't override link color */
.footer-credit a {
  color: #000 !important;
}

@keyframes shineMove {
  0% {
    background-position: -100% center;
  }
  100% {
    background-position: 100% center;
  }
}


.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: "w cenie piwnica i udział w działce drogowej"; /* <-- tekst na sztywno */
  position: absolute;
  bottom: 125%;
  left: 20%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 199;
}

.tooltip::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0,0,0,0.85) transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  z-index: 100;
}

.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
}
