/*
 Theme Name:  Urbanhour Material
 Theme URI:   https://urbanhour.net
 Author:      Urban Hour
 Description: Minimal, app-like theme for the Urban Hour music store.
 Version:     0.2.0
 Text Domain: urbanhour-material
*/

/* ---- Design tokens ----------------------------------------------------- */

:root {
  --uh-bg:        #f5f5f7;
  --uh-surface:   #ffffff;
  --uh-surface-alt:#f0f0f2;
  --uh-text:      #111111;
  --uh-muted:     #6b6b6b;
  --uh-accent:    #18a34a;  /* overridable via Customizer later */
  --uh-accent-soft: rgba(24, 163, 74, 0.08);
  --uh-radius-lg: 18px;
  --uh-radius-sm: 8px;
  --uh-gap:       24px;
  --uh-header-height: 56px;
}

/* Let the Google Fonts plugin own the actual font-family */
html, body {
  margin: 0;
  padding: 0;
  background: var(--uh-bg);
  color: var(--uh-text);
}

/* Links ------------------------------------------------------------------ */

a {
  color: var(--uh-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout shell ----------------------------------------------------------- */

.u-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */

.u-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--uh-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(245, 245, 247, 0.96);
  backdrop-filter: blur(12px);
}

/* No borders, just a subtle separator via shadow-ish line */
.u-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
}

.u-header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo text (or custom logo) */

.u-logo a {
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--uh-text);
}

/* Nav */

.u-nav-menu {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.u-nav-menu a {
  color: var(--uh-text);
  opacity: 0.7;
}

.u-nav-menu a:hover,
.u-nav-menu .current-menu-item > a {
  opacity: 1;
}

/* Main area – leave room for player at bottom */

.u-main {
  flex: 1;
  padding: 32px 24px 96px;
}

.u-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer */

.u-footer {
  padding: 16px 24px 12px;
  font-size: 12px;
  color: var(--uh-muted);
}

/* Woo basics ------------------------------------------------------------- */

.woocommerce .products,
.woocommerce ul.products {
  list-style: none;
  padding: 0;
}

/* Generic cards for non-music content */

.u-surface {
  background: var(--uh-surface);
  border-radius: var(--uh-radius-lg);
  padding: 24px;
}

/* ------------------------------------------------------------------------ */
/* Music layouts – these classnames come from the plugin                   */
/* ------------------------------------------------------------------------ */

/* Album category page wrapper */

.uhmv-page--album-archive {
  background: var(--uh-surface);
  border-radius: var(--uh-radius-lg);
  padding: 32px 32px 24px;
  margin-top: 24px;
}

/* Album hero */

.uhmv-album-hero {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
}

.uhmv-album-cover img {
  display: block;
  max-width: 260px;
  border-radius: var(--uh-radius-sm);
  /* no shadows, no borders */
}

.uhmv-album-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uhmv-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--uh-muted);
}

.uhmv-album-title {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0;
}

.uhmv-album-artist {
  font-size: 15px;
  color: var(--uh-muted);
}

.uhmv-album-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

/* Buttons */

.uhmv-btn {
  border-radius: 999px;
  border: none;
  padding: 7px 18px;
  font-size: 13px;
  cursor: pointer;
  background: transparent;
  color: var(--uh-text);
}

.uhmv-btn--primary {
  background: var(--uh-accent);
  color: #ffffff;
}

.uhmv-btn--secondary {
  background: var(--uh-accent-soft);
  color: var(--uh-text);
}

.uhmv-btn--ghost {
  border-radius: 999px;
  background: transparent;
}

.uhmv-btn--icon {
  padding: 4px 8px;
}

/* Tracklist table */

.uhmv-tracklist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.uhmv-tracklist-table thead th {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--uh-muted);
  padding-bottom: 6px;
}

.uhmv-tracklist-table tbody tr {
  /* no borders – just vertical spacing */
}

.uhmv-tracklist-table td {
  padding: 8px 4px;
}

.uhmv-track-title a {
  color: inherit;
  text-decoration: none;
}

.uhmv-track-title a:hover {
  text-decoration: underline;
}

.uhmv-track-index {
  width: 32px;
  text-align: right;
  color: var(--uh-muted);
}

/* Singles */

.uhmv-single {
  background: var(--uh-surface);
  border-radius: var(--uh-radius-lg);
  padding: 32px;
  display: flex;
  gap: 32px;
  align-items: center;
  margin-top: 24px;
}

.uhmv-single-artwork img {
  max-width: 260px;
  border-radius: var(--uh-radius-sm);
}

.uhmv-single-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uhmv-single-title {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0;
}

.uhmv-single-artist {
  font-size: 14px;
  color: var(--uh-muted);
}

.uhmv-single-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.uhmv-single-addtocart .price {
  margin-right: 12px;
}

/* Mobile tweaks ---------------------------------------------------------- */

@media (max-width: 768px) {
  .u-header {
    padding: 0 16px;
  }

  .u-main {
    padding: 24px 16px 96px;
  }

  .uhmv-album-hero,
  .uhmv-single {
    flex-direction: column;
    align-items: flex-start;
  }

  .uhmv-album-cover img,
  .uhmv-single-artwork img {
    max-width: 220px;
  }

  .u-nav-menu {
    display: none; /* keep header minimal on mobile for now */
  }
}
