/* ==========================================================================
   Project Detail Pages — shared layout
   ========================================================================== */

/* Hero */
.hero {
  padding: 48px 0 56px;
}

.hero-tag {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
  background:
    linear-gradient(#f0efec, #f0efec) padding-box,
    linear-gradient(90deg, #fcd29f, #d9a8e0, #91d3f0) border-box;
  border: 2.5px solid transparent;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-sub {
  font-size: 16px;
  color: #777;
  margin-bottom: 40px;
}

.hero-img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.hero-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Content */
.content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  padding: 64px 0 80px;
}

.content-main h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.content-main p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Screenshots */
.screenshots {
  margin-top: 48px;
}

.screenshots h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.screenshots-grid img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: block;
}

.screenshots-grid img.full {
  grid-column: 1 / -1;
}

/* Sidebar */
.sidebar {
  padding-top: 4px;
}

.sidebar-block {
  margin-bottom: 32px;
}

.sidebar-block h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  margin-bottom: 10px;
}

.sidebar-block p {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool {
  font-size: 12px;
  font-weight: 500;
  background: white;
  color: #444;
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

/* Project Navigation */
.project-nav {
  border-top: 1px solid #e0dedd;
  padding: 32px 0 80px;
  display: flex;
  justify-content: space-between;
}

.project-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  background: white;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.15s;
}

.project-nav a:hover {
  background: #e8e7e4;
}

.project-nav .disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Faltflyer-specific: hero with multiple flyers */
.hero-img.hero-img-flyers {
  background: #fef3e2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  height: 480px;
}

.hero-img.hero-img-flyers img {
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

/* Faltflyer Flip Cards */
@keyframes flip-flyer-page {
  0%   { transform: rotateY(0deg); }
  19%  { transform: rotateY(0deg); }
  27%  { transform: rotateY(180deg); }
  46%  { transform: rotateY(180deg); }
  55%  { transform: rotateY(360deg); }
  100% { transform: rotateY(360deg); }
}

.flip-section {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid #e0dedd;
}

.flip-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.flip-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.flip-card {
  perspective: 900px;
  width: 160px;
  height: 320px;
  flex-shrink: 0;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: flip-flyer-page 11s ease-in-out infinite;
}

.flip-card:nth-child(1) .flip-card-inner { animation-delay: 0s; }
.flip-card:nth-child(2) .flip-card-inner { animation-delay: 0.7s; }
.flip-card:nth-child(3) .flip-card-inner { animation-delay: 1.4s; }
.flip-card:nth-child(4) .flip-card-inner { animation-delay: 2.1s; }
.flip-card:nth-child(5) .flip-card-inner { animation-delay: 2.8s; }

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.flip-card-back {
  transform: rotateY(180deg);
}

.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Roll-ups Drafts Grid */
.drafts {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid #e0dedd;
}

.drafts h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.drafts-desc {
  font-size: 15px;
  color: #888;
  margin-bottom: 32px;
}

.drafts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.draft-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background: #f5f5f5;
}

.draft-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tablet ≤ 768px */
@media (max-width: 768px) {
  .hero {
    padding: 32px 0 40px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-img img {
    height: 320px;
  }
  .hero-img.hero-img-flyers {
    height: 320px;
  }
  .content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0 60px;
  }
  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 32px;
  }
  .flip-card {
    width: 120px;
    height: 240px;
  }
  .drafts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile ≤ 480px */
@media (max-width: 480px) {
  .nav-back {
    font-size: 13px;
    padding: 6px 12px;
  }
  .hero {
    padding: 24px 0 32px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-img img {
    height: 220px;
  }
  .content {
    gap: 32px;
    padding: 32px 0 40px;
  }
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .project-nav {
    padding: 24px 0 48px;
  }
  .project-nav a {
    font-size: 13px;
    padding: 8px 14px;
  }
  .drafts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
