/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Questrial&family=Sora:wght@400;500;600&display=swap');

body {
  font-family: "Questrial", sans-serif;
  font-weight: 400;
  background-color: #fff;
  color: #1a1a1a;
  font-size: 0.7rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Always center logo/navigation in viewport, all screen sizes */
.centered-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 400px;
  width: 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
  margin: 0 auto;
}

.centered-content {
  max-width: 400px;
  width: 100%;
  align-items: center;
  gap: 0.7rem;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo {
  max-width: 180px;
  height: auto;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.logo-blur {
  filter: blur(2px) brightness(1.1);
  opacity: 0.7;
  transition: filter 0.2s, opacity 0.2s;
  display: inline-block;
}

.more-info {
  font-size: 2rem;
  color: #888;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: none;
  border: none;
  padding: 0.25rem;
  margin: 0 1rem 0.2rem 1rem;
  line-height: 1;
  width: 4rem;
  display: inline-block;
  text-align: center;
}

.more-info:hover {
  color: #1a1a1a;
}

/* Content Wrapper */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-top: 4rem;
  margin-top: 40px;
}

/* Navigation */
.categories {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: bold;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  margin-bottom: 3rem;
  margin-top: 1rem;
  max-width: 400px;
  width: 100%;
  gap: 0.2rem;
}

.category {
  cursor: pointer;
  position: relative;
  padding-bottom: 0.5rem;
  min-width: 120px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  color: #666;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.category:not(.active):hover {
  filter: blur(3px);
}

.category.active {
  filter: none;
  color: #1a1a1a;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  padding-bottom: calc(0.5rem - 1px);
}

/* Sections Container */
.sections-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  padding: 0 2rem;
}

/* Content Sections */
.section {
  display: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-20px);
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), max-height 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.section.active {
  display: block;
  opacity: 1;
  max-height: 2000px;
  transform: translateY(0);
}

/* Items List */
.items-list {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: all 0.3s ease;
}

.item-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.item-title, .item-date, .item-venue, .item-artists, .item-artist {
  transition: all 0.3s ease;
  font-size: 0.6rem;
}

.item:hover .item-content {
  filter: blur(1px);
}

/* Remove hover effects when detail is active */
.item .detail-view.active ~ .item-content,
.item .detail-view.active ~ .item-content:hover {
  filter: none;
  letter-spacing: normal;
}

.item-date {
  min-width: 80px;
  color: #666;
  font-weight: 400;
}

/* Detail View */
.detail-view {
  display: none;
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid #eee;
  font-size: 0.55rem;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-view.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.detail-header h2 {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.detail-image {
  width: 100%;
  height: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-info p {
  font-size: 0.6rem;
  line-height: 1.6;
  font-weight: 400;
}

.detail-description {
  margin: 1rem 0;
  font-size: 0.6rem;
  line-height: 1.6;
  color: #444;
  font-weight: 400;
  font-style: italic;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1002;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.2);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 2rem 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;
  font-size: 0.55rem;
  max-width: 400px;
  width: 90%;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.close-btn:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .sections-container {
    padding: 0 1rem;
  }

  .section {
    width: 100%;
  }

  .categories {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .categories {
    gap: 1.5rem;
    font-size: 0.8rem;
    padding: 0;
  }
  
  .sections-container {
    padding: 0;
  }
  
  .detail-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .item-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .item-title,
  .item-date,
  .item-venue,
  .item-artists,
  .item-artist {
    min-width: auto;
    font-size: 0.6rem;
    white-space: nowrap;
    text-align: left;
  }
}

@media (max-width: 600px) {
  body {
    padding: 0.2rem;
    font-size: 0.75rem;
  }
  .logo {
    max-width: 120px;
  }
  .more-info {
    font-size: 1.6rem;
  }
  .categories {
    font-size: 0.8rem;
  }
  .centered-content-wrapper {
    /* No min-height/height */
  }
  .centered-content {
    /* No override, keep centering */
  }
  .content-wrapper {
    margin-top: 24px;
    max-width: 400px;
    width: 90vw;
    padding: 0;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: auto;
  }
  .section {
    max-width: 100vw;
    padding: 0;
  }
  .items-list {
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .item {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    width: 100%;
    max-width: 380px;
  }
  .item-content {
    gap: 0.2rem;
    font-size: 0.85rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
    text-align: left;
  }
  .item-title, .item-date, .item-venue, .item-artists, .item-artist {
    min-width: auto;
    font-size: 0.6rem;
    white-space: normal;
    text-align: left;
    word-break: break-word;
  }
  .detail-content {
    gap: 0.5rem;
    padding: 0;
  }
  .detail-image,
  .bandcamp-embed,
  .video-embeds iframe {
    width: 70% !important;
    max-width: 220px !important;
    height: auto;
    margin: 0 auto;
    display: block;
  }
  .detail-info {
    text-align: center;
  }
  .detail-view {
    padding: 0.5rem 0.1rem;
    font-size: 0.75rem;
  }
  .modal-content {
    padding: 0.5rem 0.2rem;
    font-size: 0.8rem;
    max-width: 99vw;
  }
  .video-embeds {
    gap: 0.2rem;
  }
  #label .bandcamp-embed,
  #shows .detail-info {
    display: none;
  }
  .detail-header {
    gap: 0.2rem;
    padding-bottom: 0.2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .detail-description {
    text-align: left;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Label Detail View Mobile Layout */
  #label .detail-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  #label .detail-content > div:first-child,
  #label .detail-info {
    display: contents;
  }
  #label .detail-description {
    order: 1;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
  }
  #label .detail-image {
    order: 2;
  }
  #label .bandcamp-embed {
    order: 3;
  }
  #label .video-embeds {
    display: none;
  }
}

/* Minimal YouTube video embeds for details panel */
.video-embeds {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.video-embeds iframe {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: #000;
  border: none;
}
@media (max-width: 700px) {
  .video-embeds {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Blur and darken everything except modal when modal is open */
.site-blur.blur-active {
  filter: blur(6px) grayscale(0.2) brightness(0.7);
  transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.modal-overlay[style*="display: flex"] {
  background: rgba(0,0,0,0.5);
} 

/* --- Two container layout additions --- */
/* --- Adjusted top-container to be visually lower, not fixed --- */
.top-container {
  position: static;
  width: 100%; /* use 100% instead of 100vw to avoid overflow */
  z-index: 100;
  background: #fff;
  padding-top: 2rem;
  padding-bottom: 1rem;
  display: flex;
  justify-content: center;
  margin-top: 5vh;
}

.bottom-container {
  position: relative;
  width: 100%; /* ensure full width */
  margin-top: 2rem;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center; /* center the content horizontally */
}

.content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* padding-top and margin-top already set to 0 above */
}

.sections-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .top-container {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    margin-top: 5vh;
  }
  .bottom-container {
    margin-top: 1rem;
  }
}

/* --- Fit main area to viewport height and remove top-container border --- */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  min-height: 0; /* remove min-height: 100vh */
}

main {
  flex: 1 1 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 6vh; /* reduced from 10vh */
}

.top-container {
  position: static;
  width: 100%;
  z-index: 100;
  background: #fff;
  padding-top: 1rem; /* reduced from 2rem */
  padding-bottom: 0.5rem; /* reduced from 1rem */
  display: flex;
  justify-content: center;
}

.bottom-container {
  position: relative;
  width: 100%;
  /* margin-top removed */
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Remove top padding from .content-wrapper since .bottom-container handles spacing */
.content-wrapper {
  padding-top: 0;
  margin-top: 0;
} 
