﻿/* ── TYPOGRAPHY & UTILITY ─────────────────────────────────── */
.centered {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── HEADER / MASTHEAD ────────────────────────────────────── */
.masthead {
  background: rgba(249, 247, 254, 0.85);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(139, 95, 191, 0.12);
  position: relative;
  width: 100%;
}

.site-title {
  margin: 0;
  padding: 1rem 0 0.8rem;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: center;
  color: #1a1a2e;
  background: linear-gradient(135deg, #4a2c6d 0%, #8B5FBF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

@media screen and (min-width: 48em) {
  .site-title { font-size: 2.6rem; padding: 1.2rem 0 0.9rem; }
}

/* ── SIDEBAR & WRAPPER (PURE TOGGLE) ──────────────────────── */
#wrapper {
  padding-left: 0;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

#wrapper.toggled {
  padding-left: 260px;
}

#sidebar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1030;
  width: 0;
  height: 100vh;
  background: #14181f;
  overflow-y: auto;
  overflow-x: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.08);
}

#wrapper.toggled #sidebar-wrapper {
  width: 260px;
}

#page-content-wrapper {
  width: 100%;
  padding-top: 0;
}

/* Sidebar inner content */
.sidebar-header {
  width: 100%;
  background: #0e1219;
  padding: 1rem 0;
  position: relative;
}
.sidebar-brand {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 0.5rem;
}

.sidebar-nav {
  width: 260px;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
}

.menu-section .mainNav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-section .mainNav ul li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.8rem;
  color: #eef2ff;
  text-decoration: none;
  font-weight: 450;
  font-size: 1rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.menu-section .mainNav ul li a:hover {
  background: rgba(139, 95, 191, 0.2);
  border-left-color: var(--primary);
  color: white;
}

/* ── HAMBURGER (PURE CSS + VANILLA JS) ────────────────────── */
.hamburger {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1040;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 95, 191, 0.25);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.hamburger:hover {
  background: white;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.hamburger .hamb-top,
.hamburger .hamb-middle,
.hamburger .hamb-bottom {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  background-color: #2d2f36;
  transition: all 0.25s ease;
  border-radius: 4px;
}

.hamburger .hamb-top { top: 15px; }
.hamburger .hamb-middle { top: 20px; }
.hamburger .hamb-bottom { top: 25px; }

.hamburger.is-open .hamb-top {
  transform: rotate(45deg);
  top: 20px;
}
.hamburger.is-open .hamb-middle {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open .hamb-bottom {
  transform: rotate(-45deg);
  top: 20px;
}

/* ── TWO-COLUMN LAYOUT (PRESERVE TEXT) ────────────────────── */
.focus-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.columns {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.columns .left-col {
  flex: 0 0 340px;
}

.columns .right-col {
  flex: 1;
  min-width: 0;
}

.notice {
  background: #FCFAFE;
  padding: 1.8rem 1.5rem;
  border-radius: 28px;
  border: 1px solid rgba(139, 95, 191, 0.2);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  line-height: 1.5;
  color: #1e2a3a;
}

.notice p {
  margin-bottom: 1.2rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

/* ── REVISED CARDS LAYOUT (GRID, MODERN, RESPONSIVE) ──────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.album-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(139, 95, 191, 0.12);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.album-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(139, 95, 191, 0.3);
}

.album-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.thumbnail {
  display: block;
  width: 100%;
  background: #f0edf5;
  overflow: hidden;
  position: relative;
}

.thumbnail img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album-card:hover .thumbnail img {
  transform: scale(1.02);
}

.album-content {
  padding: 1.4rem 1.3rem 1.6rem;
  background: white;
  flex: 1;
}

.album-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  letter-spacing: -0.2px;
  color: #181c2c;
}

.album-content .Summary {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.4;
  opacity: 0.8;
}

/* responsive left column stack on mobile */
@media screen and (max-width: 780px) {
  .columns {
    flex-direction: column;
  }
  .columns .left-col {
    flex: auto;
    width: 100%;
  }
  .notice {
    margin-bottom: 1rem;
  }
  .cards {
    gap: 1.5rem;
  }
}

/* large screen finesse */
@media screen and (min-width: 1200px) {
  .cards {
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 1600px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .thumbnail img {
    height: 240px;
  }
}

/* small adjustments for sidebar toggled on mobile */
@media screen and (max-width: 640px) {
  #wrapper.toggled {
    padding-left: 220px;
  }
  #wrapper.toggled #sidebar-wrapper {
    width: 220px;
  }
  .sidebar-nav {
    width: 220px;
  }
}

/* remove default outline, but keep accessibility */
.hamburger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* simple scrollbar for sidebar */
#sidebar-wrapper::-webkit-scrollbar {
  width: 4px;
}
#sidebar-wrapper::-webkit-scrollbar-track {
  background: #1e2530;
}
#sidebar-wrapper::-webkit-scrollbar-thumb {
  background: #8B5FBF;
  border-radius: 10px;
}

/* additional micro-interaction */
.album-card a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}
