/* ═══════════════════════════════════════════════════
   ALEJAM RECORDS – Artist Page Styles
   ═══════════════════════════════════════════════════ */

/* ─── Hero ──────────────────────────────────────── */
.artist-hero {
  position: relative;
  width: 100%;
  min-height: 75vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.artist-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.3) 40%,
    rgba(0,0,0,0.85) 100%
  );
}

.artist-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 2rem 4rem;
  max-width: 800px;
}

.artist-hero-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0,0,0,0.6);
}

.artist-hero-meta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.artist-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ccc;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.artist-hero-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.artist-hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.artist-hero-socials a:hover {
  background: #f54;
  border-color: #f54;
  transform: translateY(-2px);
}

.artist-hero-socials svg {
  width: 20px;
  height: 20px;
}

/* ─── Sections ──────────────────────────────────── */
.artist-section {
  padding: 4rem 0;
  border-top: 1px solid #1a1a1a;
}

.artist-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.artist-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: #fff;
}

/* ─── Bio Layout ────────────────────────────────── */
.artist-bio-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
  align-items: start;
}

.artist-photo img {
  width: 100%;
  border-radius: 0.75rem;
  object-fit: cover;
  aspect-ratio: 3/4;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.artist-bio-text {
  font-size: 1rem;
  line-height: 1.9;
  color: #bbb;
}

.artist-bio-text h2 {
  margin-bottom: 1.25rem;
}

/* ─── Music / Embeds ────────────────────────────── */
.artist-embeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.embed-block {
  border-radius: 0.75rem;
  overflow: hidden;
  background: #1a1a1a;
}

.embed-block iframe {
  width: 100%;
  border: none;
  border-radius: 0.75rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.75rem;
}

/* ─── Gallery ───────────────────────────────────── */
.artist-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-thumb {
  cursor: pointer;
  overflow: hidden;
  border-radius: 0.5rem;
  aspect-ratio: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.08);
}

/* ─── Lightbox ──────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #f54;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

/* ─── Store Link ────────────────────────────────── */
.artist-store-section p {
  color: #888;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.artist-store-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: #f54;
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 0.4rem;
  transition: all 0.25s ease;
}

.artist-store-btn:hover {
  background: #e04030;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 85, 68, 0.3);
}

/* ─── Subscribe / Mailing List ──────────────────── */
.artist-subscribe-section {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.artist-subscribe-section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.artist-subscribe-section > .artist-container > p {
  color: #888;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.artist-subscribe-form {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.subscribe-fields {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.subscribe-input {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.4rem;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.subscribe-input::placeholder {
  color: rgba(255,255,255,0.35);
}

.subscribe-input:focus {
  border-color: #f54;
  background: rgba(255,255,255,0.1);
}

.subscribe-name {
  flex: 0 1 160px;
}

.subscribe-email {
  flex: 1 1 220px;
}

.subscribe-btn {
  padding: 0.75rem 1.8rem;
  background: #f54;
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.subscribe-btn:hover {
  background: #e04030;
  transform: translateY(-1px);
}

.subscribe-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.subscribe-consent {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #888;
}

.subscribe-consent label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.subscribe-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f54;
  cursor: pointer;
}

.subscribe-consent a {
  color: #f54;
  text-decoration: none;
}

.subscribe-consent a:hover {
  text-decoration: underline;
}

.subscribe-msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.subscribe-msg-success {
  color: #4ecf73;
}

.subscribe-msg-error {
  color: #f54;
}

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
  .artist-hero {
    min-height: 55vh;
  }

  .artist-hero-name {
    font-size: 2.5rem;
  }

  .artist-bio-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .artist-photo img {
    aspect-ratio: 16/9;
    max-height: 350px;
  }

  .artist-section {
    padding: 3rem 0;
  }

  .artist-hero-socials {
    gap: 0.6rem;
    padding: 0 1rem;
  }

  .artist-hero-socials a {
    width: 38px;
    height: 38px;
  }

  .artist-hero-socials svg {
    width: 17px;
    height: 17px;
  }

  .artist-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }

  .artist-embeds {
    grid-template-columns: 1fr;
  }

  .subscribe-fields {
    flex-direction: column;
  }

  .subscribe-name,
  .subscribe-email {
    flex: 1 1 auto;
  }

  .subscribe-btn {
    width: 100%;
  }
}
/* ═══════════════════════════════════════════════════
   Artists Listing Page (appended to artist.css)
   ═══════════════════════════════════════════════════ */

