/* ==========================================
   MAJOR MYJAH — ARTIST OPERATING SYSTEM
   Design Language: Nocturnal R&B meets Cinematic Luxury
   Blue, violet, teal, warm cream
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
  /* Core Palette — Major Myjah */
  --accent-blue: #4A9BD9;
  --accent-violet: #8B6CC7;
  --charcoal: #1A1625;
  --deep-space: #14111C;
  --surface-deep: #0C0A10;
  --accent-teal: #5EC4D4;
  --steel-cold: #4A7B8E;
  --gold: #D9A04A;
  --cream: #FAF0E6;

  /* Gradient */
  --gradient-start: #4A9BD9;
  --gradient-end: #8B6CC7;

  /* Surfaces */
  --bg-primary: #0C0A10;
  --bg-secondary: #14111C;
  --bg-card: #1A1625;
  --bg-card-hover: #221E2A;
  --bg-sidebar: #0F0D14;
  --bg-input: #151220;

  /* Text */
  --text-primary: #E8DFD6;
  --text-secondary: #8A8698;
  --text-muted: #5F5A66;
  --text-accent: #8B6CC7;
  --text-bright: #FAF0E6;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(74, 155, 217, 0.3);

  /* Glows */
  --glow-rose: rgba(74, 155, 217, 0.15);
  --glow-bronze: rgba(139, 108, 199, 0.1);

  /* Typography */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --sidebar-width: 260px;
  --sidebar-collapsed: 0px;
  --section-gap: 4rem;
  --card-radius: 12px;
  --card-padding: 1.5rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-medium: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition-smooth);
}

.main-content {
  margin-left: var(--sidebar-width);
  padding: 2rem 3rem 4rem;
  max-width: 1200px;
  transition: margin-left var(--transition-smooth);
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.02em;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 2px;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 4px;
}

.sidebar-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: var(--transition-fast);
}

.search-container {
  padding: 1rem 1.25rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.25rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--border-accent); }

.search-icon {
  position: absolute;
  left: 1.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.artist-selector {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.current-artist {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.current-artist:hover { background: var(--bg-card-hover); }

.artist-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.artist-info { display: flex; flex-direction: column; }

.artist-name-small {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-bright);
  letter-spacing: 0.02em;
}

.project-name-small {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-sans);
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0;
  overflow-y: auto;
}

.sidebar-nav ul { list-style: none; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.nav-link:hover svg { opacity: 0.9; }

.nav-link.active {
  color: var(--accent-blue);
  border-left-color: var(--accent-blue);
  background: rgba(74, 155, 217, 0.05);
}

.nav-link.active svg {
  opacity: 1;
  color: var(--accent-blue);
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 6px rgba(74, 155, 217, 0.5);
}

.version {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.section {
  padding-bottom: var(--section-gap);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--section-gap);
}

.section:last-child { border-bottom: none; }

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

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.hero {
  position: relative;
  padding: 3rem 0;
  margin-bottom: 3rem;
}

.hero-with-bg {
  padding: 4rem 2.5rem;
  border-radius: var(--card-radius);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: 140% auto;
  background-position: 0% 15%;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 10, 16, 0.95) 0%,
    rgba(12, 10, 16, 0.75) 40%,
    rgba(12, 10, 16, 0.35) 70%,
    rgba(12, 10, 16, 0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.artist-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 300;
  color: var(--text-bright);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.album-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--accent-blue);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.album-thesis {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.7;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--glow-rose) 0%, transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.meta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  transition: all var(--transition-medium);
}

.meta-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.meta-card-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.meta-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.meta-card-body {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
}

.status-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.status-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet));
  border-radius: 2px;
  transition: width 1s ease;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.35rem 0.85rem;
  background: rgba(74, 155, 217, 0.08);
  border: 1px solid rgba(74, 155, 217, 0.15);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--accent-blue);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: rgba(74, 155, 217, 0.15);
  border-color: rgba(74, 155, 217, 0.3);
}

.subsection-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-bright);
  letter-spacing: 0.02em;
}

.themes-section { margin-bottom: 2.5rem; }
.themes-section .subsection-title { margin-bottom: 1rem; }

.collapsible-section { margin-bottom: 1.5rem; }

.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.collapsible-header:hover { color: var(--accent-blue); }

.chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-medium);
  flex-shrink: 0;
}

.collapsible-section.open .chevron { transform: rotate(180deg); }

.collapsible-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-smooth);
  padding: 0;
}

.collapsible-section.open .collapsible-body {
  max-height: 2000px;
  padding: 1.25rem 0;
}

.collapsible-body p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.collaborator-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.collaborator-chip {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  min-width: 140px;
}

.collab-role {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.collab-name {
  font-size: 0.9rem;
  color: var(--text-bright);
  font-weight: 500;
}

.collab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.collab-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-medium);
}

.collab-table td {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.collab-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.table-status {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(74, 155, 217, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(74, 155, 217, 0.3); }

::selection {
  background: rgba(74, 155, 217, 0.3);
  color: var(--text-bright);
}

hr, .divider {
  border: none;
  height: 2px;
  background: var(--accent-blue);
  opacity: 0.3;
}

@media (max-width: 1024px) {
  .main-content { padding: 1.5rem 2rem 3rem; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle {
    display: flex;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px;
  }
  .main-content {
    margin-left: 0;
    padding: 4rem 1.25rem 3rem;
  }
  .meta-grid { grid-template-columns: 1fr; }
  .artist-name { font-size: 2.5rem; }
  .album-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .main-content { padding: 3.5rem 1rem 2rem; }
  .hero { padding: 2rem 0; }
}
