/* Beat Catalog Store Styles */

/* Store Page */
.store-page {
  padding-top: 80px;
  min-height: 100vh;
}

.store-header {
  padding: 80px 40px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,179,0,0.03) 0%, transparent 100%);
}

.store-header-inner {
  max-width: 600px;
  margin: 0 auto;
}

.store-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}

.store-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.store-title .accent { color: var(--accent); }

.store-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Filters Bar */
.filters-bar {
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 50;
  background: rgba(8, 8, 16, 0.95);
  backdrop-filter: blur(12px);
}

.filters-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.filter-select,
.filter-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.2s;
  min-width: 120px;
}

.filter-select:focus,
.filter-input:focus {
  border-color: var(--accent);
}

.bpm-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bpm-sep {
  color: var(--text-muted);
  font-size: 12px;
}

.filter-input {
  width: 80px;
}

.filter-input::placeholder {
  color: var(--text-muted);
}

.filter-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
}

/* Beat Grid */
.beats-grid-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.beats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.beat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.beat-card:hover {
  border-color: rgba(255,179,0,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.beat-cover {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.beat-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
  border: 1px solid rgba(255,255,255,0.2);
}

.beat-card:hover .beat-play-btn {
  opacity: 1;
}

.beat-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.beat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.beat-genre-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 4px;
}

.beat-bpm {
  font-size: 12px;
  color: var(--text-muted);
}

.beat-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.beat-waveform {
  height: 28px;
  overflow: hidden;
}

.mini-waveform {
  height: 28px;
}

.mini-waveform svg {
  height: 28px;
  width: 100%;
}

.beat-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.beat-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.beat-license {
  font-size: 12px;
  color: var(--text-muted);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-icon {
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.empty-state p {
  font-size: 14px;
}

/* Detail Page */
.detail-page {
  padding-top: 80px;
  min-height: 100vh;
  padding-bottom: 80px;
}

.detail-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 32px;
  transition: color 0.2s;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: start;
}

/* Detail Visual */
.detail-cover {
  height: 320px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.play-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: white;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.play-overlay:hover { opacity: 1; }

.play-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform 0.2s, background 0.2s;
}

.play-overlay:hover .play-circle {
  transform: scale(1.1);
  background: rgba(0,0,0,0.7);
}

.play-overlay span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Waveform Display */
.waveform-display {
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.waveform-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.waveform-label-text {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.waveform-duration {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}

.waveform-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 60px;
}

.wf-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent), rgba(255,179,0,0.25));
  border-radius: 2px;
  min-height: 4px;
  transition: height 0.3s;
}

.waveform-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  border-radius: 2px;
  transition: width 0.5s linear;
}

/* Detail Info */
.detail-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.beat-genre-tag,
.beat-mood-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 4px;
}

.beat-genre-tag {
  color: var(--accent);
  background: var(--accent-dim);
}

.beat-mood-tag {
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.detail-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.detail-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.beat-description {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.beat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.beat-tag {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}

.beat-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* License Tiers */
.license-section {
  margin-bottom: 28px;
}

.license-heading {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.license-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.license-tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.license-tier:hover {
  border-color: rgba(255,179,0,0.3);
}

.license-tier.selected {
  border-color: var(--accent);
  background: rgba(255,179,0,0.05);
}

.license-tier.featured {
  border-color: rgba(255,179,0,0.3);
}

.tier-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent);
  color: #080810;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 12px;
}

.tier-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tier-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: all 0.2s;
}

.license-tier.selected .tier-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #080810;
}

.tier-info {
  flex: 1;
}

.tier-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.tier-use {
  font-size: 12px;
  color: var(--text-muted);
}

.tier-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

/* Purchase Section */
.purchase-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selected-license {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.selected-license strong {
  color: var(--text);
}

.selected-price {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 32px;
  background: var(--accent);
  color: #080810;
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.buy-btn:hover {
  background: #ffc933;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,179,0,0.3);
}

.buy-btn:active {
  transform: translateY(0);
}

.purchase-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-cover {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .filters-inner {
    gap: 16px;
  }

  .filter-count {
    width: 100%;
    margin-left: 0;
  }

  .beats-grid-wrap {
    padding: 24px 20px 60px;
  }

  .store-header {
    padding: 60px 20px 40px;
  }

  .detail-inner {
    padding: 24px 20px;
  }

  .detail-title {
    font-size: 32px;
  }

  .filters-bar {
    padding: 16px 20px;
  }
}