/* ===================================================== */
/*                     RESET & GLOBAL                   */
/* ===================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: white;
  min-height: 100vh;
  padding-top: 70px; /* match navbar height */
  background: #000;
}

/* Background with blur */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("images/home_back.jpg") no-repeat center / cover;
  filter: blur(10px);
  transform: scale(1.05);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: -1;
}

/* ===================================================== */
/*                        NAVBAR                         */
/* ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  z-index: 999;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin-left: 1.5rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover { color: #ffd700; }

/* Mobile Menu */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.85);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
    padding-bottom: 1rem;
  }

  .nav-links.active { display: flex; }

  .nav-links a { margin: 1rem 0; }
}

/* ===================================================== */
/*                       CONTAINER                       */
/* ===================================================== */
.container {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
  text-align: center;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================== */
/*                       BUTTONS                         */
/* ===================================================== */
.button {
  background: rgba(255,255,255,0.18);
  padding: 1rem 1.7rem;
  border-radius: 16px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.3s ease;
}

.button:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-3px);
}

/* ===================================================== */
/*                 HOME BUTTON ROWS                      */
/* ===================================================== */
.button-row{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  flex-wrap: wrap;           /* prevents collision if space is tight */
}

.button-row .button{
  display: inline-flex;      /* more reliable sizing than inline <a> */
  justify-content: center;
  align-items: center;
}

/* Mobile: stack neatly, no overlap */
@media (max-width: 600px){
  .button-row{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .button-row .button{
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}


/* ===================================================== */
/*                       LOGO                             */
/* ===================================================== */
.site-logo {
  width: 85%;
  max-width: 850px;
  height: auto;
  display: block;
  margin: 0 auto 2rem auto;
  animation: fadeIn 1s ease forwards;
}

/* ===================================================== */
/*                      SOCIAL ICONS                     */
/* ===================================================== */
.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.socials a svg {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
}

.socials a svg:hover { transform: scale(1.2); }

/* ===================================================== */
/*                     GLASS SEARCH                      */
/* ===================================================== */
.glass-search {
  width: 100%;
  max-width: 500px;
  padding: 1rem 1.5rem;
  margin: 1.5rem auto 2rem auto;
  display: block;
  border-radius: 20px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1.1rem;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.glass-search::placeholder { color: rgba(255,255,255,0.7); }

/* ===================================================== */
/*                      GRID CARDS                        */
/* ===================================================== */
.past-collabs .collab-grid,
.artist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .past-collabs .collab-grid,
  .artist-grid { grid-template-columns: 1fr; }
}

.past-collabs .collab-card,
.artist-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 1rem;
  width: 300px;
  height: 580px;
  text-align: center;
  transition: all 0.3s ease;
}

.past-collabs .collab-card:hover,
.artist-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.15);
}

/* Images */
.past-collabs .collab-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.artist-card img {
  width: 100%;
  max-width: 200px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

/* Optional captions below artwork */
.artist-card .caption {
  font-size: 0.95rem;
  margin-top: 0.3rem;
  text-align: center;
  background: rgba(255,255,255,0.08);
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
}

/* Card text */
.past-collabs .collab-card h3,
.artist-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.past-collabs .collab-card p,
.artist-card p {
  font-size: 0.95rem;
  color: white;
  text-align: center;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

/* Scrollable card text for long bios */
.artist-card p {
  flex-grow: 1;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.artist-card p::-webkit-scrollbar {
  width: 6px;
}

.artist-card p::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
}

.artist-card p::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.35);
  border-radius: 10px;
}

/* Glass buttons at bottom of cards */
.past-collabs .collab-card a.button,
.artist-card a.button {
  /*
    Use flex layout instead of absolute positioning so the button never
    overlaps text on small screens.
  */
  position: static;
  margin-top: auto;
  width: 90%;
  align-self: center;
  transform: none;
  text-align: center;
  padding: 0.7rem 0;
  border-radius: 14px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  z-index: 1;
}

