/* ── WordPress-powered pages: additive styles on top of assets/site.css ──
   Navbar itself is .mip-nav, shared/styled in assets/site.css. ── */

/* ── Right-aligned action link inside a .module-header (e.g. "back home" /
   "back to blog"). .module-header is already display:flex, so margin-left:
   auto pushes this to the far edge without needing a separate wrapper. ── */
.module-header-back {
  margin-left: auto;
  display: inline-block;
  background: linear-gradient(180deg, var(--hot-pink), var(--deep-pink));
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid #cc0077;
  box-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}
.module-header-back:visited { color: white; }
.module-header-back:hover { background: linear-gradient(180deg, var(--deep-pink), #cc0077); }

.wp-page-wrap {
  max-width: 720px;
  margin: 24px auto 60px;
  padding: 0 16px;
}
.wp-page-wrap.wide { max-width: 960px; }

/* ── Blog index / archive ── */
.mip-post-card {
  display: block;
  background: rgba(255,255,255,0.85);
  border-left: 3px solid var(--lavender);
  border-radius: 3px;
  padding: 10px 12px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.mip-post-card:hover { border-left-color: var(--deep-pink); background: #fdf4ff; }
.mip-post-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mip-category-tag {
  font-size: 11px;
  font-weight: bold;
  color: white;
  padding: 1px 7px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mip-category-tag.cat-cover-story { background: var(--deep-pink); }
.mip-category-tag.cat-opinion { background: #7c3aed; }
.mip-category-tag.cat-interview { background: #059669; }
.mip-category-tag.cat-investigation { background: #b45309; }
.mip-category-tag.cat-essay { background: #dc2626; }
.mip-category-tag.cat-uncategorized { background: var(--lavender-dark); }
.mip-post-time { font-size: 12px; color: #9333ea; }
.mip-post-title { font-size: 18px; font-weight: bold; color: var(--dark); margin-bottom: 4px; }
.mip-post-excerpt { font-size: 14px; line-height: 1.5; color: #1a0030; }
.mip-post-byline { font-size: 13px; color: #6600cc; margin-top: 6px; }
.mip-post-byline a { color: #6600cc; font-weight: bold; }

/* ── Blog gallery (index.php) ── */
.mip-blog-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px 12px;
  box-shadow: 2px 2px 4px rgba(100,0,180,0.15);
}
.mip-filter-row, .mip-sort-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mip-filter-label { font-size: 12px; font-weight: bold; color: #6600cc; text-transform: uppercase; letter-spacing: 0.08em; }
.mip-filter-sep { color: rgba(147,51,234,0.5); }
.mip-chip {
  font-size: 13px;
  font-weight: bold;
  color: #6600cc;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(147,51,234,0.4);
  border-radius: 14px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.mip-chip:hover { background: #fdf4ff; border-color: var(--deep-pink); }
.mip-chip.active { background: var(--lavender); color: #fff; border-color: var(--lavender-dark); }

.mip-gallery { columns: 2; column-gap: 12px; }
.mip-tile {
  display: block;
  break-inside: avoid;
  margin: 0 0 12px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(147,51,234,0.3);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 2px 2px 4px rgba(100,0,180,0.12);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.mip-tile:hover { transform: translateY(-2px); box-shadow: 3px 4px 10px rgba(147,51,234,0.28); border-color: var(--deep-pink); }
.mip-tile-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
.mip-tile.tile-big .mip-tile-cover  { aspect-ratio: 1 / 1; }
.mip-tile.tile-tall .mip-tile-cover { aspect-ratio: 3 / 4; }
.mip-tile.tile-wide .mip-tile-cover { aspect-ratio: 16 / 9; }
.mip-tile-cat {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  background: var(--lavender);
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.mip-tile-cat.cat-cover-story { background: var(--deep-pink); }
.mip-tile-cat.cat-opinion { background: #7c3aed; }
.mip-tile-cat.cat-interview { background: #059669; }
.mip-tile-cat.cat-investigation { background: #b45309; }
.mip-tile-cat.cat-essay { background: #dc2626; }
.mip-tile-body { padding: 9px 11px 11px; }
.mip-tile-title { font-size: 15px; font-weight: bold; color: var(--dark); line-height: 1.25; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mip-tile.tile-big .mip-tile-title { font-size: 19px; }
.mip-tile-sub { font-size: 13px; color: #4a0080; line-height: 1.4; margin-bottom: 6px; }
.mip-tile-foot { font-size: 11px; color: #9333ea; }
.mip-tile-foot strong { color: #6600cc; }

.mip-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 18px 0 4px; }
.mip-pagination a, .mip-pagination span {
  font-size: 14px;
  font-weight: bold;
  color: #6600cc;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(147,51,234,0.4);
  border-radius: 4px;
  padding: 9px 14px;
  min-width: 40px;
  text-align: center;
  text-decoration: none;
}
.mip-pagination a:hover { background: #fdf4ff; border-color: var(--deep-pink); }
.mip-pagination .current { background: var(--lavender); color: #fff; border-color: var(--lavender-dark); }

/* ── Single post ── */
.mip-single-cover {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(147,51,234,0.3);
  margin-bottom: 14px;
}
.mip-single-post h1 { font-size: 24px; color: var(--dark); margin-bottom: 6px; }
.mip-single-sub { font-size: 16px; font-style: italic; color: #6600cc; line-height: 1.4; margin-bottom: 10px; }
.mip-single-post .mip-post-meta { margin-bottom: 14px; }
.mip-post-views { font-size: 12px; color: #9333ea; }
.mip-single-post .mip-content { font-size: 15px; line-height: 1.7; color: #1a0030; }
.mip-single-post .mip-content p { margin-bottom: 12px; }
.mip-single-back { margin-top: 20px; padding-top: 12px; border-top: 1px dashed rgba(147,51,234,0.35); }
.mip-single-back a { font-size: 13px; font-weight: bold; color: var(--deep-pink); text-decoration: none; }

/* ── Plain WP Page content (page.php — Privacy Policy, Terms and Conditions,
   any other simple page). The site-wide `* { margin:0; padding:0; }` reset
   zeroes paragraph spacing and list indentation by default; blog posts get
   their own prose treatment via .mip-content above, plain pages need the
   same restored here. ── */
.mip-page-content { font-size: 15px; line-height: 1.7; color: #1a0030; }
.mip-page-content p { margin-bottom: 14px; }
.mip-page-content h2 { font-size: 20px; font-weight: bold; color: var(--dark); margin: 24px 0 10px; }
.mip-page-content h3 { font-size: 17px; font-weight: bold; color: var(--dark); margin: 20px 0 8px; }
.mip-page-content ul, .mip-page-content ol { margin: 0 0 14px 22px; }
.mip-page-content ul { list-style: disc; }
.mip-page-content ol { list-style: decimal; }
.mip-page-content li { margin-bottom: 6px; }
.mip-page-content a { color: var(--link); }
.mip-page-content a:hover { color: var(--link-hover); }
.mip-page-content strong { font-weight: bold; }
.mip-page-content em { font-style: italic; }

/* ── People listing (authors / artists) ── */
.mip-people-intro { font-size: 14px; color: #4a0080; line-height: 1.6; margin-bottom: 16px; text-align: center; }
.mip-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.mip-person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(147,51,234,0.3);
  border-radius: 4px;
  padding: 14px 10px;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.mip-person-card:hover { transform: translateY(-2px); box-shadow: 3px 4px 10px rgba(147,51,234,0.28); border-color: var(--deep-pink); }
.mip-person-card-avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  border: 3px solid var(--lavender);
  box-shadow: 2px 2px 4px rgba(100,0,180,0.2);
  margin-bottom: 8px;
}
.mip-person-card-avatar.featured { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,0.3); }
.mip-person-card-name { font-size: 15px; font-weight: bold; color: var(--dark); }
.mip-person-card-role { font-size: 11px; font-weight: bold; color: #9333ea; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.mip-person-card-genre { font-size: 12px; color: #4a0080; margin-top: 3px; }
.mip-person-card-status { font-size: 11px; font-weight: bold; margin-top: 6px; }
.mip-person-card-status.online { color: #00cc44; }
.mip-person-card-status.offline { color: #999; }

@media (max-width: 760px) {
  .mip-gallery { columns: 2; column-gap: 10px; }
}
@media (max-width: 460px) {
  .mip-gallery { columns: 1; }
  /* Tighter people grid so cards don't overflow ~320px phones. */
  .mip-people-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  /* Stack the person header (avatar above name) instead of a cramped row. */
  .mip-person-header { flex-direction: column; align-items: center; text-align: center; }
}

/* ── Blog two-column layout: gallery + right rail ── */
.mip-blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: start;
}
.mip-blog-controls { grid-column: 2; grid-row: 1; }
.mip-blog-main     { grid-column: 1; grid-row: 1 / span 2; min-width: 0; }
.mip-blog-rail     { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; gap: 14px; }

/* ── Right-rail widgets ── */
.mip-rail-more { text-align: center; padding: 6px 0 2px; }
.mip-rail-more a { font-size: 12px; font-weight: bold; color: var(--deep-pink); text-decoration: none; }
.mip-rail-ad-copy { font-size: 13px; line-height: 1.5; color: #4a0080; margin-bottom: 10px; }
.mip-rail-cta {
  display: block;
  text-align: center;
  background: linear-gradient(180deg, var(--lavender) 0%, var(--lavender-dark) 100%);
  border: 1px solid var(--lavender-dark);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
}
.mip-rail-cta:hover { background: var(--deep-pink); border-color: var(--deep-pink); }

.mip-rail-quote {
  text-align: center;
  background: rgba(255,255,255,0.82);
  border: 1px dashed rgba(147,51,234,0.5);
  border-radius: 3px;
  padding: 14px 12px;
}
.mip-rail-quote p { font-family: 'Comic Neue', cursive; font-size: 15px; font-weight: 700; font-style: italic; color: #9333ea; line-height: 1.6; }
.mip-rail-quote-emoji { font-size: 18px; margin-top: 6px; }

.mip-rail-news-copy { font-size: 13px; line-height: 1.5; color: #4a0080; margin-bottom: 8px; }
.mip-rail-news { display: flex; gap: 0; }
.mip-rail-news input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-right: none;
  padding: 10px;
  font-size: 16px;            /* 16px avoids iOS focus auto-zoom */
  min-height: 44px;
  font-family: 'Trebuchet MS', sans-serif;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}
.mip-rail-news button {
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--lavender) 0%, var(--lavender-dark) 100%);
  border: 1px solid var(--lavender-dark);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  font-family: 'Trebuchet MS', sans-serif;
}
.mip-rail-news button:hover { background: var(--deep-pink); }
.form-status { font-size: 13px; text-align: center; margin-top: 8px; font-weight: bold; }
.form-status.success { color: #059669; }
.form-status.error { color: #dc2626; }

.mip-rail-stickers {
  text-align: center;
  font-size: 20px;
  letter-spacing: 3px;
  padding: 4px 0;
  opacity: 0.9;
}

/* ── Compact Spotify widget (blog rail) ── */
.spotify-widget.compact { margin-bottom: 10px; }
.spotify-widget.compact:last-of-type { margin-bottom: 0; }
.spotify-widget.compact .spotify-widget-header { padding: 6px 8px; }
.spotify-widget.compact .title { font-size: 13px; }
.spotify-widget.compact .spotify-widget-player iframe { height: 152px; min-height: 152px; }
/* Same fixed-content-height issue as the full widget (see assets/site.css) —
   152px was leaving a lot of blank space below Spotify's actual rendered
   content on mobile, and 180px clipped real content (too short). 200px
   matches what the embed actually needs there; padding-top balances the
   small remaining gap evenly above/below since we can't reach inside the
   cross-origin iframe to trim it directly. */
@media (max-width: 760px) {
  .spotify-widget.compact .spotify-widget-player { padding-top: 12px; }
  .spotify-widget.compact .spotify-widget-player iframe { height: 200px; min-height: 200px; }
}

/* ── People-page navigation ── */
.mip-people-nav { margin-bottom: 12px; }
.mip-people-nav a { font-size: 13px; font-weight: bold; color: var(--deep-pink); text-decoration: none; }
.mip-person-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 0 16px 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(147,51,234,0.35);
}
.mip-person-nav-back { font-size: 13px; font-weight: bold; color: var(--deep-pink); text-decoration: none; }
.mip-person-nav-see { display: flex; flex-wrap: wrap; gap: 12px; }
.mip-person-nav-see a { font-size: 13px; font-weight: bold; color: #6600cc; text-decoration: none; }
.mip-person-nav-see a:hover, .mip-person-nav-back:hover, .mip-people-nav a:hover { text-decoration: underline; }

/* Stack the blog layout on mobile: filters on top, gallery, then rail. */
@media (max-width: 760px) {
  .mip-blog-layout { display: flex; flex-direction: column; }
  .mip-blog-controls { order: 1; }
  .mip-blog-main { order: 2; }
  .mip-blog-rail { order: 3; }
}

/* ── Footer (shared markup with home.html, styled here for WP pages) ── */
/* Footer styles (.page-footer / .footer-bottom / .footer-ico) now live in
   assets/site.css (shared with the static pages). */

/* ── Person (author/artist) profile ── */
.mip-person-header { display: flex; gap: 16px; align-items: center; padding: 16px; }
.mip-person-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--lavender);
  object-fit: cover;
  flex-shrink: 0;
}
.mip-person-avatar.featured { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,0.3); }
.mip-person-name { font-size: 24px; font-weight: bold; color: var(--dark); }
.mip-person-role { font-size: 13px; color: #9333ea; font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.mip-person-online { font-size: 12px; font-weight: bold; margin-top: 6px; }
.mip-person-online.online { color: #00cc44; }
.mip-person-online.offline { color: #999; }
.mip-person-socials { display: flex; gap: 10px; margin-top: 10px; }
.mip-person-socials img { width: 22px; height: 22px; border-radius: 4px; }
.mip-person-bio { padding: 0 16px 16px; font-size: 15px; line-height: 1.7; color: #1a0030; }

/* ── Playlists archive ── */
.mip-playlists-intro { font-size: 14px; color: #4a0080; line-height: 1.6; margin-bottom: 16px; text-align: center; }
.mip-playlist-grid { display: flex; flex-direction: column; gap: 16px; }

/* ── Zine landing page ── */
.mip-zine-hero { text-align: center; padding: 20px; }
.mip-zine-hero h1 { font-size: 26px; color: var(--dark); margin-bottom: 8px; }
.mip-zine-hero p { font-size: 15px; color: #4a0080; max-width: 480px; margin: 0 auto; line-height: 1.6; }
.mip-zine-tiers { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.mip-zine-tier {
  border: 1px solid rgba(147,51,234,0.3);
  border-radius: 4px;
  padding: 14px;
  background: linear-gradient(90deg, rgba(192,132,252,0.08), rgba(192,132,252,0.03));
}
.mip-zine-tier.featured { border-color: var(--deep-pink); background: rgba(255,0,170,0.06); }
.mip-zine-tier-name { font-weight: bold; color: var(--dark); font-size: 16px; display: flex; align-items: center; gap: 6px; }
.mip-zine-tier-price { color: #9333ea; font-weight: bold; font-size: 20px; margin-top: 4px; }
.mip-zine-tier-desc { font-size: 14px; color: #4a0080; margin-top: 6px; line-height: 1.5; }
.mip-zine-tier .badge {
  background: var(--deep-pink);
  color: white;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
}

/* ── 404 page ── */
.mip-404 { text-align: center; }
.mip-404-glitch {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  margin: 22px 0 6px;
  color: var(--lavender-dark);
  text-shadow: 3px 3px 0 var(--gold);
}
.mip-404-message {
  font-size: 15px;
  color: #4a0080;
  line-height: 1.6;
  margin: 0 0 22px;
}
.mip-404-home {
  display: inline-block;
  background: linear-gradient(180deg, var(--hot-pink), var(--deep-pink));
  color: var(--gold-light);
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 2px;
  border: 1px solid #cc0077;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
  margin-bottom: 26px;
}
.mip-404-home:visited { color: var(--gold-light); }
.mip-404-home:hover { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--lavender-dark); }
