/* ŁUKASZ SIATKOWSKI (PAN SIATECZKO) — STYL CZARNO-BIAŁY MINIMALISTYCZNY */
:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-raised: #121212;
  --surface-border: rgba(255, 255, 255, 0.12);
  --text-main: #ffffff;
  --text-muted: #888888;
  --text-label: #555555;
  --accent: #ffffff;
  --accent-hover: #dddddd;
  --modal-bg: rgba(0, 0, 0, 0.96);
  
  --font-serif: "Cinzel", "Playfair Display", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-sm: 2px;
  --radius-md: 4px;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f9f9f9;
  --surface-raised: #f0f0f0;
  --surface-border: rgba(0, 0, 0, 0.12);
  --text-main: #000000;
  --text-muted: #666666;
  --text-label: #999999;
  --accent: #000000;
  --accent-hover: #333333;
  --modal-bg: rgba(255, 255, 255, 0.98);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.55;
  font-size: 0.95rem;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
  touch-action: pan-y;
}

.container {
  width: min(1400px, 100% - 48px);
  margin-inline: auto;
}

.monument-container {
  width: min(1400px, 100% - 48px);
  margin-inline: auto;
}

/* PŁYWAJĄCY PRZEŁĄCZNIK MOTYWU */
.theme-floating-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: all var(--transition);
}

.theme-btn svg {
  width: 16px;
  height: 16px;
}

.theme-btn:hover {
  border-color: var(--text-main);
  transform: scale(1.06);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* HERO / TYTUŁ GŁÓWNY */
.hero-content {
  padding: 85px 0 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  margin: 0;
}

.hero-alias {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 1.6vw, 1.25rem);
  color: var(--text-main);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.65rem, 0.9vw, 0.76rem);
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 4px;
}

/* 1. CYCLES HUB VIEW */
.cycles-section {
  padding-bottom: 100px;
}

.cycles-container {
  width: min(1360px, 100% - 32px);
  margin-inline: auto;
}

.cycles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.cycle-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.cycle-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-main);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.cycle-card-media {
  position: relative;
  width: 100%;
  height: 320px;
  background: var(--surface-raised);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--surface-border);
}

.cycle-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cycle-card:hover .cycle-card-img {
  transform: scale(1.03);
}

.cycle-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.cycle-card:hover .cycle-card-overlay {
  opacity: 1;
}

.cycle-card-cta {
  background: var(--text-main);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 10px 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  transform: translateY(8px);
  transition: transform var(--transition);
}

.cycle-card:hover .cycle-card-cta {
  transform: translateY(0);
}

.cycle-card-body {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface);
}

.cycle-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--text-main);
  transition: color var(--transition);
}

/* 2. SINGLE CYCLE MONUMENT VIEW - SIATKA */
.single-cycle-section {
  padding-bottom: 120px;
}

.gallery-grid.grid-monument {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 36px;
}