.past-collabs .collab-card a.button:hover,
.artist-card a.button:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* ===================================================== */
/*                     ARTIST PROFILE ID CARD           */
/* ===================================================== */
.artist-profile-page {
  max-width: 850px;
  margin: auto;
}

.artist-id-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 18px;
  padding: 1.5rem;
  color: white;
  margin: 2rem auto;
}

.artist-id-top {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.artist-id-photo {
  width: 120px;
  height: 160px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.artist-id-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fields stacked to the right of photo */
.artist-id-fields {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.05);
  text-align: left; /* LEFT ALIGNED */
}

/* Placeholder text styling */
.artist-id-fields p::before {
  content: attr(data-placeholder);
  font-weight: bold;
  display: inline-block;
  width: 90px;
}

.artist-id-fields p span {
  font-weight: normal;
  margin-left: 0.2rem;
}

/* Biography section */
.artist-id-bio {
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 1rem;
  text-align: left;
  margin-top: 1rem;
}

.artist-id-bio h3 { margin-bottom: 0.4rem; }

/* Mobile responsiveness */
@media (max-width: 768px) {
  .artist-id-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .artist-id-fields { width: 100%; }

  .artist-card { 
    width: 100%;
    max-width: 350px;
    height: auto;
  }

  .artist-card img { height: 200px; }

  .artist-card .caption {
    max-height: none;
    overflow-y: auto;
  }
}

/* ===================================================== */
/*              ARTIST CONTACT DETAILS                   */
/* ===================================================== */

.artist-id-contact {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.25);
  text-align: left;
}

.artist-id-contact h3 {
  margin-bottom: 0.8rem;
}

.artist-contact-links {
  display: flex;
  gap: 1rem;
}

/* Glass icon buttons */
.contact-link {
  position: relative;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

/* Hover effect */
.contact-link:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* Icon size */
.contact-link img {
  width: 22px;
  height: 22px;
}

/* Tooltip */
.contact-link::after {
  content: attr(data-label);
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: white;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.contact-link:hover::after {
  opacity: 1;
}

/* Auto-hide empty links */
.contact-link[href="#"],
.contact-link[href=""],
.contact-link[href^="mailto:ADD"],
.contact-link[href*="ADD_"] {
  display: none;
}

/* ===================================================== */
/*              ARTIST CONTACT CARD (GLASS)              */
/* ===================================================== */

.artist-contact-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 18px;
  padding: 1.5rem;
  color: white;
  margin: 2rem auto;
  text-align: left;
}

.artist-contact-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Optional logo */
.artist-contact-logo {
  width: 170px;          /* Slightly Wider that Profile Pic */
  height: 160px;         /* match artist photo height */
  object-fit: contain;   /* preserves aspect ratio */
  border-radius: 14px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px;

  display: none;         /* hidden unless src exists */
}

/* Only show logo if src is present */
.artist-contact-logo[src]:not([src=""]) {
  display: block;
}

.artist-contact-heading h3 {
  margin: 0;
}

.artist-contact-heading .muted {
  margin: 0.2rem 0 0 0;
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Reuse existing contact icon layout */
.artist-contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 768px) {
  .artist-contact-top {
    flex-direction: row;
    align-items: center;
  }
}



/* ===================================================== */
/*                      LIGHTBOX                          */
/* ===================================================== */
.lightbox {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  font-size: 3rem;
  color: white;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s ease;
  user-select: none;
}

.lightbox-arrow:hover { background: rgba(255,255,255,0.25); }
.lightbox-arrow.left { left: 2%; }
.lightbox-arrow.right { right: 2%; }

@media (max-width: 480px) {
  .lightbox-arrow { font-size: 2rem; background: rgba(255,255,255,0.1); padding: 0.4rem 0.8rem; }
}

.lightbox-arrow {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.lightbox.arrows-hidden .lightbox-arrow {
  opacity: 0;
  pointer-events: none;
}
