/* Artist Scout - Premium Design System (Rosy Brown Aesthetic) */

/* Fonts Import */
@font-face {
  font-family: 'Rosie Brown';
  src: url('rosie_brown.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Against';
  src: url('against.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  /* Design Tokens - Light Theme (Default) */
  --bg-color: #FAF8F5;
  /* Milky White / Soft Cream */
  --text-main: #000000;
  /* Pure Black */
  --text-muted: #000000;
  /* Pure Black (No Gray) */
  --border-color: #000000;
  /* Stark Black Border */
  --border-muted: #E2E2E6;
  /* Subtle Inner Border */
  --accent-color: #7C3AED;
  /* Bright Royal Purple */
  --accent-hover: #6D28D9;
  /* Darker Purple Accent */
  --accent-light: #F3EEF9;
  /* Soft Milky Lilac Highlight */
  --accent-bg-active: #C084FC;
  /* Highly vibrant electric purple for active buttons (high contrast with black text) */
  --panel-bg: #FFFFFF;
  /* Pure White Panels */
  --panel-hover: #FAF5F0;
  /* Milky Panel Hover */
  --accent-gradient: linear-gradient(135deg, #7C3AED 0%, #C084FC 100%);
  --accent-gradient-start: #7C3AED;
  --accent-gradient-end: #C084FC;
  --card-shadow: 0 4px 20px rgba(124, 58, 237, 0.05), 0 2px 6px rgba(124, 58, 237, 0.02);
  --font-sans: 'Against', sans-serif;
  --font-mono: 'Against', monospace;
  --font-heading: 'Rosie Brown', serif;
  --transition-speed: 0.3s;
  --transition-bezier: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] {
  /* Design Tokens - Dark Theme */
  --bg-color: #000000;
  /* Pure Pitch Black */
  --text-main: #FFFFFF;
  /* Pure Stark White */
  --text-muted: #FFFFFF;
  /* Pure Stark White (No Gray) */
  --border-color: #FFFFFF;
  /* Stark White Border */
  --border-muted: #222225;
  /* Darker Panel Border */
  --accent-color: #FFDD00;
  /* Vibrant Electric Yellow Accent */
  --accent-hover: #FFE600;
  /* Brighter Yellow Accent */
  --accent-light: #221F00;
  /* Dark Yellow Accent Glow */
  --accent-bg-active: #FFDD00;
  /* Vibrant Electric Yellow Accent */
  --panel-bg: #0C0C0D;
  /* Matte Dark-Charcoal Panels */
  --panel-hover: #121214;
  /* Panel Hover Highlight */
  --accent-gradient: linear-gradient(135deg, #FFDD00 0%, #FFB700 100%);
  --accent-gradient-start: #FFDD00;
  --accent-gradient-end: #FFB700;
  --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-speed) var(--transition-bezier),
    color var(--transition-speed) var(--transition-bezier);
  position: relative;
  letter-spacing: 0.02em;
}

/* Base Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: normal;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  line-height: 1.6;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-bezier);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Layout Framework - Hardgraft Minimalist Grid */
.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.border-bottom {
  border-bottom: 1px solid var(--border-color);
}

.border-top {
  border-top: 1px solid var(--border-color);
}

.border-left {
  border-left: 1px solid var(--border-color);
}

.border-right {
  border-right: 1px solid var(--border-color);
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none !important;
  cursor: pointer;
  color: inherit;
}

.logo-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: inline-block;
  transition: transform 0.4s var(--transition-bezier), filter 0.3s ease;
}

html[data-theme="dark"] .logo-icon {
  filter: brightness(1.2) drop-shadow(0 2px 10px rgba(220, 164, 130, 0.25));
}

html[data-theme="light"] .logo-icon {
  filter: sepia(1) saturate(6) hue-rotate(245deg) brightness(0.4) contrast(1.3) drop-shadow(0 2px 6px rgba(88, 28, 135, 0.15));
}

.logo-area:hover .logo-icon {
  transform: scale(1.08) rotate(-4deg);
}

.logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-artist {
  color: var(--accent-color);
}

.text-scout {
  color: var(--text-main);
}

.logo-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background-color: var(--accent-light);
  color: var(--accent-color);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  border: 1px solid var(--border-color);
}

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--transition-bezier);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--text-main);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  color: var(--text-main);
  transition: all var(--transition-speed) var(--transition-bezier);
}

.theme-btn:hover {
  border-color: var(--accent-color);
  background-color: var(--panel-hover);
  transform: translateY(-1px);
}

.theme-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

