:root {
  --bg: #1a1a1a;      /* dark grey */
  --fg: #f8ff1a;      /* base neon yellow (header) */
  --muted: #e4ff4d;   /* softer yellow */
  --max-width: 1120px;
  --pad-x: 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
}

html {
  overflow-y: scroll; /* always reserve space for scrollbar */
}

/* ===== HEADER ===== */

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 26px var(--pad-x) 0px;
  text-align: center;
}

.brand {
  margin: 0;
  font-size: 39px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fg);
  display: inline-block;
  width: 300px;      /* SAME as .post-inner width */
  text-align: center;
}

/* Nav / tagline */

.tagline {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 2px 3px;            /* space for the box */
  border-radius: 0px;        /* rounded rectangle/pill */
  border: 1px solid transparent;
  transition: border-color 0.15s ease-out, color 0.15s ease-out;
}

.nav-link:hover {
  border-color: rgba(228, 255, 77, 0.5); /* softer yellow on hover */
}

/* Active page: full rectangle in main text color */

.nav-active {
  color: var(--fg);
  border-color: var(--fg);     /* visible rectangle */
}

/* ===== MUSIC PAGE ===== */

.music-sub-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
  padding-top: 2px;
  margin: 5px auto 12px;
  width: 300px;
}

.sub-nav-link {
  /* Copying properties from .nav-link */
  font-size: 10px;              /* Same as tagline */
  letter-spacing: 0.16em;      /* Same as tagline */
  text-transform: uppercase;
  color: var(--fg);         /* Faded yellow for inactive */
  text-decoration: none;
  padding: 2px 3px;            /* Same as main buttons */
  border: 1px solid transparent; 
  border-radius: 0px;
  font-weight: 400;            /* Ensures no shifting */
  transition: border-color 0.15s ease-out, color 0.15s ease-out;
  opacity: 1 !important;
}

.sub-nav-link:hover {
  border-color: rgba(228, 255, 77, 0.5); /* Same hover effect as main nav */
  color: var(--fg);
}

.sub-nav-active {
  color: var(--fg);            /* Bright neon yellow */
  border: 1px solid var(--fg); /* Solid neon border */
}

/* Ensure hover doesn't change the active state color */
.sub-nav-active:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.nav-sep {
  margin: 0 8px;
  color: var(--fg);
  opacity: 0.5;
}

/* Hide body text under each image on music page */
.timeline .post-excerpt {
  display: none;
}

/* Main layout */
.timeline {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x) 30px; /* Changed 10px to 0 for the top padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* Each post */

.post {
  position: relative;
}

/* Inner block: one centered column */

.post-inner {
  position: relative;
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;        /* image ↔ heading */
  padding: 0;
  background: transparent;
}

/* Image */

.post-image-wrap {
  width: 100%;
  background: #000;
}

.post-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.post-image-link {
  display: block;
  width: 100%;
  text-decoration: none;
  position: relative;
}

.post-image-wrap {
  width: 100%;
  background: #000;
  position: relative;
  overflow: hidden;
}

.spotify-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.post-image-link:hover .spotify-overlay {
  opacity: 1;
}

.spotify-badge {
  padding: 4px 8px;
  border-radius: 0px;
  background: rgba(251, 255, 26);    /* Spotify green */
  color: #000;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Text box */

.post-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 10px;
}

/* Title + artist on one line */

.post-heading {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;        /* tiny space between title and artist */
  white-space: nowrap;
}

.post-title,
.post-artist {
  font-weight: 600;
}
 /* ===== SOCIAL LINKS ===== */

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 10px auto 5px; /* Changed 10px to 5px at the end */
  padding-bottom: 0;      /* Ensure no extra padding is pushing things down */
  width: 300px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;        /* fixed square size */
  height: 25px;
  color: var(--fg);   /* neon yellow */
  text-decoration: none;
  transition: all 0.15s ease-out;
}

.social-icon[title="TikTok"] svg {
  width: 20px;
  height: 20px;
}

.social-icon:hover {
  border-color: var(--fg);
  background: rgba(248, 255, 26, 0.1); /* subtle neon glow */
}

/* This part fixes the icons being huge or offset */
.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor; /* This fills the circle */
  display: block;
}

/* 1. Hide the Title and Artist only on the Curated page */
#playlist-timeline .post-heading {
  display: none;
}

/* 2. Show the Excerpt only on the Curated page */
#playlist-timeline .post-excerpt {
  display: block;      /* Overrides the display: none set earlier */
  margin: 0px;    /* Space between image and text */
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-align: center;
  color: var(--fg);    /* Neon Yellow */
  max-width: 280px;    /* Keeps text from touching edges */
}

