/* ============================================================
   portfolio.css — Style dla podstron portfolio
   ============================================================ */

/* ── Subpage hero variant ───────────────────────────────── */
.subpage-hero--portfolio {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 60%, #2a2a2a 100%);
}

/* ── Video background hero ──────────────────────────────── */
.subpage-hero--video {
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
}
.hero-video-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Cover technique: fill whichever dimension is larger */
  width: 100vw;
  height: 56.25vw; /* 16:9 ratio */
  min-height: 100%;
  min-width: 177.78vh; /* 16:9 ratio */
  transform: translate(-50%, -50%);
  border: none;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 1;
}
.hero-video-content {
  position: relative;
  z-index: 2;
}
.portfolio-badge {
  display: inline-block;
  background: rgba(245,51,51,0.15);
  border: 1px solid rgba(245,51,51,0.30);
  color: #F53333;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

/* ── Video embed ─────────────────────────────────────────── */
.project-video-section {
  margin: 60px 0 0;
}
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Page layout ─────────────────────────────────────────── */
.portfolio-page { padding-bottom: 80px; }

.project-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

/* ── Article body ───────────────────────────────────────── */
.project-body {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
}
.project-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.75;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--border);
}
.project-body h2 {
  font-size: 1.3rem;
  color: #1a1a1a;
  margin: 32px 0 14px;
  font-weight: 700;
}
.project-body h2:first-of-type { margin-top: 0; }
.project-body p {
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 14px;
}
.project-body ul {
  padding-left: 0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-body li {
  list-style: none;
  padding: 14px 18px;
  background: var(--bg-light);
  border-radius: 10px;
  border-left: 3px solid var(--red);
  color: var(--text-mid);
  font-size: 0.925rem;
  line-height: 1.65;
}
.project-body li strong { color: #1a1a1a; }

/* ── Results grid ───────────────────────────────────────── */
.project-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}
.result-item {
  background: var(--bg-light);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.result-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.result-unit {
  font-size: 1.2rem;
}
.result-label {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ── CTA block ──────────────────────────────────────────── */
.project-cta {
  margin-top: 40px;
  padding: 28px;
  background: #0d0d0d;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.project-cta p {
  color: rgba(255,255,255,0.70);
  font-size: 0.95rem;
  margin: 0;
}

/* ── Sidebar ────────────────────────────────────────────── */
.project-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-facts h3 {
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  font-weight: 700;
}
.facts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.facts-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  list-style: none;
}
.facts-list li:last-child { border-bottom: none; }
.fact-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  flex-shrink: 0;
}
.fact-value {
  font-size: 0.875rem;
  color: #1a1a1a;
  font-weight: 600;
  text-align: right;
}
.project-status {
  color: var(--red) !important;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .project-layout { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
  .project-results { grid-template-columns: repeat(2, 1fr); }
  .project-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .project-body { padding: 28px 20px; }
  .project-results { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .project-results { grid-template-columns: 1fr 1fr; }
}