html[data-theme="dark"] .sun-icon {
  display: block;
}

html[data-theme="dark"] .moon-icon {
  display: none;
}

html[data-theme="light"] .sun-icon {
  display: none;
}

html[data-theme="light"] .moon-icon {
  display: block;
}

/* Main Content Area */
main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Section Grid Layout */
.section-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 992px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
}

.panel {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 640px) {
  .panel {
    padding: 1rem 1.5rem;
  }
}

/* Editorial Hero Header */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mono-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
}

.hero-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.hero-headline span {
  display: block;
}

.hero-headline em {
  font-style: italic;
  font-weight: 300;
  font-family: var(--font-sans);
  color: var(--accent-color);
}

.description-box {
  max-width: 550px;
  margin-bottom: 1.5rem;
}

.description-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-bezier);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--bg-color);
  border: 1px solid var(--text-main);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--text-main);
  background-color: var(--panel-hover);
  transform: translateY(-2px);
}

.btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  fill: none;
  stroke: currentColor;
}

/* Feature Showcase Grid (Hardgraft lookbook grid) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 2.5rem;
  background-color: var(--panel-bg);
  transition: all var(--transition-speed) var(--transition-bezier);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.feature-card:not(:last-child) {
  border-right: 1px solid var(--border-color);
}

@media (max-width: 640px) {
  .feature-card:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

.feature-card:hover {
  background-color: var(--panel-hover);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: block;
}

.feature-title {
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Mock Search Demo Panel */
.demo-panel {
  background-color: var(--panel-bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 500px;
}

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

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  /* Green */
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.demo-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Search Bar Component */
.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input-container {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-color);
  transition: all var(--transition-speed) var(--transition-bezier);
  overflow: hidden;
}

.search-input-container:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px var(--accent-color);
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.search-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 50;
  display: none;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.suggestion-item {
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s;
}

.suggestion-item:hover {
  background-color: var(--panel-hover);
}

.suggestion-name {
  font-weight: 600;
  color: var(--text-main);
}

.suggestion-genre {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-color);
  text-transform: uppercase;
}

/* Artist Card result (Hardgraft Product Detail Card style) */
.artist-result-card {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s var(--transition-bezier);
  display: none;
  /* Controlled by JS */
}

.artist-result-card.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.artist-profile-header {
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  border-bottom: 1px solid var(--border-muted);
  background-color: var(--panel-hover);
}

.artist-avatar-container {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.artist-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-info-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.artist-name {
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.artist-genres {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.genre-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background-color: var(--bg-color);
  color: var(--text-muted);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  border: 1px solid var(--border-muted);
  text-transform: uppercase;
}

/* Stats Details Grid */
.artist-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--border-muted);
}

.stat-box {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.stat-box:first-child {
  border-right: 1px solid var(--border-muted);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-growth {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #10b981;
  /* green */
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-growth.negative {
  color: #ef4444;
}

/* Chart Container */
.chart-panel {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-muted);
}

.chart-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
}

.chart-placeholder {
  height: 90px;
  width: 100%;
  position: relative;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-line {
  stroke: var(--accent-color);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawLine 2s forwards ease-in-out;
}

.chart-area {
  fill: url(#gradient-accent);
  opacity: 0.1;
  animation: fadeIn 1s 0.5s forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeIn {
  to {
    opacity: 0.15;
  }
}

/* Contact / Outreach Card Footer */
.outreach-box {
  padding: 1.5rem;
  background-color: var(--bg-color);
}

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

.contact-channel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-channel svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.contact-handle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-color);
}

.outreach-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.btn-outreach {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.5rem;
}

/* Empty Demo Placeholder State */
.demo-placeholder-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1.5rem;
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  transition: border-color 0.3s;
}

.demo-placeholder-state:hover {
  border-color: var(--accent-color);
}

.placeholder-icon {
  margin-bottom: 1.25rem;
  color: var(--border-color);
  transition: color 0.3s;
}

.demo-placeholder-state:hover .placeholder-icon {
  color: var(--accent-color);
}

.placeholder-icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.placeholder-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.placeholder-desc {
  font-size: 0.8rem;
  max-width: 280px;
  line-height: 1.5;
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--text-main);
  color: var(--bg-color);
  padding: 0.85rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 100;
  opacity: 0;
  transition: all 0.4s var(--transition-bezier);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-msg.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-msg svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Interactive Lookbook Gallery Section */
.lookbook-section {
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
  .lookbook-section {
    grid-template-columns: 1fr;
  }
}

.lookbook-item {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  transition: background-color var(--transition-speed) var(--transition-bezier);
}

.lookbook-item:not(:last-child) {
  border-right: 1px solid var(--border-color);
}

@media (max-width: 992px) {
  .lookbook-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

.lookbook-item:hover {
  background-color: var(--panel-hover);
}

.lookbook-item-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lookbook-art-placeholder {
  width: 100%;
  height: 150px;
  background-color: var(--accent-light);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lookbook-art-svg {
  width: 80%;
  height: 80%;
  opacity: 0.45;
  color: var(--accent-color);
}

.lookbook-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lookbook-item-title {
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--text-main);
}

.lookbook-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-color);
  padding: 3rem 2rem;
  width: 100%;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-column-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--accent-color);
}