/* 3. Keep everything else hidden for "My Work" page */
#work-timeline .post-excerpt {
  display: none;
}
/* 1. Hide the Title and Artist only on the Curated page */
#playlist-timeline .post-heading {
  display: none;
}

/* 2. Show the Excerpt only on the Curated page */
#playlist-timeline .post-excerpt {
  display: block;      /* Overrides the display: none set earlier */
  margin: 0px;    /* Space between image and text */
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-align: center;
  color: var(--fg);    /* Neon Yellow */
  max-width: 280px;    /* Keeps text from touching edges */
}

/* 3. Keep everything else hidden for "My Work" page */
#work-timeline .post-excerpt {
  display: none;
}

/* ===== ABOUT PAGE ===== */

/* Center the bio column on the page */

.about-page {
  display: flex;
  justify-content: center;
  padding: 10px var(--pad-x) 30px;
}

/* Bio text: normal case + aggressive wrapping, justified */

.about-page .post-excerpt {
  text-transform: none;
  max-width: 100%;
  text-align: justify;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.3;
  color: var(--fg);
}

.about-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
  width: 100%;
  gap: 0px;
  text-align: center;  /* centers image/block, not paragraph */
  margin-top: 0;
}

.about-item {
  width: 100%;
}

.about-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: -10px;
}

.about-item .post-title {
  text-align: center;
}

/* Photos stacked in a centered column */

.about-photos-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.about-photo-wrap {
  width: 100%;
}

.about-photo-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== BLOG CALENDAR PAGE ===== */

.calendar-page {
  max-width: 300px;              /* same as .post-inner and .brand */
  margin: 0 auto;
  padding: 10px 0 40px;
  display: flex;
  flex-direction: column;        /* stack calendar and review */
  align-items: center;           /* center the column */
  gap: 12px;
}

.calendar-panel {
  width: 100%;
  text-align: center;
}

.review-panel {
  width: 100%;                   /* same width as calendar */
}

/* Calendar header with dropdowns */

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-select {
  flex: 1 1 0;
  max-width: 150px;              /* two equal-ish boxes in 300px */
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--fg);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 6px;
  border-radius: 0;
  cursor: pointer;
  appearance: none;              /* remove default styles */
  -webkit-appearance: none;
  -moz-appearance: none;
  
  /* Custom dropdown arrow */
  background-image: linear-gradient(45deg, var(--fg) 50%, transparent 50%),
                    linear-gradient(135deg, var(--fg) 50%, transparent 50%);
  background-position: calc(100% - 10px) 50%, calc(100% - 6px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  padding-right: 18px;           /* room for arrow */
}

.calendar-select:hover {
  border-color: var(--fg);
}

.calendar-select:focus {
  outline: none;
  border-color: var(--fg);
}

/* Calendar grid */

.calendar-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);   /* week per row */
  gap: 3px;
  justify-content: center;
}

.calendar-day-name {
  font-size: 9px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.calendar-days {
  display: contents;
}

.calendar-cell {
  width: 100%;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--fg);
  font-size: 10px;
  text-align: center;
  line-height: 22px;
  padding: 0;
  cursor: pointer;
}

.calendar-cell.has-post:hover {
  border-color: var(--fg);
}

.calendar-title {
  margin: 0 0 12px 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: center;
  width: 100%;
}

.calendar-cell.no-post {
  color: rgba(148, 163, 184, 0.6);
  text-decoration: line-through;
  cursor: default;
}

/* Review display under calendar */

.review-content {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  min-width: 260px;
}

.review-image-wrap {
  width: 100%;
  margin-bottom: 6px;
}

.review-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.review-title {
  margin: 0 0 4px 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.review-meta {
  margin: 0 0 6px 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.review-body {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  white-space: pre-line;
}

.site-footer {
  width: 100%;
  padding: 0px var(--pad-x) 30px; /* Space above and below */
  text-align: center;
}

.site-footer p {
  font-size: 7px;                /* Small and clean */
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg);           /* Softer yellow so it doesn't distract */
  margin: 0;
  opacity: 0.6;                  /* Slightly faded for a modern look */
}

/* Responsive */

@media (max-width: 720px) {
  .blog-page {
    padding-inline: 14px;
  }

  .blog-stack {
    max-width: 100%;
  }

  /* If you want selects a bit wider on mobile, for example: */
  .calendar-select {
    max-width: 100%;
  }
}
