/**
 * Pixelcraft — premium UI: nawigacja, przyciski, sekcja expertise.
 * Ładowany po main.css / theme-light.css.
 */

:root {
  --pc-glow: rgba(99, 102, 241, 0.35);
  --pc-glow-accent: rgba(20, 184, 166, 0.25);
  --pc-nav-pill: rgba(15, 23, 42, 0.55);
  --pc-border-subtle: rgba(148, 163, 184, 0.12);
  --pc-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --pc-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ——— Nagłówek ——— */
.pc-header-shell {
  border-bottom: 1px solid var(--pc-border-subtle);
  /* Lekko bardziej przezroczysty — tło z blur nadal czytelnie „trzyma” treść */
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.55) 0%, rgba(3, 7, 18, 0.34) 100%);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.08);
}

.pc-header-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 1280px) {
  .pc-header-actions {
    gap: 0.5rem;
  }
}

.pc-header-shell::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.45), rgba(20, 184, 166, 0.35), transparent);
  pointer-events: none;
  opacity: 0.85;
}

#site-header.site-header-scrolled.pc-header-shell {
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.18);
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.72) 0%, rgba(3, 7, 18, 0.52) 100%);
}

/* Desktop: linki nawigacji */
.pc-nav-link {
  position: relative;
  color: rgba(226, 232, 240, 0.82);
  border: 1px solid transparent;
  box-shadow: 0 0 0 0 transparent;
  transition:
    color 0.35s var(--pc-ease-out),
    border-color 0.35s var(--pc-ease-out),
    box-shadow 0.45s var(--pc-ease-out),
    transform 0.35s var(--pc-ease-spring),
    background 0.35s var(--pc-ease-out);
}

.pc-nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #6366f1, #14b8a6);
  transform: translateX(-50%);
  transition: width 0.4s var(--pc-ease-out);
  opacity: 0.9;
}

.pc-nav-link:hover,
.pc-nav-link:focus-visible {
  color: #fff;
  background: rgba(30, 41, 59, 0.45);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.08), 0 12px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.pc-nav-link:hover::after,
.pc-nav-link:focus-visible::after {
  width: 55%;
}

.pc-nav-link--active {
  color: #fff !important;
  background: rgba(99, 102, 241, 0.12) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.12);
}

.pc-nav-link--active::after {
  width: 60%;
}

.pc-nav-auth {
  color: #a5b4fc !important;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.06);
}

.pc-nav-auth:hover {
  color: #e0e7ff !important;
  border-color: rgba(129, 140, 248, 0.55);
  background: rgba(99, 102, 241, 0.14);
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.2);
}

.pc-nav-auth::after {
  display: none;
}

/* Przyciski premium (nagłówek, cookie, formularze statyczne) */
.pc-btn-soft {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.35);
  color: rgba(226, 232, 240, 0.9);
  transition:
    color 0.3s var(--pc-ease-out),
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.4s var(--pc-ease-out),
    transform 0.35s var(--pc-ease-spring);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pc-btn-soft:hover {
  color: #fff;
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(30, 41, 59, 0.55);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.15);
  transform: translateY(-1px);
}

.pc-btn-ghost {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.25));
  color: rgba(241, 245, 249, 0.92);
  transition:
    border-color 0.35s,
    background 0.35s,
    box-shadow 0.45s var(--pc-ease-out),
    transform 0.35s var(--pc-ease-spring);
}

.pc-btn-ghost:hover {
  border-color: rgba(226, 232, 240, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Przyciski globalne: primary / secondary z main */
.btn-primary {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(129, 140, 248, 0.45) !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
  transition:
    transform 0.3s var(--pc-ease-spring),
    box-shadow 0.4s var(--pc-ease-out),
    filter 0.3s !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.35);
  filter: brightness(1.05);
}

.btn-secondary,
.final-cta-phone {
  transition:
    transform 0.3s var(--pc-ease-spring),
    box-shadow 0.4s var(--pc-ease-out),
    border-color 0.3s !important;
}

.btn-secondary:hover,
.final-cta-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.2);
}

/* ——— Menu mobilne ——— */
.pc-mobile-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 61;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s var(--pc-ease-out),
    visibility 0.4s;
}

.pc-mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.pc-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 62;
  width: min(22rem, 92vw);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border: none;
  border-left: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 0;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98) 0%, rgba(3, 7, 18, 0.99) 45%, rgba(15, 23, 42, 0.97) 100%);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.45);
  transform: translateX(105%);
  transition: transform 0.5s var(--pc-ease-out);
  display: flex;
  flex-direction: column;
  padding-top: max(4.5rem, calc(env(safe-area-inset-top, 0px) + 3.5rem));
  padding-bottom: env(safe-area-inset-bottom, 1rem);
}