.footer-bottom {
  max-width: 1400px;
  margin: 2rem auto 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* Top 10 Artists Styles */
.artist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--panel-bg);
  transition: all var(--transition-speed) var(--transition-bezier);
}

.artist-row:hover {
  background-color: var(--panel-hover);
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

.artist-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.artist-rank {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-color);
  font-weight: 700;
  min-width: 18px;
}

.artist-row-avatar {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid var(--border-muted);
}

.artist-row-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.artist-row-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.artist-trend-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  padding: 0.15rem 0.35rem;
  border-radius: 2px;
  border: 1px solid var(--border-color);
  min-width: 32px;
  text-align: center;
  font-weight: 700;
}

.trend-up {
  color: #10b981;
  background-color: var(--bg-color);
  border-color: rgba(16, 185, 129, 0.2);
}

.trend-down {
  color: #ef4444;
  background-color: var(--bg-color);
  border-color: rgba(239, 68, 68, 0.2);
}

.trend-same {
  color: var(--text-muted);
  background-color: var(--bg-color);
  border-color: var(--border-muted);
}

/* ============================================
   PREMIUM CHART LEADERBOARD
   ============================================ */

/* Chart Header */
.chart-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 0.25rem;
  width: 100%;
}

.chart-header-left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.5rem;
}

.chart-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  background: #10b981;
  color: #fff;
  line-height: 1;
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.55;
  }
}

.chart-update {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.chart-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

/* Chart List Container */
.chart-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px;
  width: 100%;
}

/* ---- Individual Chart Row ---- */
.chart-list>a.chart-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.7rem;
  padding: 0.35rem 0.5rem;
  text-decoration: none !important;
  color: inherit;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  border: 1px solid transparent;
  min-height: 42px;
}

.chart-list>a.chart-row:hover {
  background: var(--panel-hover);
  border-color: var(--border-color);
  transform: translateX(3px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Gold #1 Row */
.chart-list>a.chart-row.chart-row--gold {
  background: linear-gradient(135deg, rgba(220, 164, 130, 0.12) 0%, rgba(200, 126, 101, 0.03) 100%);
  border: 1px solid rgba(220, 164, 130, 0.25);
}

.chart-list>a.chart-row.chart-row--gold:hover {
  background: linear-gradient(135deg, rgba(220, 164, 130, 0.2) 0%, rgba(200, 126, 101, 0.08) 100%);
  border-color: rgba(220, 164, 130, 0.45);
  box-shadow: 0 4px 24px rgba(220, 164, 130, 0.12);
}

.chart-row--gold .chart-rank {
  color: var(--accent-color) !important;
  text-shadow: 0 0 10px rgba(220, 164, 130, 0.35);
}

.chart-row--gold .chart-name {
  color: var(--accent-color) !important;
}

.chart-row--gold .chart-avatar {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 10px rgba(220, 164, 130, 0.3);
}

.chart-row--gold .chart-bar {
  background: var(--accent-gradient) !important;
  opacity: 0.75 !important;
}

/* --- Rank Number --- */
.chart-rank {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 24px;
  text-align: right;
  flex-shrink: 0;
  line-height: 1;
}

/* --- Circular Avatar --- */
.chart-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chart-row:hover .chart-avatar {
  border-color: var(--accent-color);
}

/* --- Artist Info Column --- */
.chart-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px;
  min-width: 170px;
  max-width: 250px;
  flex-shrink: 0;
  overflow: hidden;
}

.chart-name {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.chart-row:hover .chart-name {
  color: var(--accent-color);
}

.chart-listeners {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* --- Popularity Bar --- */
.chart-bar-wrap {
  flex: 1 1 auto;
  height: 4px;
  background: var(--border-muted);
  border-radius: 4px;
  overflow: hidden;
  min-width: 30px;
}

.chart-bar {
  height: 100%;
  border-radius: 4px;
  background: var(--accent-gradient);
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.chart-row:hover .chart-bar {
  opacity: 0.65;
}

/* --- Trend Arrow --- */
.chart-trend {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.chart-trend.trend-up {
  color: #10b981;
  background: none;
  border: none;
  padding: 0;
}

.chart-trend.trend-down {
  color: #ef4444;
  background: none;
  border: none;
  padding: 0;
}

.chart-trend.trend-same {
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
}

/* ============================================
   DISCOVERY DASHBOARD TERMINAL (scout.html)
   ============================================ */

.dashboard-layout {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: calc(100vh - 66px);
  /* Subtract header height */
  background-color: var(--panel-bg);
}

@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    border-left: none;
    border-right: none;
  }
}

.search-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-color);
}

.panel-header {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.panel-headline {
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--text-main);
  margin-top: 0.25rem;
}

/* Filter Tags */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.filter-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--panel-bg);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-bezier);
}

