:root {
  --bg-main: #070709;
  --bg-soft: #111216;
  --text-main: #f5f1eb;
  --text-soft: #cfc7c2;
  --accent-pink: #d96bb3;
  --accent-hot-pink: #f03db8;
  --accent-plum: #5b2948;
  --accent-silver: #c9c3c7;
  --accent-smoke: #8b858c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #111;
  color: #f5f5f5;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(0px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
  background: rgba(8, 6, 10, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: #ddd;
  transition: 0.3s;
}

.nav a:hover {
  color: white;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 8%;
  background: #070709;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.75) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.hero-tag {
  color: #d0c8c8;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 0.98;
  margin-bottom: 18px;
  color: #f5f1eb;
}

.hero-text {
  font-size: 1.05rem;
  color: #d7d0cb;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: #f5f1eb;
  color: #111;
  font-weight: 600;
  transition: 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

/* =========================
   BOOKS SECTION
========================= */

.books-section {
  padding: 80px 8%;
}

.books-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
}

.books-controls {
  display: flex;
  gap: 10px;
}

.scroll-btn {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #1a1a1d;
  color: #f5f1eb;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.25s ease;
}

.scroll-btn:hover {
  background: #2a2a30;
  transform: translateY(-2px);
}

.books-row-wrapper {
  overflow: hidden;
  width: 100%;
}

.books-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.books-row::-webkit-scrollbar {
  display: none;
}

.books-row:hover {
  cursor: grab;
}

.book-card {
  flex: 0 0 280px;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  height: 420px;
  background: #151518;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.book-card:hover {
  transform: translateY(-6px);
}

.book-cover {
  position: relative;
  height: 250px;
  min-height: 250px;
  max-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #16161b;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.book-card:hover .book-cover img {
  transform: scale(1.04);
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 2;
  pointer-events: none;
}

.book-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.book-author {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #b8afb3;
}

.book-content p {
  color: #d5ced0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* =========================
   GENERIC SECTIONS
========================= */

.featured,
.latest {
  padding: 80px 8%;
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.section-heading p {
  color: #aaa;
}

/* =========================
   OLD POSTS / LATEST
   (can stay until replaced)
========================= */

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

.post-card {
  background: #1b1b1b;
  border-radius: 18px;
  overflow: hidden;
  transition: 0.3s;
}

.post-card:hover {
  transform: translateY(-6px);
}

.post-image {
  height: 220px;
  background: linear-gradient(135deg, #444, #222);
}

.post-content {
  padding: 20px;
}

.category {
  display: inline-block;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.post-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.post-content p {
  color: #bbb;
  margin-bottom: 18px;
}

.post-content a {
  color: white;
  font-weight: bold;
}

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.latest-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #2a2a2a;
}

.latest-item span {
  font-size: 1.5rem;
  font-weight: bold;
  color: #777;
}

.latest-item h3 {
  margin-bottom: 8px;
}

.latest-item p {
  color: #aaa;
}

/* =========================
   MOOD / DIARY SECTION
========================= */

.mood-diary {
  padding: 90px 8%;
  background: #09090c;
}

.mood-diary .section-heading {
  margin-bottom: 32px;
}

.mood-diary-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr;
  gap: 24px;
  grid-auto-rows: 260px;
}

.diary-card,
.music-card,
.mood-quote,
.playlist-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #141418;
}

/* Fixed: keeps Moment 02 and similar images neat inside the card */
.diary-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1a1a1f, #0d0d11);
}

.diary-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.diary-card:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.diary-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
}

.diary-label,
.music-label,
.quote-label,
.playlist-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #c7bcc2;
  margin-bottom: 10px;
}

.diary-overlay h3 {
  font-size: 1.2rem;
  line-height: 1.2;
  color: #f5f1eb;
  max-width: 85%;
}

.diary-large {
  grid-row: span 2;
}

.music-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #17171d, #0f0f14);
}

.music-top h3 {
  font-size: 1.8rem;
  line-height: 1.05;
  margin-bottom: 8px;
  color: #f5f1eb;
}

.music-top p {
  color: #b8afb3;
}

.music-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.music-bar span {
  display: block;
  width: 58%;
  height: 100%;
  background: linear-gradient(90deg, #d96bb3, #f03db8);
  border-radius: 999px;
}

.music-bottom small {
  color: #cfc7c2;
  letter-spacing: 0.3px;
}

/* Keep these only if still used */
.mood-quote {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #1a1820, #111117);
}

.mood-quote p {
  font-size: 1.35rem;
  line-height: 1.3;
  color: #f5f1eb;
  max-width: 90%;
}

.playlist-card {
  padding: 24px;
  background: linear-gradient(135deg, #121218, #18131a);
}

.playlist-card ul {
  list-style: none;
}

.playlist-card li {
  color: #e1d8dc;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.playlist-card li:last-child {
  border-bottom: none;
}

/* =========================
   MOODBOARD TILES
========================= */

.mood-tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
}

.mood-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.mood-tile:hover img {
  transform: scale(1.05);
}

.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.15));
}

.tile-label {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #cfc7c2;
  margin-bottom: 6px;
}

.tile-overlay h4 {
  font-size: 1rem;
  color: #f5f1eb;
  margin-bottom: 2px;
}

.tile-overlay p {
  font-size: 0.8rem;
  color: #b8afb3;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 30px 8%;
  text-align: center;
  border-top: 1px solid #222;
  color: #888;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {
  .mood-diary-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .diary-large {
    grid-row: span 1;
    min-height: 380px;
  }

  .diary-card,
  .music-card,
  .mood-quote,
  .playlist-card {
    min-height: 240px;
  }
}

@media (max-width: 900px) {
  .books-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .book-card {
    flex: 0 0 240px;
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    height: 400px;
  }

  .book-cover {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
  }

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

  .hero h1 {
    font-size: 2.8rem;
  }

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 75px;
    right: 8%;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    width: 200px;
  }

  .nav.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

.video-tile {
  position: relative;
  overflow: hidden;
  background: #111;
}

.mood-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.mood-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.28) 45%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

.video-tile .tile-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.shows-section {
  padding: 100px 8%;
  background: #0b0b0f;
}

.shows-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 42px auto;
}

.shows-heading h2 {
  font-size: 3rem;
  margin-bottom: 12px;
  color: #f5f1eb;
}

.shows-heading p {
  font-size: 1.05rem;
  color: #bdb4b8;
}

.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  align-items: start;
}

.show-card {
  background: #111116;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.show-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.show-card:hover {
  transform: translateY(-4px);
}

@media (max-width: 900px) {
  .shows-section {
    padding: 80px 6%;
  }

  .shows-heading h2 {
    font-size: 2.4rem;
  }

  .shows-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }
}

.show-card {
  display: block;
  text-decoration: none;
  color: inherit;
}