/* ============================================
   BASE STYLES - Theme-Agnostic Structure
   Layout, Structure, and Component Organization
   ============================================ */

/* ============================================
   CSS RESET & BASE
   ============================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  text-align: center;
  transition: none;
}

/* ============================================
   HEADER & NAVIGATION STRUCTURE
   ============================================ */

.site-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(0);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.site-header.header-peek {
  transform: translateY(0);
}

.header-peek-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 8px;
  border-radius: 0 0 12px 12px;
  z-index: 1001;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.header-peek-indicator:hover {
  opacity: 1;
  height: 12px;
  width: 80px;
}

.header-peek-indicator.active {
  opacity: 1;
}

/* Hide peek indicator on mobile */
@media (max-width: 768px) {
  .header-peek-indicator {
    display: none;
  }
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.3rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 1.2rem;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.5s;
}

.nav-link:hover::before {
  left: 100%;
}

/* ============================================
   HAMBURGER MENU STRUCTURE
   ============================================ */

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
  margin-left: auto;
  margin-right: 1rem;
}

.hamburger-menu::before,
.hamburger-menu::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: all 0.4s ease;
  z-index: -1;
}

.hamburger-menu::before {
  z-index: -1;
  opacity: 0;
}

.hamburger-menu::after {
  z-index: -2;
  opacity: 0;
}

@media (max-width: 768px) {
  .hamburger-menu::before,
  .hamburger-menu::after {
    opacity: 1;
  }
}

.hamburger-line {
  width: 100%;
  height: 3px;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
  position: relative;
  overflow: hidden;
}

.hamburger-line::before,
.hamburger-line::after {
  content: '';
  position: absolute;
}

.hamburger-line::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
}

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