.filter-tag:hover {
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

.filter-tag.active {
  background: var(--accent-bg-active, var(--accent-color));
  border-color: var(--accent-color);
  color: #000000;
  font-weight: 700;
}

/* Scrollable List */
.artist-scout-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
  max-height: calc(100vh - 280px);
}

/* Analytics Panel Content */
.analytics-panel {
  display: flex;
  flex-direction: column;
  background-color: var(--panel-bg);
  position: relative;
  overflow: hidden;
}

/* Blank State styling */
.blank-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  height: 100%;
  color: var(--text-muted);
}

.blank-icon {
  width: 48px;
  height: 48px;
  stroke: var(--border-color);
  stroke-width: 1.5;
  fill: none;
  margin-bottom: 1rem;
}

.blank-state h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.blank-state p {
  max-width: 400px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Active Analytics Panel */
.analytics-content {
  animation: fadeInPanel 0.4s var(--transition-bezier) forwards;
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Composer styling */
.composer-select {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-color);
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-speed);
}

.composer-select:focus {
  border-color: var(--accent-color);
}

.composer-textarea {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-color);
  color: var(--text-main);
  resize: vertical;
  outline: none;
  line-height: 1.5;
  transition: border-color var(--transition-speed);
}

.composer-textarea:focus {
  border-color: var(--accent-color);
}

/* ============================================
   RESPONSIVE DESIGN OVERRIDES (MOBILE/TABLET)
   ============================================ */

/* Base responsive panels for home page */
.panel-hero {
  padding: 5rem 2.5rem;
  justify-content: center;
}

.panel-chart {
  padding: 1.75rem 1.5rem;
  background-color: var(--panel-bg);
  justify-content: flex-start;
}

/* Stack borders horizontally when sections stack vertically */
@media (max-width: 992px) {
  .section-grid .border-right {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .panel-hero {
    padding: 3rem 1.5rem;
  }

  .panel-chart {
    padding: 1.5rem 1.25rem;
  }
}

/* Header, Text and Panel scaling for Mobile */
@media (max-width: 768px) {
  header {
    padding: 0.5rem 1rem;
  }

  .logo-icon {
    width: 44px !important;
    height: 44px !important;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .hero-headline {
    font-size: 1.8rem !important;
  }
}

/* Extra optimization for ultra-small mobile screens */
@media (max-width: 480px) {
  .logo-area {
    gap: 0.5rem;
  }

  .logo-icon {
    width: 36px !important;
    height: 36px !important;
  }

  .logo-text {
    font-size: 0.85rem;
  }

  .header-controls {
    gap: 0.5rem;
  }

  .header-controls .btn {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.7rem !important;
  }
}

/* Mobile panel padding adjustment */
@media (max-width: 640px) {
  .panel-hero {
    padding: 2.5rem 1.25rem;
  }

  .panel-chart {
    padding: 1.25rem 1rem;
  }
}

/* Responsive Top 10 / Discovery rows to prevent overflow */
@media (max-width: 640px) {
  .chart-list>a.chart-row {
    gap: 0.5rem;
    padding: 0.35rem 0.4rem;
  }

  .chart-rank {
    width: 20px;
    font-size: 0.85rem;
  }

  .chart-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  .chart-info {
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 auto !important;
  }

  .chart-name {
    font-size: 0.85rem;
  }

  .chart-listeners {
    font-size: 0.75rem;
  }

  .chart-bar-wrap {
    display: none !important;
    /* Hide popularity bars on mobile to reclaim horizontal space */
  }

  .chart-trend {
    font-size: 0.75rem;
  }
}