/* Dark Minimal Theme - Harumakigohan-inspired */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --text-primary: #e8e8e8;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #ffffff;
  --accent-hover: rgba(255, 255, 255, 0.1);
  --border-color: #222222;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation */
nav.minimal-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.8) 100%);
  backdrop-filter: blur(10px);
}

nav.minimal-nav .nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav.minimal-nav .logo {
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 400;
}

nav.minimal-nav .logo span {
  font-weight: 300;
  opacity: 0.6;
  margin-left: 0.5rem;
  letter-spacing: 0.1em;
}

nav.minimal-nav .nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border-color);
}

nav.minimal-nav .nav-links {
  display: flex;
  gap: 2.5rem;
}

nav.minimal-nav .nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

nav.minimal-nav .nav-links a:hover {
  color: var(--text-primary);
}

nav.minimal-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

nav.minimal-nav .nav-right a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

nav.minimal-nav .nav-right a:hover {
  color: var(--text-primary);
}

/* Page Header (for non-index pages) */
.page-header {
  padding-top: 100px;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Breadcrumb */
.minimal-breadcrumb {
  padding-top: 100px;
  padding-bottom: 1rem;
}

.minimal-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.minimal-breadcrumb a:hover {
  color: var(--text-primary);
}

.minimal-breadcrumb span {
  color: var(--text-muted);
  margin: 0 0.5rem;
}

.minimal-breadcrumb .current {
  color: var(--text-secondary);
}

/* Section Styles */
.minimal-section {
  padding: 4rem 3rem;
  max-width: 1600px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.section-title {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 400;
}

.section-link {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.section-link:hover {
  color: var(--text-primary);
}

/* Grid Layout */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Responsive grid for homepage: 3 columns or 1 column */
.works-grid.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .works-grid.home-grid {
    grid-template-columns: 1fr;
  }
}

/* Carousel Layout (horizontal scroll) */
.works-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  margin: 0 -3rem;
  padding-left: 3rem;
  padding-right: 3rem;
}

.works-carousel::-webkit-scrollbar {
  height: 6px;
}

.works-carousel::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

.works-carousel::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.works-carousel::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.works-carousel .work-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

/* Work Card */
.work-card {
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  overflow: hidden;
}

.work-card .thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: all 0.5s ease;
}

.work-card .thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2rem;
  transition: all 0.5s ease;
}

.work-card:hover .thumbnail,
.work-card:hover .thumbnail-placeholder {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.work-card .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: all 0.4s ease;
}

.work-card .play-btn i {
  font-size: 1.2rem;
  color: white;
  margin-left: 3px;
}

.work-card:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.work-card .play-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: white;
}

.work-info {
  position: absolute;
  bottom: 0;
  left: -1px;
  right: -1px;
  padding: 1.5rem;
  padding-bottom: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
  transform: translateY(2.5rem);
  transition: transform 0.4s ease;
}

.work-card:hover .work-info {
  transform: translateY(0);
}

.work-title {
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.work-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.work-card .actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
  flex-wrap: wrap;
}

.work-card:hover .actions {
  opacity: 1;
}

/* Action Buttons */
.action-btn {
  padding: 0.5rem 1rem;
  font-size: 0.65rem;
  font-family: inherit;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  line-height: 1.4;
}

.action-btn:hover {
  background: white;
  color: black;
}

/* Lyric Subtitle on cards - positioned at top */
.lyric-subtitle {
  position: absolute;
  top: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0.5rem 1rem;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

/* Badge for FLP */
.badge-flp {
  display: inline-block;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.4rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Footer */
footer.minimal-footer {
  padding: 4rem 3rem;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

.footer-content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Floating Audio Controls */
.floating-audio-controls {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(20,20,20,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.floating-audio-controls.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.audio-control-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
}

.audio-control-btn:hover {
  color: var(--text-primary);
}

.volume-slider-container {
  width: 100px;
}

.volume-slider {
  width: 100%;
  cursor: pointer;
}

/* Hide audio elements */
audio.project-audio {
  display: none;
}

/* File Explorer Styles */
.file-list {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.file-item:last-child {
  border-bottom: none;
}

.file-item:hover {
  background: rgba(255,255,255,0.02);
}

.file-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.file-item a:hover {
  color: white;
}

.file-item .file-icon {
  color: var(--text-muted);
  margin-right: 0.75rem;
}

.file-item audio {
  height: 32px;
  filter: invert(1) hue-rotate(180deg);
}

/* Pagination */
.minimal-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.minimal-pagination a,
.minimal-pagination span {
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.minimal-pagination a:hover {
  background: white;
  color: black;
  border-color: white;
}

.minimal-pagination .active {
  background: white;
  color: black;
  border-color: white;
}

.minimal-pagination .disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Modal Overrides */
.modal-content {
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

.modal-header {
  border-bottom-color: var(--border-color) !important;
}

.modal-footer {
  border-top-color: var(--border-color) !important;
}

.btn-close {
  filter: invert(1);
}

/* Form Elements */
input, select, textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  nav.minimal-nav {
    padding: 1rem 1.5rem;
  }

  nav.minimal-nav .nav-links {
    gap: 1.5rem;
  }

  .minimal-section {
    padding: 3rem 1.5rem;
  }

  .page-header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .minimal-breadcrumb {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .works-carousel {
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .works-carousel .work-card {
    flex: 0 0 240px;
  }

  .floating-audio-controls {
    bottom: 1rem;
  }

  footer.minimal-footer {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
