/* ============================================================
   assets/css/home.css — strona główna
   ============================================================ */

:root {
  --near-black: #0a0a0a;
  --mid:        #1c1c1c;
  --tag-bg:     rgba(255,255,255,0.04);
  --tag-hover:  rgba(200,169,110,0.12);
}

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(200,169,110,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform 0.18s ease-out, width 0.3s, height 0.3s, opacity 0.3s;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--accent); font-style: italic; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none; transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); }

/* ── HERO ── */
.hero {
  position: relative; width: 100%; height: 100vh;
  overflow: hidden; display: flex; align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.95) 100%),
    #060810;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
.hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  object-position: center 100%;/*pokazanie dolnej częśći zdjęcia*/
}
.hero-aurora {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 30% 45%, rgba(30,120,60,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 30% at 70% 35%, rgba(20,80,100,0.15) 0%, transparent 55%),
    radial-gradient(ellipse 40% 20% at 55% 55%, rgba(80,40,120,0.10) 0%, transparent 50%);
  animation: auroraShimmer 8s ease-in-out infinite alternate;
}
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 28%  8%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 43% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 60%  5%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 72% 18%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 91% 25%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 12%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 37% 28%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 32%, rgba(255,255,255,0.5) 0%, transparent 100%);
}

@keyframes heroZoom {
  from { transform: scale(1.05) translateY(0); }
  to   { transform: scale(1.12) translateY(-1%); }
}
@keyframes auroraShimmer {
  0%   { opacity: 0.6; filter: hue-rotate(0deg); }
  50%  { opacity: 1.0; filter: hue-rotate(15deg); }
  100% { opacity: 0.7; filter: hue-rotate(-10deg); }
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 48px 80px; width: 100%;
}
.hero-eyebrow {
  font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  opacity: 0; animation: fadeUp 1s 0.5s forwards;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 8vw, 110px); font-weight: 300;
  line-height: 0.9; letter-spacing: -0.01em; color: var(--text);
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 1s 0.7s forwards;
}
.hero-title em { font-style: italic; color: rgba(232,228,221,0.6); }
.hero-sub {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); max-width: 320px; line-height: 1.8; margin-bottom: 48px;
  opacity: 0; animation: fadeUp 1s 0.9s forwards;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  opacity: 0; animation: fadeUp 1s 1.1s forwards;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--line); background: var(--tag-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none; cursor: none;
  transition: border-color 0.4s, color 0.4s, background 0.4s, transform 0.3s;
}



.hero-tag:hover {
  border-color: var(--accent-dim); color: var(--accent);
  background: var(--tag-hover); transform: translateY(-2px);
}
.hero-tag-count { font-size: 8px; color: var(--accent); opacity: 0.7; }

/* scroll hint */
.scroll-hint {
  position: absolute; bottom: 36px; right: 48px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: fadeIn 1s 1.5s forwards; z-index: 2;
}
.scroll-hint span {
  font-size: 8px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-dim); writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 40px;
  display: flex; align-items: center; gap: 20px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ── FEATURED GRID ── */
.featured {
  padding: 80px 48px 60px;
  background: var(--near-black);
}
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
}
.featured-item {
  position: relative; overflow: hidden; cursor: none;
  background: var(--mid);
}
.featured-item:first-child { grid-row: 1 / 3; }
.featured-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
  min-height: 200px;
}
.featured-item:first-child img { min-height: 460px; }
.featured-item:hover img { transform: scale(1.04); }

/* placeholder gdy brak zdjęcia */
.featured-placeholder {
  width: 100%; min-height: 200px;
  background: var(--mid);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.05); font-size: 32px;
}
.featured-item:first-child .featured-placeholder { min-height: 460px; }

.featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.4s;
  display: flex; align-items: flex-end; padding: 20px;
}
.featured-item:hover .featured-overlay { opacity: 1; }
.featured-overlay-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 300; color: var(--text); letter-spacing: 0.05em;
}
.img-tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 7px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(200,169,110,0.9); border: 1px solid rgba(200,169,110,0.3);
  padding: 4px 9px; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
}

/* ── TAG CARDS ── */
.tags-section {
  padding: 70px 48px;
  background: var(--black);
  border-top: 1px solid var(--line);
}
.tags-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.tag-card {
  position: relative; overflow: hidden; aspect-ratio: 4/3;
  cursor: none; background: var(--near-black); text-decoration: none; display: block;
}
.tag-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.6s ease;
}
.tag-card:hover img { transform: scale(1.06); }
.tag-card-bg-placeholder {
  position: absolute; inset: 0;
  background: var(--mid);
}
.tag-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.tag-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 18px; }
.tag-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 300; color: var(--text); letter-spacing: 0.06em; display: block;
}
.tag-card-count {
  font-size: 8px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); margin-top: 4px; display: block;
}

/* ── LATEST STRIP ── */
.latest {
  padding: 70px 48px;
  background: var(--near-black);
  border-top: 1px solid var(--line);
}
.latest-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.latest-item { aspect-ratio: 1; overflow: hidden; position: relative; cursor: none; }
.latest-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.latest-item:hover img { transform: scale(1.06); }
.latest-item-bg { width: 100%; height: 100%; background: var(--mid); }
.latest-item-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 10px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  font-size: 9px; letter-spacing: 0.12em; color: var(--text-dim);
  opacity: 0; transition: opacity 0.3s;
}
.latest-item:hover .latest-item-label { opacity: 1; }

/* ── FOOTER ── */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--black);
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; font-weight: 300; letter-spacing: 0.12em; color: var(--text-dim);
}
.footer-copy { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(232,228,221,0.2); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .hero-content { padding: 0 24px 60px; }
  .hero-title { font-size: clamp(42px, 12vw, 72px); }
  .featured { padding: 50px 24px; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-item:first-child { grid-row: 1; }
  .tags-section, .latest { padding: 50px 24px; }
  .tags-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-strip { grid-template-columns: repeat(3, 1fr); }
  footer { padding: 28px 24px; flex-direction: column; gap: 12px; text-align: center; }
  .scroll-hint { display: none; }
}
@media (max-width: 540px) {
  .featured-grid { grid-template-columns: 1fr; }
  .latest-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-tags { gap: 8px; }
  .hero-tag { padding: 8px 14px; }
}
