@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ========= Reset ========= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========= Base ========= */
body {
  background: #0e0f13;
  color: #e6e7eb;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  line-height: 1.75;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========= Header ========= */
header {
  padding: 70px 20px 40px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #0e0f13;
  position: relative;
}

.name {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 25px;
  font-family: 'Playfair Display', serif;
  color: #ffffff;
  letter-spacing: -0.5px;
}

#status-badge {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #c9ccd6;
  background: rgba(255,255,255,0.06);
  padding: 6px 10px;
  border-radius: 999px;
}

#status-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: gray;
}

.status-online .dot { background: #34d399; }
.status-busy .dot { background: #f87171; }
.status-away .dot { background: #facc15; }

/* ========= Navigation ========= */
.nav-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-item {
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #9aa0b3;
  transition: all 0.25s ease;
}

.nav-item:hover {
  color: #ffffff;
  background-color: rgba(255,255,255,0.08);
}

.nav-item.active {
  color: #ffffff;
  background: #1f2129;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* ========= Main Layout ========= */
main {
  display: flex;
  justify-content: center;
  padding: 70px 20px;
  min-height: calc(100vh - 200px);
}

/* ========= About / Index / Shared ========= */
.about {
  max-width: 1100px;
  width: 100%;
}

.about h1,
.about h2,
.music h2,
.gallery-section h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: #ffffff;
}

.about p,
.gallery-section > p {
  margin-bottom: 22px;
  color: #cfd2dc;
  font-size: 1rem;
}

.about .soft {
  opacity: 0.65;
  font-style: italic;
  color: #9aa0b3;
}
/* ================= FILTER CONTAINER ================= */

.filter-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}

/* 2 filters per row */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 24px;
}

/* hidden extra filters */
.extra-filters {
  display: none;
}

/* ================= FILTER GROUPS ================= */

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-group label {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: #9aa0b3;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: rgba(255,255,255,0.4);
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

.filter-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #0e0f13;
}

.filter-note {
  font-size: 0.8rem;
  color: #9aa0b3;
  font-style: italic;
}

/* ================= EXPAND BUTTON ================= */

.expand-filters-btn {
  position: absolute;
  bottom: 18px;
  right: 18px;

  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}


.expand-filters-btn:hover {
  background: #ffffff;
  color: #0e0f13;
}

/* Lightbox overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85); /* dark semi-transparent overlay */
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-content {
    background: #0e0f13; /* dark gallery background */
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 12px;
    padding: 4px 8px;
    transition: all 0.2s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-inner {
    display: flex;
    gap: 20px;
    max-height: 80vh;
    align-items: flex-start; /* so text starts at top of image */
    overflow: hidden;
}

.lightbox-inner img {
    max-width: 60%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
}

.lightbox-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px; /* space between date and description */
    color: #cfd2dc;
    font-size: 1rem;
    font-weight: 500;
    max-width: 35%;
    text-align: right;
    padding: 5px 10px;
}

/* ================= ANIMATIONS ================= */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= MOBILE ================= */

@media (max-width: 700px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}


/* ========= Galleries ========= */


.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.gallery-item {
  background: #14161c;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 22px;
  background: #0e0f13;
}

.gallery-item-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0e0f13;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item-info {
  padding: 20px;
  background: #14161c;
  flex-grow: 1;
  text-align: center;
}

.gallery-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffffff;
}

.art-date,
.video-date {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 6px;
  color: #9aa0b3;
}

.gallery-item p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
  color: #9aa0b3;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #9aa0b3;
  font-style: italic;
}

/* ========= Blur / Content Warning ========= */
.gallery-item.blur img,
.gallery-item.blur .gallery-item-video {
  filter: blur(10px);
}

.blur-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,15,19,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
  z-index: 5;
}

.blur-overlay span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 12px 18px;
  border-radius: 10px;
}

/* ========= Music ========= */
.music {
  width: 100%;
  max-width: 700px;
}

.track {
  background: #14161c;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.25s ease;
}

.track:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.track-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.track-number {
  font-family: monospace;
  font-size: 0.85rem;
  opacity: 0.6;
  margin-right: 8px;
}

.track-note {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 12px;
  font-style: italic;
}

audio {
  width: 100%;
}

/* ===== Writings Layout ===== */

.writings-container{
display:grid;
grid-template-columns:260px 1fr;
gap:40px;
}

/* ===== Book Grid ===== */

.writings-list{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
gap:22px;
}

/* ===== Book Item ===== */

.writing-item{
display:flex;
flex-direction:column;
align-items:center;
cursor:pointer;
transition:transform 0.2s ease;
}

.writing-item:hover{
transform:translateY(-6px);
}

/* ===== Book Cover ===== */

.writing-cover-thumb{
width:100%;
aspect-ratio:2 / 3;
object-fit:cover;
border-radius:12px;
box-shadow:0 12px 28px rgba(0,0,0,0.65);
}

/* ===== Book Title ===== */

.writing-title-thumb{
text-align:center;
font-size:0.9rem;
font-weight:600;
color:#e6e7eb;
margin-top:8px;
}

/* ===== Version Buttons ===== */

.version-list{
display:flex;
flex-direction:column;
gap:10px;
margin-top:20px;
}

.version-list button{
background:#14161c;
border:1px solid rgba(255,255,255,0.08);
padding:10px;
border-radius:10px;
cursor:pointer;
color:white;
text-align:left;
transition:all 0.2s ease;
}

.version-list button:hover{
background:#1f2129;
}

/* ===== Writing Content ===== */

.writing-content{
white-space:pre-wrap;
font-family:monospace;
margin-top:20px;
line-height:1.6;
}

/* ===== Responsive ===== */

@media (max-width:900px){

.writings-container{
grid-template-columns:1fr;
gap:35px;
}

.writings-list{
grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
}

}

@media (max-width:480px){

.name{
font-size:2.4rem;
}

.about h1,
.about h2,
.music h2,
.gallery-section h1{
font-size:1.9rem;
}

.writing-content{
font-size:1.05rem;
}

}

/* ========= Gallery Video Fix ========= */
.gallery-item-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Make iframe + video fill correctly */
.gallery-item-video iframe,
.gallery-item-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}

/* Subtle cinematic hover zoom (optional) */
.gallery-item:hover .gallery-item-video iframe,
.gallery-item:hover .gallery-item-video video {
  transform: scale(1.03);
  transition: transform 0.35s ease;
}

/* Remove padding + weird scaling from videos */
.gallery-item img {
  object-fit: contain;
}

.gallery-item-video {
  padding: 0;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #9aa4ff;
    opacity: 0.8;
}

.site-footer p {
    margin: 0;
}
