/* =========================================
   1. ZMIENNE KOLORYSTYCZNE (OKLCH)
   ========================================= */
:root {
    --color-primary: oklch(34% 0.10 240);      /* Bardzo głęboki, dojrzały granat */
    --color-secondary: oklch(58% 0.08 220);    /* Stonowany, elegancki, nieco chłodniejszy błękit */
    --color-accent: oklch(70% 0.12 185);       /* Mniej krzykliwy teal / turkus */
    --color-gold: oklch(75% 0.11 80);          /* Prestiżowe, wyważone złoto wygaszone*/
    --color-surface: oklch(98% 0.005 240);     /* Niemal biały chłodny (bez zmian) */
    --color-text: oklch(20% 0.02 240);         /* Ciemny grafit (bez zmian) */
}

body {
  background-color: var(--color-surface);
  color: var(--color-text);
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
}

/* =========================================
   2. NAPRAWA MENU (Z-INDEX)
   ========================================= */
nav.fixed {
  z-index: 50 !important; /* Wymuszenie widoczności ponad wszystkim */
  top: 0;
  left: 0;
  width: 100%;
}

/* =========================================
   3. RESZTA STYLÓW Z "NOWY 6.HTML"
   ========================================= */

/* MESH GRADIENT BACKGROUND */
.mesh-bg {
    background-color: var(--color-surface);
    background-image: 
        radial-gradient(ellipse at 20% 50%, oklch(70% 0.08 200 / 0.25) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 20%, oklch(55% 0.10 240 / 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 60% 80%, oklch(75% 0.08 180 / 0.18) 0%, transparent 65%);
}

/* GLASSMORPHISM UTILS */
.glass-nav {
  background: oklch(98% 0.005 240 / 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.interactive-glow {
    position: relative;
    overflow: hidden;
}

/* Luksusowy "glow" obrysu szklanej karty używający pozycji myszy */
.interactive-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 2px; /* Grubość poświaty/ramki */
    background: radial-gradient(
        800px circle at var(--mouse-x, 0) var(--mouse-y, 0), 
        rgba(255,255,255,0.8),
        transparent 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 10;
}

.interactive-glow:hover::before {
    opacity: 1;
}

/* SHIMMER BUTTON ANIMATION */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.btn-shimmer {
  position: relative;
  background: var(--color-primary);
  color: white;
  overflow: hidden;
  z-index: 1;
}

.btn-shimmer::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: conic-gradient(
    from var(--angle),
    var(--color-secondary),
    var(--color-gold),
    var(--color-secondary)
  );
  border-radius: inherit;
  animation: rotate-border 3s linear infinite;
  opacity: 0.7;
}

.btn-shimmer::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--color-primary);
  border-radius: inherit;
  z-index: -1;
}

@keyframes rotate-border {
  to {
    --angle: 360deg;
  }
}

/* CARD HOVER NEUMORPHISM */
.hover-lift {
  transition:
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow:
    0 30px 40px -10px rgba(0, 0, 0, 0.08),
    0 10px 15px -5px rgba(0, 0, 0, 0.03);
}

/* ZNANYLEKARZ WIDGET OVERRIDES */
.zl-widget-container iframe {
  width: 100% !important;
  border-radius: 1rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-surface);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

[x-cloak] {
  display: none !important;
}

/* UTILS ANIMATIONS */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* SWIPER CUSTOM STYLES */
.swiper-pagination-bullet {
    background: var(--color-primary) !important;
    opacity: 0.3 !important;
}
.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: var(--color-primary) !important;
}
.swiper-button-prev-cert.swiper-button-disabled,
.swiper-button-next-cert.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
