/* ============================================
   stuffz.net — Subpage Styles
   Extends main.css for inner pages
   ============================================ */

/* --- SUBPAGE LAYOUT --- */
.subpage {
  min-height: 100vh;
  padding: 7rem 2rem 4rem;
}
.subpage-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* --- SUBPAGE HERO --- */
.subpage-hero {
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.8s ease both;
}
.subpage-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.subpage-eyebrow::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--accent);
}
.subpage-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.subpage-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.subpage-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 560px;
}

/* --- SUBPAGE CONTENT --- */
.subpage-content {
  animation: fadeUp 0.8s 0.15s ease both;
}

/* --- LINK LISTS --- */
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.link-list li {
  border-bottom: 1px solid var(--border);
}
.link-list li:first-child {
  border-top: 1px solid var(--border);
}
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  transition: all var(--transition);
  gap: 1rem;
}
.link-list a:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}
.link-list a::after {
  content: '→';
  color: var(--text-faint);
  font-size: 1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.link-list a:hover::after {
  color: var(--accent);
  transform: translateX(4px);
}
.link-list .link-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

/* --- CARD GRID (for things/stuff) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.content-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--text);
  transition: all var(--transition);
}
.content-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  color: var(--text);
}
.content-card-icon {
  font-size: 1.1rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.content-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.content-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- PROSE CONTENT (blog, about) --- */
.prose {
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 0.97rem;
}
.prose h2, .prose h3 {
  font-family: var(--serif);
  color: var(--text);
  margin: 2.5rem 0 1rem;
}
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.2rem; }
.prose p { margin-bottom: 1.25rem; }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--accent-light); }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.prose img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* --- BLOG STYLES (night) --- */
.blog-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.blog-nav a { color: var(--text-muted); }
.blog-nav a:hover { color: var(--accent); }
.blog-entry {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.blog-entry:last-child { border-bottom: none; }
.blog-date {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}
.blog-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 1rem;
  font-style: italic;
}
.blog-body {
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 0.93rem;
}
.blog-body p { margin-bottom: 1rem; }
.blog-body i, .blog-body em { color: var(--text-faint); }
.blog-body a { color: var(--accent); }

/* --- ARCHIVE LIST --- */
.archive-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.archive-list a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.archive-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- PHOTO GRID (i2k) --- */
.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
.trip-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.trip-grid img:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

/* --- WISHLIST --- */
.wish-providers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.wish-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  color: var(--text);
}
.wish-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}
.wish-card-icon { font-size: 1.5rem; color: var(--accent); }
.wish-card h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--text); }
.wish-card p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }
.wish-card .btn { margin-top: auto; }

/* --- FILE BROWSER (things) --- */
.file-browser {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.file-browser-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: grid;
  grid-template-columns: 1fr auto;
}
.file-item {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.file-item:last-child { border-bottom: none; }
.file-item:hover { background: var(--bg-card-hover); }
.file-item a {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.file-item a:hover { color: var(--accent); }
.file-icon { color: var(--text-faint); font-size: 0.85rem; }
.file-type {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .subpage { padding: 5rem 1.25rem 3rem; }
  .card-grid { grid-template-columns: 1fr; }
  .wish-providers { grid-template-columns: 1fr; }
  .trip-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-nav { flex-direction: column; gap: 0.75rem; text-align: center; }
}
