/* Hobbies page - extends the shared site theme in ../style.css */

.back-link {
  display: inline-block;
  font-size: 0.78rem;
  color: #7c9cbf;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.back-link:hover {
  color: #a3c1e0;
  text-decoration: underline;
}

/* Hero */
.hero-banner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.15) 0%, rgba(8, 10, 12, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  text-align: left;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #f0f0f0;
  letter-spacing: 0.02em;
  margin: 0;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: #999;
  margin-top: 0.4rem;
}

/* Intro */
.intro-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #999;
}

/* Section headings */
.section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7c9cbf;
  text-align: center;
}

.section-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e0e0e0;
  text-align: center;
  margin-top: 0.25rem;
}

/* Timeline */
.timeline {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.7rem;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7c9cbf;
  box-shadow: 0 0 0 3px rgba(124, 156, 191, 0.2);
}

.timeline-era {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c9cbf;
  margin-bottom: 0.3rem;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

.timeline-text {
  font-size: 0.85rem;
  line-height: 1.75;
  color: #999;
}

.timeline-thumb {
  margin-top: 0.75rem;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  max-width: 320px;
}

.timeline-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hobby grid */
.hobby-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.hobby-card {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hobby-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  border-color: rgba(124, 156, 191, 0.35);
}

.hobby-card-img {
  height: 130px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.04);
}

.hobby-card-empty .hobby-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hobby-card-body {
  padding: 0.85rem 1rem 1rem;
  text-align: left;
}

.hobby-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e0e0e0;
  line-height: 1.3;
}

.hobby-card-era {
  font-size: 0.72rem;
  color: #666;
  margin-top: 0.3rem;
}

/* Hobby detail page */
.detail-hero {
  max-width: 900px;
  margin: 0 auto;
}

.detail-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7c9cbf;
}

.detail-title {
  font-size: 2rem;
  font-weight: 600;
  color: #f0f0f0;
  margin-top: 0.3rem;
}

.detail-era {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.4rem;
}

.detail-story {
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 1.85;
  color: #999;
}

.detail-story p + p {
  margin-top: 1.1rem;
}

.detail-gallery {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}

.detail-photo {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}

.detail-photo-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.detail-photo img,
.detail-photo video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.detail-photo-caption {
  padding: 0.6rem 0.85rem 0.75rem;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.5;
}

/* Video thumbnails - poster frame + play badge, opens the shared lightbox modal */
.detail-video-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}

.detail-video-trigger .detail-photo-frame {
  position: relative;
}

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 12, 0.28);
  transition: background 0.2s ease;
}

.detail-video-trigger:hover .play-badge::before {
  background: rgba(8, 10, 12, 0.12);
}

.play-badge svg {
  position: relative;
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.detail-video-trigger:hover .play-badge svg {
  transform: scale(1.08);
}

/* Video lightbox modal */
.video-modal-content {
  background: #0b0d10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  overflow: hidden;
}

.video-modal-content video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
}

/* Trailer lightbox modal (YouTube iframe embed instead of a self-hosted video) */
.trailer-modal-content {
  background: #0b0d10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  overflow: hidden;
}

.trailer-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9, as a percentage of width - avoids aspect-ratio's flex-stretch quirks in .modal-content */
}

.trailer-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Grouped hobby-grid sections */
.hobby-group {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.hobby-group-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.85rem;
  padding-left: 0.1rem;
}
