/*
Theme Name: Earbone Records
Theme URI: https://earbonerecords.com
Author: Earbone Records
Author URI: https://earbonerecords.com
Description: Custom theme for Earbone Records, converted from the original static Nekoweb site. Artists are managed as a custom post type with ACF fields for photo, bio, links, and releases.
Version: 1.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: earbone-records
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #1a3d38;
  --text: #b7c7a6;
  --muted: #5a7a6a;
  --accent: #f2d9b6;
  --nav-h: 56px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  scroll-behavior: smooth;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 36px;
  background: rgba(26, 61, 56);
  z-index: 100;
}

.logo-box {
  width: 34px;
  height: 34px;
  background: var(--accent);

  -webkit-mask: url("EarboneRecords.svg") no-repeat center;
  -webkit-mask-size: contain;

  mask: url("EarboneRecords.svg") no-repeat center;
  mask-size: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  font-family: Arial, sans-serif;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 28px;
}

.nav-icon-link {
  position: relative;
  display: flex;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-icon-link:hover,
.nav-icon-link.active {
  color: var(--text);
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  line-height: 15px;
  text-align: center;
  display: none;
}

.cart-count.has-items {
  display: block;
}

/* LAYOUT */
.layout {
  display: flex;
  height: 100vh;
}

/* LEFT LIST */
.left {
  width: 36%;
  max-width: 360px;
  padding: 110px 36px 48px;
  margin-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  overflow-y: auto;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.left::-webkit-scrollbar { display: none; }

.artist-row {
  display: block;
  text-decoration: none;
  cursor: pointer;
  padding: 10px 0;
  user-select: none;
}

.artist-name {
  font-size: 2.9rem;
  color: var(--muted);
  line-height: 1.15;
  transition: color 0.2s, letter-spacing 0.2s;
  font-style: italic;
}

.artist-row:hover .artist-name {
  color: var(--accent);
  letter-spacing: 1px;
}

/* RIGHT PREVIEW — perfect square touching right edge, below nav */
.right {
  position: fixed;
  top: var(--nav-h);
  right: 0;
  width: calc(100vh - var(--nav-h));
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}

.artist-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.artist-img.visible {
  opacity: 1;
}

/* =========================
   TABLET
========================= */
@media (max-width: 900px) {
  .left {
    width: 45%;
    padding: 90px 24px 40px;
  }

  .artist-name {
    font-size: 2.2rem;
  }

  .right {
    width: calc(100vh - var(--nav-h));
  }
}


/* =========================
   CONTACT PAGE
========================= */

.contact-page {
  min-height: 100vh;
  padding: 120px 36px 60px;
  max-width: 700px;
}

.contact-title {
  font-size: 4rem;
  font-style: italic;
  line-height: 1;
  margin-bottom: 32px;
  color: var(--text);
}

.contact-intro {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 580px;
  margin-bottom: 50px;
}

.contact-section {
  margin-bottom: 42px;
}

.contact-label {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.contact-link {
  display: inline-block;
  font-size: 1.4rem;
  color: var(--accent);
  font-style: italic;
  transition: opacity .2s, letter-spacing .2s;
}

.contact-link:hover {
  opacity: .8;
  letter-spacing: .5px;
}

.contact-note {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 500px;
}


/* MOBILE */
@media (max-width: 600px) {

  .contact-page {
    padding: 100px 24px 40px;
  }

  .contact-title {
    font-size: 3rem;
  }

  .contact-intro {
    font-size: 1rem;
  }

  .contact-link {
    font-size: 1.15rem;
  }

}

/* =========================
   MOBILE ONLY
========================= */
@media (max-width: 600px) {

  .layout {
    flex-direction: column;
    height: auto;
  }

  .left {
    width: 100%;
    max-width: none;

    padding: 90px 20px 20px;
    margin-top: 0;

    height: auto;
    overflow: visible;
  }

  .artist-name {
    font-size: 1.8rem;
  }

  .artist-row {
    padding: 12px 0;
  }

  .right {
    display: none;
  }

  .layout {
    display: block;
  }
}

/* =========================
   FORMS — sitewide baseline
   Generic styling so any form on the site — the checkout, a future
   contact form, anything — matches the theme automatically instead
   of falling back to unstyled browser/plugin defaults. Store-specific
   rules in assets/css/woocommerce.css are more specific and take
   over on those pages.
========================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select {
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  border: 1px solid rgba(183, 199, 166, 0.3);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  width: 100%;
  max-width: 420px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

button,
input[type="submit"] {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: bold;
  padding: 13px 26px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

button:hover,
input[type="submit"]:hover {
  opacity: 0.85;
}

/* =========================
   WOOCOMMERCE WRAPPER
   Basic spacing/color so the shop, product, cart, and checkout
   pages sit consistently within the theme. WooCommerce's own
   default stylesheet still handles most of the detailed layout;
   this just keeps things readable on the dark background.
========================= */
.woocommerce-page-wrap {
  padding: calc(var(--nav-h) + 60px) 10% 60px;
  color: var(--text);
}

.woocommerce-page-wrap a {
  color: var(--accent);
}

.woocommerce-page-wrap .price {
  color: var(--accent);
}

@media (max-width: 600px) {
  .woocommerce-page-wrap {
    padding: calc(var(--nav-h) + 40px) 20px 40px;
  }
}

/* =========================
   HOME PAGE
========================= */
.home-page {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 100px) 10% 80px;
  max-width: 900px;
  margin: 0 auto;
}

.home-hero {
  margin-bottom: 80px;
}

.home-title {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-style: italic;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
}

.home-tagline {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 560px;
  margin-bottom: 36px;
}

.home-tagline p {
  margin-bottom: 1em;
}

.home-cta {
  display: flex;
  gap: 32px;
}

.home-cta a {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  color: var(--accent);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.home-cta a:hover {
  border-bottom-color: var(--accent);
}

.home-updates .section-title {
  margin-bottom: 28px;
}

.update-item {
  display: block;
  padding: 24px 0;
  border-top: 1px solid rgba(183, 199, 166, 0.16);
  color: inherit;
}

.update-item:last-child {
  border-bottom: 1px solid rgba(183, 199, 166, 0.16);
}

.update-date {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.update-title {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 8px;
  transition: color 0.15s;
}

.update-item:hover .update-title {
  color: var(--accent);
}

.update-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.85;
  max-width: 640px;
}

@media (max-width: 600px) {
  .home-page {
    padding: calc(var(--nav-h) + 60px) 24px 60px;
  }

  .home-hero {
    margin-bottom: 56px;
  }

  .home-cta {
    gap: 22px;
    flex-wrap: wrap;
  }

  .update-title {
    font-size: 1.2rem;
  }
}