.pc-mobile-panel.is-open {
  transform: translateX(0);
}

.pc-mobile-panel .pc-mobile-panel-inner {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pc-mobile-nav-link {
  opacity: 0;
  transform: translateX(12px);
  transition:
    opacity 0.4s var(--pc-ease-out),
    transform 0.45s var(--pc-ease-out),
    background 0.25s,
    border-color 0.25s;
}

.pc-mobile-panel.is-open .pc-mobile-nav-link {
  opacity: 1;
  transform: translateX(0);
}

.pc-mobile-panel.is-open .pc-mobile-nav-link:nth-child(1) {
  transition-delay: 0.05s;
}
.pc-mobile-panel.is-open .pc-mobile-nav-link:nth-child(2) {
  transition-delay: 0.09s;
}
.pc-mobile-panel.is-open .pc-mobile-nav-link:nth-child(3) {
  transition-delay: 0.13s;
}
.pc-mobile-panel.is-open .pc-mobile-nav-link:nth-child(4) {
  transition-delay: 0.17s;
}
.pc-mobile-panel.is-open .pc-mobile-nav-link:nth-child(5) {
  transition-delay: 0.21s;
}
.pc-mobile-panel.is-open .pc-mobile-nav-link:nth-child(6) {
  transition-delay: 0.25s;
}
.pc-mobile-panel.is-open .pc-mobile-nav-link:nth-child(7) {
  transition-delay: 0.29s;
}
.pc-mobile-panel.is-open .pc-mobile-nav-link:nth-child(8) {
  transition-delay: 0.33s;
}

.pc-mobile-nav-link:hover,
.pc-mobile-nav-link:focus-visible {
  background: rgba(99, 102, 241, 0.08);
}

.pc-menu-toggle {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.45);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
  transition:
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.4s,
    transform 0.35s var(--pc-ease-spring);
}

.pc-menu-toggle:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.2);
}

.pc-menu-toggle[aria-expanded='true'] {
  border-color: rgba(20, 184, 166, 0.45);
  background: rgba(99, 102, 241, 0.12);
}

body.mobile-nav-open {
  overflow: hidden;
}

/* ——— Sekcja Expertise (kafelki) ——— */
.pc-expertise-section {
  position: relative;
  overflow: hidden;
}

.pc-expertise-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  width: 120%;
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.pc-expertise-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pc-expertise-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.pc-expertise-card--wide {
  min-height: 260px;
}

@media (min-width: 768px) {
  .pc-expertise-card--wide {
    grid-column: 1 / -1;
    min-height: 300px;
  }
}

.pc-expertise-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.55);
  min-height: 200px;
  transition:
    transform 0.45s var(--pc-ease-out),
    border-color 0.35s,
    box-shadow 0.5s var(--pc-ease-out);
}

.pc-expertise-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(99, 102, 241, 0.08);
}

.pc-expertise-card__parallax {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: transform;
}

.pc-expertise-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 0.8s var(--pc-ease-out);
}

.pc-expertise-card:hover .pc-expertise-card__media {
  transform: scale(1.08);
}

.pc-expertise-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1) 0%, rgba(2, 6, 23, 0.75) 55%, rgba(2, 6, 23, 0.92) 100%);
  pointer-events: none;
}

.pc-expertise-card__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.35rem 1.35rem;
  min-height: 220px;
}

.pc-expertise-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.pc-expertise-card__title {
  font-family: var(--font-space-grotesk, 'Space Grotesk', system-ui, sans-serif);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.35rem;
}

.pc-expertise-card__desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.88);
}


/* Scroll top — premium */
#scroll-top {
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 0.35s var(--pc-ease-spring),
    box-shadow 0.4s !important;
}

#scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35) !important;
}

/* ——— Wejścia w formularzach na stronie głównej (sekcja AI, SEO) ——— */
#ai-input,
#seo-url {
  transition:
    border-color 0.3s var(--pc-ease-out),
    box-shadow 0.35s var(--pc-ease-out),
    background 0.25s;
  border-color: rgba(100, 116, 139, 0.35) !important;
}
#ai-input:hover,
#seo-url:hover {
  border-color: rgba(99, 102, 241, 0.4) !important;
}
#ai-input:focus,
#seo-url:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
  background: rgba(15, 23, 42, 0.8) !important;
}

#hero a[href^='#'] {
  transition:
    color 0.3s,
    box-shadow 0.35s,
    border-color 0.3s,
    transform 0.35s var(--pc-ease-spring);
}