@media (max-width: 768px) {
  .site-header {
    padding: 0.5rem 0;
    min-height: 70px;
    height: 70px;
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .site-header.menu-open {
    height: auto;
    min-height: calc(70px + 260px);
  }
  
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    min-height: 60px;
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  .top-nav {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 0 0 12px 12px;
    transform: translateY(-260px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    z-index: 999;
    height: 260px;
    overflow-y: auto;
    margin-top: -260px;
  }
  
  .top-nav.active {
    transform: translateY(0);
    margin-top: 0;
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
    box-sizing: border-box;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
}

@media (min-width: 769px) {
  .hamburger-menu {
    display: none;
  }
  
  .top-nav {
    display: flex !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    flex-direction: row !important;
    gap: 0.8rem !important;
    padding: 0.5rem 2rem !important;
  }
  
  .nav-link {
    border-radius: 8px !important;
    padding: 0.3rem 1.2rem !important;
    border: 2px solid transparent !important;
    font-size: 0.85rem !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}

/* ============================================
   TYPOGRAPHY STRUCTURE
   ============================================ */

header {
  padding: 2rem;
}

h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
}

.xalpheria-title {
  font-size: 2.5rem;
  margin: 1rem 0 0.5rem 0;
  display: inline-block;
  position: relative;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.xalpheria-title .char {
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
}

.xalpheria-title .char.space {
  background: none;
  color: transparent;
  width: 0.3em;
}

@media (max-width: 768px) {
  .xalpheria-title {
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    margin: 1.5rem 0 0.5rem 0;
  }
}

@media (max-width: 480px) {
  .xalpheria-title {
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    margin: 1rem 0 0.5rem 0;
  }
}

p {
  font-size: 1rem;
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */

.logo {
  height: 100px;
}

.cover-art {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cover-art:hover {
  transform: scale(1.02);
}

/* Audio Player Structure */
audio {
  width: 100%;
  max-width: 350px;
  margin: 1rem auto;
  border-radius: 8px;
  padding: 0.5rem;
  transition: all 0.3s ease;
  display: block;
}

audio[data-custom-player] {
  display: none;
}

/* Footer Structure */
footer {
  margin-top: auto;
  padding: 2rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.coffee-link, .email-link {
  display: inline-block;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.coffee-link:hover, .email-link:hover {
  transform: scale(1.1);
}

.coffee-icon, .email-icon {
  width: 64px;
  height: 64px;
  transition: filter 0.3s ease;
  display: block;
  margin: 0 auto;
}

.coffee-text, .email-text {
  font-size: 0.9rem;
  margin: 0.5rem 0 0 0;
  transition: color 0.3s ease;
}

/* ============================================
   RADIO PLAYER STRUCTURE
   ============================================ */

.xalpheric-radio-player {
  position: fixed;
  top: 70px;
  right: 20px;
  width: 300px;
  max-width: calc(100vw - 40px);
  border-radius: 12px;
  transition: all 0.3s ease;
  z-index: 9998;
  user-select: none;
}

.xalpheric-radio-player.collapsed {
  width: 70px;
  overflow: hidden;
}

.radio-drag-handle {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 30px;
  border-radius: 3px;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  user-select: none;
  touch-action: none;
  z-index: 10;
  transition: all 0.2s ease;
}

.radio-drag-handle:active {
  cursor: grabbing;
}

.xalpheric-radio-player.collapsed .radio-drag-handle {
  top: 2px;
  right: 2px;
  width: 15px;
  height: 20px;
  font-size: 10px;
}

.radio-controls {
  padding: 8px;
}

.radio-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.radio-toggle-btn {
  background: transparent;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  padding: 2px;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
  overflow: hidden;
}

.xalpheric-radio-player.collapsed .radio-toggle-btn {
  width: 60px;
  height: 60px;
}

.radio-album-cover {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
}

.xalpheric-radio-player.collapsed .radio-album-cover {
  border-radius: 8px;
}

.radio-info {
  flex: 1;
  min-width: 0;
  margin-right: 8px;
}

.radio-track-title {
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.radio-track-artist {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.radio-progress-mini {
  margin-top: 2px;
}

.progress-mini-bar {
  height: 2px;
  border-radius: 1px;
  overflow: hidden;
}

.progress-mini-fill {
  height: 100%;
  border-radius: 1px;
  width: 0%;
  transition: width 0.1s ease;
}

.radio-playback {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.radio-prev-btn,
.radio-play-pause-btn,
.radio-next-btn {
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.radio-playlist-toggle {
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.radio-playlist {
  margin-top: 8px;
  padding-top: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.playlist-header h3 {
  font-size: 12px;
  margin: 0;
}

.playlist-close {
  border-radius: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.playlist-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.playlist-cover {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  object-fit: cover;
}

.playlist-info {
  flex: 1;
  min-width: 0;
}

.playlist-title {
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.playlist-artist {
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.playlist-play-btn {
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

/* ============================================
   LIGHTBOX/MODAL STRUCTURE
   ============================================ */

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.lightbox-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 900px;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

#lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.lightbox-caption {
  font-size: 1.2rem;
  margin-top: 1rem;
  text-align: center;
}

.lightbox-description {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.lightbox-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.lightbox-prev, 
.lightbox-next {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.no-images {
  grid-column: 1 / -1;
  text-align: center;
  font-style: italic;
  padding: 2rem;
}

/* ============================================
   GRID SYSTEMS
   ============================================ */

.release-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

.release-viewer {
  padding: 1.5rem;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  margin-bottom: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.nav {
  display: inline-block;
  margin: 0.5rem 0.5rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

/* Containers */
.musings-container, .notes-container {
  padding: 2rem;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  margin: 2rem 0;
}

.musings-container ul,
.notes-container ul {
  list-style: none;
  padding-left: 0;
}

.musings-container li,
.notes-container li {
  margin-bottom: 1rem;
}

.links-container {
  padding: 2rem;
  border-radius: 16px;
  max-width: 800px;
  width: 90%;
  margin: 2rem 0;
}

.links-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.link-card {
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.link-card:hover {
  transform: translateY(-5px);
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.link-card:hover::before {
  transform: translateX(0);
}

.site-icon {
  transition: all 0.3s ease;
  border-radius: 4px;
}

/* Gallery Structure */
.gallery-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

/* ============================================
   FORMS & INPUTS STRUCTURE
   ============================================ */

/* Form Inputs */
.cyber-input,
.cyber-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  position: relative;
}

.cyber-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

/* Character Counter */
.character-count {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* Buttons */
.cyber-btn {
  padding: 0.8rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cyber-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cyber-btn.loading {
  pointer-events: none;
}

.cyber-btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* Status Messages */
.status-message {
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.status-icon {
  font-size: 1.5rem;
  min-width: 1.5rem;
}

.status-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-content p {
  margin: 0.5rem 0;
  line-height: 1.5;
}

.status-meta {
  font-size: 0.8rem;
  opacity: 0.8;
  font-family: monospace;
}

.status-details {
  font-size: 0.9rem;
  opacity: 0.9;
  font-style: italic;
}

/* Guestbook Structure */
.guestbook-archive {
  border-radius: 12px;
  padding: 2rem;
}

.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.archive-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.entries-info {
  font-size: 0.9rem;
}

.guestbook-entries {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guestbook-entry {
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.entry-identity {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.entry-name {
  font-weight: 600;
  font-size: 1rem;
}

.entry-name.website-link {
  text-decoration: none;
  transition: color 0.3s ease;
}

.entry-email {
  font-size: 0.8rem;
  font-family: monospace;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.entry-content {
  line-height: 1.6;
}

.entry-comment {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.load-more-btn {
  margin: 2rem auto 0;
  display: block;
}

/* Loading States */
.loading-container,
.error-container,
.no-entries-container {
  text-align: center;
  padding: 3rem 1rem;
}

.cyber-loader {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.loader-ring {
  display: block;
  position: absolute;
  width: 50px;
  height: 50px;
  margin: 6px;
  border-radius: 50%;
}

.loading-text {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.error-icon,
.no-entries-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* ============================================
   RELEASE LIGHTBOX STRUCTURE
   ============================================ */

.release-lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.release-lightbox-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  box-sizing: border-box;
  border-radius: 16px;
}

.release-lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10001;
}

.release-lightbox-album {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto 1.5rem auto;
  display: block;
}

.release-lightbox-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.release-lightbox-meta span {
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
}

.release-lightbox-description {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

/* ============================================
   BLOG MEDIA STRUCTURE
   ============================================ */

.blog-image-container {
  margin: 2rem 0;
  text-align: center;
}

.blog-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-image-caption {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.blog-video-container {
  margin: 2rem 0;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.blog-youtube-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.note-content h1,
.note-content h2,
.note-content h3,
.note-content h4,
.note-content h5,
.note-content h6 {
  margin: 2rem 0 1rem 0;
}

.note-content h1 {
  font-size: 2.2rem;
  padding-bottom: 0.5rem;
}

.note-content h2 {
  font-size: 1.8rem;
}

.note-content h3 {
  font-size: 1.4rem;
}

.note-content blockquote {
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.note-content code {
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

.note-content pre {
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.note-content pre code {
  background: none;
  border: none;
  padding: 0;
}

/* ============================================
   PROJECTS PAGE STRUCTURE
   ============================================ */

.projects-main {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 2rem 0;
}

.intro {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 8px;
  line-height: 1.8;
}

.projects-grid {
  margin: 3rem 0;
}

.project-category {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.project-card {
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.project-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-thumbnail {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.project-info {
  flex: 1;
  text-align: left;
}

.project-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
}

.project-meta {
  font-size: 0.9rem;
  margin: 0.3rem 0;
  font-family: 'Courier New', monospace;
}

.project-description {
  line-height: 1.6;
  margin: 0.5rem 0 0 0;
}

.project-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
}

.download-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.download-icon {
  font-size: 1.2rem;
}

.file-size {
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
}

.coming-soon {
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
}

.license-info {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  text-align: left;
}

.collection-info {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  text-align: left;
}

.collection-info a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Usage Guide Section */
.usage-guide {
  margin: 4rem 0;
  padding: 2rem;
  border-radius: 12px;
}

.usage-guide h2 {
  margin-bottom: 2rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.guide-card {
  border-radius: 8px;
  padding: 1.5rem;
  text-align: left;
}

.guide-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.guide-card ol,
.guide-card ul {
  line-height: 1.8;
  padding-left: 1.5rem;
}

.guide-card code {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

/* FAQ Section */
.faq {
  margin: 4rem 0;
  text-align: left;
}

.faq h2 {
  margin-bottom: 2rem;
  text-align: center;
}

.faq-item {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.faq-item h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.faq-item p {
  line-height: 1.8;
  margin: 0;
}

/* ============================================
   WHO WE BACK PAGE STRUCTURE
   ============================================ */

.who-we-back {
  border-radius: 10px;
  padding: 3rem 2rem;
  margin-top: 3rem;
}

.who-we-back h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-heading {
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
}

.soundcloud-player {
  border-radius: 10px;
  padding: 1rem;
}

.soundcloud-player iframe {
  border-radius: 6px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.partner-card {
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  text-align: left;
}

.partner-card.featured {
  /* Featured cards get enhanced styling in theme */
}

.partner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.partner-header h3 {
  font-size: 1.4rem;
  margin: 0;
}

.partner-type {
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.partner-description {
  line-height: 1.7;
}

.partner-description p {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
}

.venue-details, 
.services {
  font-size: 0.9rem;
  margin: 0.8rem 0;
  padding: 0.5rem;
  border-left: 3px solid currentColor;
  border-radius: 4px;
}

.partner-links {
  margin-top: 1rem;
  padding-top: 1rem;
}

.partner-links a {
  text-decoration: none;
  margin-right: 1rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.who-we-back-footer {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.who-we-back-footer p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
}

/* ============================================
   COLLECTIVE PAGE STRUCTURE
   ============================================ */

.collective-section {
  margin-bottom: 4rem;
}

.collective-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.releases-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.release-card,
.video-card {
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.release-artwork {
  margin-bottom: 1rem;
}

.placeholder-artwork {
  aspect-ratio: 1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.release-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.release-meta,
.video-meta {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.events-timeline {
  margin-top: 2rem;
}

.event-entry {
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.event-header h3 {
  font-size: 1.8rem;
  margin: 0;
}

.event-date {
  font-size: 1rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.photo-grid img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.photo-placeholder {
  aspect-ratio: 4/3;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: all 0.3s ease;
}

.event-description {
  margin-top: 1.5rem;
  line-height: 1.6;
}

.video-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.video-info {
  padding: 1.5rem;
}

.video-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.video-description {
  line-height: 1.6;
  font-size: 0.95rem;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.member-card {
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.member-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.member-video {
  margin: 0 auto 1rem;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

.member-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
}

.member-video img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

.member-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.member-role {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.member-bio {
  line-height: 1.6;
  font-size: 0.95rem;
}

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

/* Desktop: Radio player draggable in header area */
@media (min-width: 1025px) {
  .xalpheric-radio-player {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 300px;
    max-width: 300px;
  }
  
  .xalpheric-radio-player.collapsed {
    width: 70px;
    max-width: 70px;
  }
}

/* Tablet: Fixed bottom positioning */
@media (max-width: 1024px) {
  .xalpheric-radio-player {
    position: fixed !important;
    top: auto !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    width: 250px;
    max-width: calc(100vw - 40px);
  }
  
  .xalpheric-radio-player.collapsed {
    width: 60px;
  }
}

@media (max-width: 768px) {
  .release-viewer {
    max-width: 350px;
    width: 95%;
    padding: 1rem;
  }
  
  audio {
    max-width: 300px;
  }
  
  .links-section {
    grid-template-columns: 1fr;
  }
  
  .link-card {
    padding: 1rem;
  }
  
  .gallery-container {
    padding: 0 1rem;
    margin: 1rem auto;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-image {
    height: 250px;
  }
  
  /* Lightbox responsive */
  .lightbox-content {
    width: 95%;
    padding: 15px;
    max-width: calc(100vw - 20px);
  }
  
  .lightbox-close {
    right: 20px;
    font-size: 30px;
  }
  
  .lightbox-nav {
    gap: 1rem;
  }
  
  /* Forms responsive */
  .guestbook-container {
    padding: 1rem;
  }
  
  .guestbook-form,
  .guestbook-archive {
    padding: 1.5rem;
  }
  
  .archive-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .entry-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cyber-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
  }
  
  /* Release lightbox responsive */
  .release-lightbox-content {
    width: 95%;
    padding: 15px;
    max-width: calc(100vw - 20px);
  }
  
  .release-lightbox-close {
    right: 15px;
    font-size: 24px;
  }
  
  .release-lightbox-album {
    max-height: 300px;
  }
  
  .release-lightbox-info h3 {
    font-size: 1.4rem;
  }
  
  .release-lightbox-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  /* Blog media responsive */
  .blog-image-container,
  .blog-video-container {
    margin: 1.5rem 0;
  }
  
  .note-content h1 {
    font-size: 1.8rem;
  }
  
  .note-content h2 {
    font-size: 1.5rem;
  }
  
  /* Projects responsive */
  .project-header {
    flex-direction: column;
  }
  
  .project-thumbnail {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin: 0 auto;
  }
  
  .project-info {
    text-align: center;
  }
  
  .project-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .download-btn {
    justify-content: center;
  }
  
  .guide-grid {
    grid-template-columns: 1fr;
  }
  
  .category-title {
    justify-content: center;
    text-align: center;
  }
  
  /* Who We Back page responsive */
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .partner-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .partner-type {
    align-self: flex-start;
  }
  
  .who-we-back h2 {
    font-size: 2rem;
  }
  
  .who-we-back-footer p {
    font-size: 1rem;
  }
  
  /* Collective page responsive */
  .collective-section h2 {
    font-size: 1.6rem;
  }
  
  .releases-grid,
  .video-grid,
  .members-grid {
    grid-template-columns: 1fr;
  }
  
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .event-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .release-viewer {
    max-width: 320px;
    width: 98%;
    padding: 0.8rem;
  }
  
  audio {
    max-width: 280px;
  }
  
  .carousel-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .nav {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .gallery-container {
    padding: 0 0.5rem;
    margin: 0.5rem auto;
  }
  
  .gallery-grid {
    gap: 1rem;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  /* Release lightbox mobile */
  .release-lightbox-content {
    width: 98%;
    padding: 10px;
  }
  
  .release-lightbox-album {
    max-height: 250px;
  }
  
  .release-lightbox-info h3 {
    font-size: 1.2rem;
  }
  
  .release-lightbox-description {
    font-size: 0.9rem;
  }
  
  /* Blog media mobile */
  .blog-image-container,
  .blog-video-container {
    margin: 1rem 0;
  }
  
  .note-content h1 {
    font-size: 1.6rem;
  }
  
  /* Radio player mobile adjustments */
  .xalpheric-radio-player {
    width: 200px !important;
    max-width: calc(100vw - 40px) !important;
  }
  
  .xalpheric-radio-player.collapsed {
    width: 55px !important;
  }
  
  .xalpheric-radio-player.collapsed .radio-toggle-btn {
    width: 45px !important;
    height: 45px !important;
  }
}

@media (max-width: 360px) {
  .gallery-container {
    padding: 0 0.25rem;
  }
  
  .gallery-grid {
    gap: 0.5rem;
  }
  
  .gallery-image {
    height: 180px;
  }
}
