/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* fix lenis scroll -omija płynne przewijanie wprowadzone w elementorze 3.25.0. Usunięcie całkowicie zepsuje efekty przewijania. */
html {
    scroll-behavior: auto;
}

/* 
 * Kod przycisku Shiny CTA
 */

/* Definicje zmiennych przycisku */
:root {
  /* Te zmienne będą dostępne globalnie - jeśli to problem, przenieś je do selektora .wp-shiny-cta */
  --wp-shiny-cta-bg: #000000;
  --wp-shiny-cta-bg-subtle: #1a1818;
  --wp-shiny-cta-fg: #ffffff;
  --wp-shiny-cta-highlight: blue;
  --wp-shiny-cta-highlight-subtle: #8484ff;
  
  /* Parametry czcionki */
  --wp-shiny-cta-font-weight: 600;
  --wp-shiny-cta-letter-spacing: 1px;
  --wp-shiny-cta-word-spacing: 2px;
  --wp-shiny-cta-line-height: 1.2;
}

/* Reguły @property - definicja własnych zmiennych dla animacji */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-angle-offset {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-percent {
  syntax: "<percentage>";
  initial-value: 5%;
  inherits: false;
}

@property --gradient-shine {
  syntax: "<color>";
  initial-value: white;
  inherits: false;
}

/* 
 * Dodanie prefiksu .wp-shiny-cta zamiast .shiny-cta 
 * to zapobiega konfliktom z innymi klasami
 */
.wp-shiny-cta {
  --animation: gradient-angle linear infinite;
  --duration: 3s;
  --shadow-size: 2px;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
  padding: 1rem 2.5rem;
  
  /* Parametry czcionki */
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: var(--wp-shiny-cta-font-weight);
  letter-spacing: var(--wp-shiny-cta-letter-spacing);
  word-spacing: var(--wp-shiny-cta-word-spacing);
  line-height: var(--wp-shiny-cta-line-height);
  
  /* Pozostałe style */
  border: 1px solid transparent;
  border-radius: 360px;
  color: var(--wp-shiny-cta-fg);
  background: linear-gradient(var(--wp-shiny-cta-bg), var(--wp-shiny-cta-bg))
      padding-box,
    conic-gradient(
        from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
        transparent,
        var(--wp-shiny-cta-highlight) var(--gradient-percent),
        var(--gradient-shine) calc(var(--gradient-percent) * 2),
        var(--wp-shiny-cta-highlight) calc(var(--gradient-percent) * 3),
        transparent calc(var(--gradient-percent) * 4)
      )
      border-box;
  box-shadow: inset 0 0 0 1px var(--wp-shiny-cta-bg-subtle);
}

/* Zapobiegnięcie nadpisaniu stylów przez domyślne reguły WordPressa */
.wp-shiny-cta:where(:not(.ignore)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.wp-shiny-cta::before,
.wp-shiny-cta::after,
.wp-shiny-cta span::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  translate: -50% -50%;
  z-index: -1;
}

.wp-shiny-cta:active {
  translate: 0 1px;
}

/* Wzór kropkowy */
.wp-shiny-cta::before {
  --size: calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space: calc(var(--position) * 2);
  width: var(--size);
  height: var(--size);
  background: radial-gradient(
      circle at var(--position) var(--position),
      white calc(var(--position) / 4),
      transparent 0
    )
    padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  mask-image: conic-gradient(
    from calc(var(--gradient-angle) + 45deg),
    black,
    transparent 10% 90%,
    black
  );
  border-radius: inherit;
  opacity: 0.4;
  z-index: -1;
}

/* Wewnętrzny efekt połysku */
.wp-shiny-cta::after {
  --animation: shimmer linear infinite;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(
    -50deg,
    transparent,
    var(--wp-shiny-cta-highlight),
    transparent
  );
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.6;
}

.wp-shiny-cta span {
  z-index: 1;
}

.wp-shiny-cta span::before {
  --size: calc(100% + 1rem);
  width: var(--size);
  height: var(--size);
  box-shadow: inset 0 -1ex 2rem 4px var(--wp-shiny-cta-highlight);
  opacity: 0;
}

/* Animacje */
.wp-shiny-cta {
  --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);
  transition: var(--transition);
  transition-property: --gradient-angle-offset, --gradient-percent,
    --gradient-shine;
}

.wp-shiny-cta,
.wp-shiny-cta::before,
.wp-shiny-cta::after {
  animation: var(--animation) var(--duration),
    var(--animation) calc(var(--duration) / 0.4) reverse paused;
  animation-composition: add;
}

.wp-shiny-cta span::before {
  transition: opacity var(--transition);
  animation: calc(var(--duration) * 1.5) breathe linear infinite;
}

.wp-shiny-cta:hover,
.wp-shiny-cta:focus-visible {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--wp-shiny-cta-highlight-subtle);
}

.wp-shiny-cta:hover,
.wp-shiny-cta:focus-visible,
.wp-shiny-cta:hover::before,
.wp-shiny-cta:focus-visible::before,
.wp-shiny-cta:hover::after,
.wp-shiny-cta:focus-visible::after {
  animation-play-state: running;
}

.wp-shiny-cta:hover span::before,
.wp-shiny-cta:focus-visible span::before {
  opacity: 1;
}

@keyframes gradient-angle {
  to {
    --gradient-angle: 360deg;
  }
}

@keyframes shimmer {
  to {
    rotate: 360deg;
  }
}

@keyframes breathe {
  from,
  to {
    scale: 1;
  }
  50% {
    scale: 1.2;
  }
}
/* 
   Klasa do gradientowego tekstu - różowy/niebieski gradient
   Użycie: <span class="gradient-text-pink">wybrany tekst</span>
   Stosuj do wybranych słów lub fraz w tekście
*/
.gradient-text-pink {
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text; /* Dla starszych przeglądarek */
    background-clip: text;
    background-image: linear-gradient(90deg, #f794ed, #d59fff);
    display: inline; /* Zapewnia, że nie złamie układu tekstu */
}
.gradient-text-blue {
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text; /* Dla starszych przeglądarek */
    background-clip: text;
    background-image: linear-gradient(117deg,#4ad1a4,#43e6f0);
    display: inline; /* Zapewnia, że nie złamie układu tekstu */
}
.glass--box {
    box-shadow: inset 0 2px 40px rgb(160 183 207 / .1), inset 0 -2px 40px rgb(160 183 207 / .1) !important;
background-image: linear-gradient(rgb(30 45 61 / 10%), rgba(79, 121, 163, 0.1));
    align-self: stretch !important;
    width: 100%;
}
.glass--box2 {
    box-shadow: inset 0 2px 40px rgb(160 183 207 / .1), inset 0 -2px 40px rgb(160 183 207 / .1) !important;
background-image: linear-gradient(rgb(30 45 61 / 10%), rgba(79, 121, 163, 0.1));
    align-self: stretch !important;
}
.fade-section:before {
	z-index: 100;
	pointer-events: none;
}