/* Artists Page Layout Styles */

.artists-page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-color: var(--color-bg-primary);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 240px; /* Space to prevent footer overlapping */
}

/* Background Patterns */
.top-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 444px;
  height: 381px;
  max-width: 30vw;
  background-image: url("../img/pattern-bg1.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right top;
  pointer-events: none;
  z-index: 1;
}

.bottom-pattern {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 247px;
  max-height: 20vh;
  background-image: url("../img/pattern-bg2.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left bottom;
  pointer-events: none;
  z-index: 1;
}

/* Header */
.artist-header {
  position: relative;
  z-index: 10;
  width: 100%;
}

.artist-header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 60px 20px;
}

.artist-header .logo-link {
  display: flex;
  align-items: center;
}

.artist-header .main-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

.artist-header .back-btn {
  font-family: var(--font-anek-medium);
  font-weight: 500;
  font-size: 20px;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--color-primary);
  padding: 8px 20px;
  border-radius: 6px;
  background-color: rgba(6, 6, 30, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.artist-header .back-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-dark);
  box-shadow: 0 0 15px rgba(175, 247, 17, 0.4);
  transform: translateY(-2px);
}

.artist-header .back-btn .arrow {
  transition: transform 0.2s ease;
}

.artist-header .back-btn:hover .arrow {
  transform: translateX(-4px);
}

/* Main Container */
.artist-main {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 60px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.artist-title-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.artist-title-block .heading-text {
  font-family: var(--font-cplt20);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--color-primary);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.stroke-wrapper {
  width: 100%;
  max-width: 890px;
}

.stroke-wrapper .stroke-line {
  width: 100%;
  height: auto;
  display: block;
}

/* Artist Grid */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  margin: 0 auto;
}

.artist-card {
  position: relative;
  width: 100%;
  aspect-ratio: 375/469;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
  background-color: var(--color-bg-dark);
}

.artist-card .artist-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* Premium Hover Animation */
.artist-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: 0 15px 30px rgba(175, 247, 17, 0.25);
}

.artist-card:hover .artist-image {
  transform: scale(1.05);
}

/* Media Queries */

/* Desktop & Large Tablet Breakpoint */
@media (max-width: 1024px) {
  .artist-header .header-container {
    padding: 30px 40px 15px;
  }

  .artist-main {
    padding: 20px 40px 60px;
    gap: 40px;
  }

  .artists-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Small Tablet & Mobile Breakpoint */
@media (max-width: 768px) {
  .artists-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile Breakpoint */
@media (max-width: 600px) {
  .artists-page {
    padding-bottom: 160px; /* Space for the bottom pattern */
  }

  .artist-header .header-container {
    padding: 20px 20px 10px;
  }

  .artist-header .main-logo {
    height: 40px;
  }

  .artist-header .back-btn {
    font-size: 16px;
    padding: 6px 14px;
    gap: 6px;
  }

  .artist-main {
    padding: 10px 20px 40px;
    gap: 30px;
  }

  .artists-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 380px;
    margin: 0 auto;
  }
  
  .top-pattern {
    max-width: 45vw;
  }
}
