/* Sonora Views: Home, Library, Search, Settings, Albums, Artists */

/* ---------------- HERO & BANNERS ---------------- */
.hero-banner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.7), rgba(15, 23, 42, 0.85)),
              radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.25), transparent 50%);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-lg);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-subtitle {
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.1;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-dynamic), #ec4899);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 8px;
  box-shadow: 0 4px 18px var(--accent-dynamic-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-dynamic-glow);
}

.btn-secondary {
  padding: 12px 22px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 8px;
  transition: background var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ---------------- SECTION HEADERS ---------------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

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

/* ---------------- CARD GRIDS ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.media-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.media-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.media-card-artwork-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg-elevated);
}

.media-card-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-card:hover .media-card-artwork {
  transform: scale(1.05);
}

.card-play-overlay {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-dynamic);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.media-card:hover .card-play-overlay {
  opacity: 1;
  transform: translateY(0);
}

.media-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.media-card-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------- TRACK TABLES ---------------- */
.track-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.track-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.track-table td {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.track-row {
  cursor: pointer;
  transition: background var(--transition-fast);
  border-radius: var(--radius-sm);
}

.track-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.track-row.active {
  background: rgba(139, 92, 246, 0.12);
}

.track-row.active .track-row-title {
  color: var(--accent-dynamic);
}

.track-cell-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.track-cell-thumb {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  background: var(--bg-elevated);
}

.track-row-title {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.track-row-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------------- TABS & TOOLBARS ---------------- */
.view-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: #ffffff;
  background: var(--bg-surface-hover);
}

.tab-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.search-input-wrapper {
  position: relative;
  max-width: 440px;
  width: 100%;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
}

.search-input {
  width: 100%;
  padding-left: 42px;
  padding-right: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
}

/* ---------------- SETTINGS & CONFIGURATION ---------------- */
.settings-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
}

.settings-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.settings-section-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.settings-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.capability-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-supported {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-restricted {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  max-width: 480px;
  margin: 0 auto;
}

.empty-state-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.empty-state-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
