/* ---------- Hero ---------- */

.work-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
}

.minecraftpal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 30%, rgba(40, 215, 255, 0.2), transparent 70%),
              radial-gradient(ellipse at 30% 70%, rgba(59, 130, 246, 0.12), transparent 60%);
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.hero-content { max-width: 800px; }

.pal-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.pal-hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pal-hero-logo img {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
  animation: logoBob 3s ease-in-out infinite;
}

@keyframes logoBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (max-width: 760px) {
  .pal-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pal-hero-logo { display: none; }
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(40, 215, 255, 0.08);
  border: 1px solid rgba(40, 215, 255, 0.15);
  border-radius: 8px;
  padding: 5px 14px;
  margin-bottom: 24px;
}

.work-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--soft);
  line-height: 1.8;
  max-width: 640px;
}

.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions {
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ---------- Story ---------- */

.story {
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.story-narrative h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.story-narrative p {
  color: var(--soft);
  margin: 0 0 18px;
  line-height: 1.85;
}

.story-narrative strong { color: var(--text); font-weight: 600; }

.story-proof {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}

.proof-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.3s;
}

.proof-card:hover { border-color: rgba(255, 255, 255, 0.12); }

.proof-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(40, 215, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.proof-text {
  font-size: 0.9rem;
  color: var(--soft);
  font-weight: 500;
  line-height: 1.5;
  padding-top: 6px;
}

/* ---------- Section Header ---------- */

.section-header {
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.section-header p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Marketplace Pulse ---------- */

.pulse-section {
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pulse-chart {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px 28px 24px;
}

#category-chart {
  min-height: 280px;
}

.pulse-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pulse-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pulse-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.pulse-stat-label {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Decision Rationale ---------- */

.rationale {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  padding: 24px 28px;
  background: rgba(40, 215, 255, 0.03);
  border: 1px solid rgba(40, 215, 255, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: 0 16px 16px 0;
}

.rationale-marker {
  flex-shrink: 0;
  width: 4px;
  display: none;
}

.rationale-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rationale-content p {
  color: var(--soft);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
}

.rationale-content em {
  color: var(--text);
  font-style: italic;
}

/* ---------- Creator Trust ---------- */

.trust-section {
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 28px 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.trust-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.trust-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  margin-bottom: 8px;
}

.trust-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.trust-card-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: background 0.2s;
}

.trust-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.trust-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--soft);
}

.trust-item-meta {
  display: flex;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--muted);
}

.trust-item-meta span {
  font-weight: 500;
}

.trust-item-rating {
  color: var(--accent-2);
}

/* ---------- Gallery ---------- */

.gallery-section {
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* gallery styles in work.css */

.gallery-viewport img {
  object-fit: cover;
  object-position: top center;
}

.gallery-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s;
}

.gallery-placeholder:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 20px;
}

.placeholder-inner svg {
  opacity: 0.4;
}

/* ---------- Philosophy ---------- */

.philosophy-section {
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.philosophy-content {
  max-width: 720px;
}

.philosophy-content h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.philosophy-content p {
  color: var(--soft);
  margin: 0 0 18px;
  line-height: 1.85;
}

.philosophy-content em {
  color: var(--text);
  font-style: italic;
}

/* ---------- CTA ---------- */

.cta-section {
  padding: 40px 0 80px;
}

.cta-block {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
}

.cta-block h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.cta-block p {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 0.95rem;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ---------- Horizontal Bar Chart ---------- */

.bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.bar-label {
  width: 110px;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--soft);
  text-align: right;
}

.bar-track {
  flex: 1;
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  width: 0;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-fill.animated {
  width: var(--target-width);
}

.bar-value {
  width: 70px;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .work-hero { padding: 40px 0 60px; }

  .work-hero h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hero-stats .stat-card:last-child {
    grid-column: 1 / -1;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .trust-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr; }

  .pulse-stats { flex-direction: column; gap: 16px; }

  .rationale { padding: 20px 22px; }

  .cta-block { padding: 40px 24px; }

  .cta-actions { flex-direction: column; align-items: center; }

  .bar-label { width: 80px; font-size: 0.78rem; }
  .bar-value { width: 55px; font-size: 0.76rem; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .bar-row { gap: 8px; }
  .bar-label { width: 65px; font-size: 0.72rem; }
  .bar-track { height: 24px; }
}
