/* ==========================================================================
   TruZillah Core — Block Frontend Styles
   ========================================================================== */

/* ── MUSIC PLAYER BLOCK ── */
.tzn-music-player {
  border-radius: 14px;
  overflow: hidden;
  background: var(--wp--preset--color--surface, #111120);
  border: 1px solid rgba(255,255,255,0.07);
}

.tzn-player-embed-wrap { width: 100%; }
.tzn-player-embed-wrap iframe { display: block; width: 100%; }

.tzn-player-ui { }

.tzn-player-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--wp--preset--color--surface-2, #181830);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.tzn-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wp--preset--color--gold, #c9933a);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0a0605;
  transition: transform 150ms ease, background 150ms ease;
}

.tzn-play-btn:hover { transform: scale(1.08); background: var(--wp--preset--color--gold-pale, #e8b96a); }

.tzn-player-meta { flex: 1; min-width: 0; }
.tzn-player-track { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzn-player-artist { font-size: 0.78rem; color: var(--wp--preset--color--muted, #7a7896); margin-top: 0.1rem; }
.tzn-player-duration { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--wp--preset--color--muted, #7a7896); flex-shrink: 0; }

.tzn-player-progress-wrap { padding: 0.85rem 1.25rem 1.1rem; }

.tzn-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  margin-bottom: 0.5rem;
  position: relative;
  cursor: pointer;
}

.tzn-progress-fill {
  height: 100%;
  background: var(--wp--preset--color--gold, #c9933a);
  border-radius: 999px;
  position: relative;
  transition: width 0.3s ease;
}

.tzn-progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--wp--preset--color--gold-pale, #e8b96a);
}

.tzn-progress-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--wp--preset--color--muted, #7a7896);
  font-family: 'DM Mono', monospace;
}

.tzn-player-note {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.8rem;
  color: var(--wp--preset--color--muted, #7a7896);
  margin: 0;
}

.tzn-player-platform-links {
  display: flex;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.tzn-embed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--wp--preset--color--muted, #7a7896);
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease;
}

.tzn-embed-badge:hover { border-color: var(--wp--preset--color--gold, #c9933a); color: var(--wp--preset--color--gold, #c9933a); }

/* ── TRACK LIST BLOCK ── */
.wp-block-tzn-track-list { list-style: none; margin: 0; padding: 0; }

.tzn-track-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.tzn-track-platform-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--wp--preset--color--muted, #7a7896);
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.tzn-track-platform-link:hover {
  border-color: var(--wp--preset--color--gold, #c9933a);
  color: var(--wp--preset--color--gold, #c9933a);
  background: rgba(201,147,58,0.08);
}

/* ── CONTACT FORM BLOCK ── */
.wp-block-tzn-contact-form { }

.tzn-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tzn-form-group { margin-bottom: 1rem; }

/* ── NEWSLETTER BLOCK ── */
.wp-block-tzn-newsletter .tzn-newsletter-icon {
  width: 52px;
  height: 52px;
  background: rgba(201,147,58,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1.5rem;
}

.wp-block-tzn-newsletter .tzn-newsletter-title {
  margin-bottom: 0.75rem;
}

.wp-block-tzn-newsletter .tzn-newsletter-sub {
  color: var(--wp--preset--color--muted, #7a7896);
  margin-bottom: 1.75rem;
  font-size: 0.97rem;
}

.wp-block-tzn-newsletter .tzn-newsletter-note {
  font-size: 0.78rem;
  color: var(--wp--preset--color--muted, #7a7896);
  margin-top: 0.75rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .tzn-form-row { grid-template-columns: 1fr; }
  .tzn-player-top { flex-wrap: wrap; }
}