.artwork-item {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.artwork-frame {
  position: relative;
  width: 100%;
  height: 320px;
  background: var(--surface-raised);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.artwork-item:hover .artwork-frame {
  transform: translateY(-4px);
  border-color: var(--text-main);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.artwork-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.artwork-item:hover .artwork-img {
  transform: scale(1.02);
}

.artwork-item-header {
  width: 100%;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.artwork-item-num {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

.artwork-item-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}

.artwork-item:hover .artwork-item-hint {
  color: var(--text-main);
}

/* DOLNA SEKCJA: O MNIE + KONTAKT */
.contact-section {
  padding: 40px 0 70px;
  border-top: 1px solid var(--surface-border);
}

.contact-box {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.contact-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 13px 30px;
  border-radius: 0;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 170px;
  transition: all var(--transition);
}

button.contact-card {
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-card:hover {
  border-color: var(--text-main);
  background: var(--surface-raised);
  transform: translateY(-2px);
}

.contact-card-icon {
  color: var(--text-main);
  display: flex;
  align-items: center;
}

.contact-card-icon svg {
  width: 18px;
  height: 18px;
}

.contact-card-info strong {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

/* MODAL O MNIE */
.about-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.about-overlay.hidden {
  display: none !important;
}

.about-modal-box {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 0;
  padding: 32px 28px;
  max-width: 640px;
  width: min(640px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 100000;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.about-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 12px;
}

.about-modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--text-main);
  font-weight: 700;
}

.about-modal-body {
  display: flex;
  align-items: center;
  gap: 22px;
}

.about-author-media {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-author-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.about-modal-content {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.about-modal-content strong {
  color: var(--text-main);
  font-weight: 700;
}

.about-modal-content .lead-p {
  font-size: 1.02rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.7;
}

/* MODAL PLAYLISTY (BANDCAMP) */
.music-modal-box {
  max-width: 680px;
  width: min(680px, 94vw);
  padding: 30px 24px;
}

.music-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.music-player-frame {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: var(--surface-raised);
  border: 1px solid var(--surface-border);
}

.music-player-frame iframe {
  display: block;
}

.music-tracklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.track-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 0;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.track-btn:hover {
  border-color: var(--text-main);
  background: var(--surface-raised);
}

.track-btn.active {
  border-color: var(--text-main);
  background: var(--text-main);
  color: var(--bg);
  font-weight: 600;
}

.track-num {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 22px;
  letter-spacing: 0.05em;
}

.track-btn.active .track-num {
  color: var(--bg);
}

.track-name {
  flex: 1;
  white-space: normal;
  line-height: 1.4;
  word-break: normal;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.track-icon {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 6px;
  flex-shrink: 0;
}

.track-btn.active .track-icon {
  color: var(--bg);
}

/* LIGHTBOX MODAL (KARUZELA) */
.lightbox-dialog {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: transparent;
  border: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.lightbox-dialog::backdrop {
  background: var(--modal-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.lightbox-layout {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-topbar {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lightbox-hint-label {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 6px 14px;
  border-radius: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition);
}

.tool-btn:hover {
  background: var(--text-main);
  color: var(--bg);
  border-color: var(--text-main);
  transform: scale(1.06);
}

.lightbox-btn.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition);
}

.lightbox-btn.nav-btn:hover {
  background: var(--text-main);
  color: var(--bg);
  border-color: var(--text-main);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-btn.nav-btn.prev { left: 20px; }
.lightbox-btn.nav-btn.next { right: 20px; }

.lightbox-view {
  width: 94vw;
  max-width: 1360px;
  height: 84vh;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: center;
}

.lightbox-view.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 1160px;
  justify-items: center;
}

.lightbox-view.no-sidebar .lightbox-sidebar {
  display: none !important;
}

.lightbox-view.no-sidebar .lightbox-artwork {
  max-height: 84vh;
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
}

.lightbox-stage.zoomed {
  cursor: grab;
}

.lightbox-stage.panning {
  cursor: grabbing;
}

.pan-zoom-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.lightbox-artwork {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  transition: none;
}

.lightbox-stage.zoomed .lightbox-artwork {
  cursor: grab;
}

.lightbox-stage.panning .lightbox-artwork {
  cursor: grabbing;
}

.lightbox-sidebar {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.exact-specs-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.exact-specs-box .spec-line {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 10px;
}

.exact-specs-box .spec-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exact-specs-box .spec-label {
  font-size: 0.68rem;
  color: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.exact-specs-box .spec-val {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.exact-specs-box .spec-val.accent {
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.15rem;
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
}

.hidden { display: none !important; }

/* 📱 RESPONSYWNOŚĆ DLA SMARTFONÓW I TABLETÓW */
@media (max-width: 1200px) {
  .gallery-grid.grid-monument {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 860px) {
  .container { width: calc(100% - 28px); }
  .cycles-grid { grid-template-columns: 1fr; }
  .gallery-grid.grid-monument {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .artwork-frame { height: 230px; padding: 6px; }
  .about-modal-box { padding: 24px 18px; }
  .about-modal-title { font-size: 1.25rem; }
}

@media (max-width: 768px) {
  .hero-content { padding: 45px 0 16px; gap: 3px; }
  .hero-title { font-size: 1.6rem; }
  .hero-alias { font-size: 0.85rem; }
  .hero-subtitle { font-size: 0.65rem; }
  .theme-floating-toggle { top: 10px; right: 10px; gap: 6px; }
  .theme-btn { width: 34px; height: 34px; }
  
  .lightbox-topbar {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  
  .lightbox-hint-label {
    display: none;
  }

  .lightbox-btn.nav-btn {
    display: none;
  }

  .lightbox-view {
    grid-template-columns: 1fr;
    grid-template-rows: 55vh auto;
    height: 94vh;
    width: 96vw;
    margin-top: 35px;
    gap: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .lightbox-stage {
    height: 100%;
    min-height: 240px;
  }

  .lightbox-artwork {
    max-height: 52vh;
  }

  .lightbox-sidebar {
    padding: 16px 18px;
    background: var(--surface);
    border-radius: 0;
  }

  .about-modal-body {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .about-author-media {
    width: 70px;
    height: 70px;
  }

  .contact-box { padding: 16px 0; }
  .contact-cards { flex-direction: column; }
  .contact-card { width: 100%; }
}

@media (max-width: 480px) {
  .gallery-grid.grid-monument {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .artwork-frame { height: 260px; }
  .cycle-card-media { height: 230px; }
}