/* ─── Page Hero ─────────────────────────────────── */
.artists-page-hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  background: linear-gradient(180deg, #000 0%, #111 100%);
}

.artists-page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
}

.artists-page-sub {
  color: #666;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── Artist Listing Grid ───────────────────────── */
.artists-listing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 0;
  max-width: 100%;
}

.artist-listing-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
  text-decoration: none;
  color: #fff;
}

.artist-listing-card.featured {
  grid-column: span 2;
}

.artist-listing-media {
  position: absolute;
  inset: 0;
}

.artist-listing-media img,
.artist-listing-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.artist-listing-media video {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.6s ease;
}
.artist-listing-media video.is-playing {
  opacity: 1;
}

.artist-listing-card:hover .artist-listing-media img,
.artist-listing-card:hover .artist-listing-media video {
  transform: scale(1.06);
}

.artist-listing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.7) 100%
  );
  transition: background 0.3s ease;
}

.artist-listing-card:hover .artist-listing-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 30%,
    rgba(0,0,0,0.85) 100%
  );
}

.artist-listing-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 2;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.artist-listing-card:hover .artist-listing-info {
  transform: translateY(0);
}

.artist-listing-info h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.artist-listing-genre {
  font-size: 0.8rem;
  color: #aaa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.artist-listing-card:hover .artist-listing-genre {
  opacity: 1;
}

@media (max-width: 768px) {
  .artists-page-hero h1 {
    font-size: 2.2rem;
    letter-spacing: 0.15em;
  }

  .artists-listing {
    grid-template-columns: 1fr;
  }

  .artist-listing-card.featured {
    grid-column: span 1;
  }

  .artist-listing-info h2 {
    font-size: 1.3rem;
  }

  .artist-listing-genre {
    opacity: 1;
  }

  .artist-listing-info {
    transform: translateY(0);
  }
}

/* ═══ SHORTLINK MODE ═══ */
/* When accessed via shortlink, strip header/nav */
.shortlink-logo {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 9999;
  width: 160px;
  height: auto;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.2s ease;
}

.shortlink-logo:hover {
  transform: scale(1.1);
}

.shortlink-logo img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  body.shortlink-mode .main-header {
    display: none !important;
  }

  body.shortlink-mode .artist-hero {
    margin-top: 0;
  }

  body.shortlink-mode .main-footer .footer-links {
    display: none;
  }
}

/* ═══ SHARE LINK BUTTON & MODAL ═══ */
.share-link-btn {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.share-link-btn:hover {
  opacity: 1;
}

.share-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.share-modal-overlay.open {
  display: flex;
}

.share-modal {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  max-width: 460px;
  width: 90%;
  position: relative;
  text-align: center;
}

.share-modal h3 {
  margin: 0 0 1.2rem;
  font-size: 1.2rem;
  color: #fff;
}

.share-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #888;
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.2s;
}
.share-modal-close:hover {
  color: #fff;
}

.share-modal-url {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #444;
}

.share-modal-url input {
  flex: 1;
  background: #111;
  border: none;
  color: #fff;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.share-copy-btn {
  background: #e63946;
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
  white-space: nowrap;
}
.share-copy-btn:hover {
  background: #c62833;
}

.share-copied-msg {
  display: none;
  color: #4caf50;
  font-size: 0.85rem;
  margin-top: 0.6rem;
}
.share-copied-msg.show {
  display: inline-block;
}
