﻿/* ============================================= */
/* OUR ARTISTS PAGE - ORGANIZED LAYOUT */
/* ============================================= */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');
@import url('./font.css'); /* For Atten New font */

/* ==================== */
/* BODY & PAGE STRUCTURE */
/* ==================== */
.our-artists-page {
  font-family: 'Atten New', Arial, sans-serif;
  overflow-x: hidden;
}

.main-content {
  position: relative;
  min-height: 100vh;
  padding-top: 80px; /* Reduce padding to bring content closer to header */
}

/* Main container for the Our Artists page */
.our-artists-container {
  position: relative;
  width: 1600px; /* Larger base container */
  max-width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 105px);
  background: #FFFFFF;
  border-radius: 30px;
  padding: 50px 30px 120px; /* Larger padding */
}

/* ==================== */
/* TITLE SECTION */
/* ==================== */
.title-section {
  text-align: center;
  margin-bottom: 40px;
  margin-top: -40px; /* Move title closer to header */
}

.artists-main-title {
  display: inline-block;
  width: auto;
  max-width: 950px; /* Larger max width */
  height: auto;
  
  font-family: 'Atten New', Arial, sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: clamp(90px, 14vw, 160px); /* Larger base size */
  line-height: 1; /* Reduce line height to make it more compact */
  text-align: center;
  letter-spacing: 1px; /* Reduced letter spacing */
  white-space: nowrap; /* Keep "our artists" on same line */
  
  color: #2D2E2E;
  margin: 0;
  text-transform: lowercase;
}

/* ==================== */
/* FILTER SECTION */
/* ==================== */
.filter-section {
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

.filter-tags-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  padding: 0px;
  gap: 12px 8px; /* Larger gaps */
  
  width: 100%;
  max-width: 1100px; /* Larger container */
  min-height: 120px; /* Larger height */
}

/* Individual filter tag styling */
.filter-tag {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0px 20px; /* Larger padding */
  gap: 4px;
  
  height: 52px; /* Larger height */
  background: #FFFFFF;
  border: 1px solid #090909;
  border-radius: 30px;
  
  font-family: 'Atten New', Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 26px; /* Larger font */
  line-height: 32px;
  letter-spacing: -0.04em;
  color: #090909;
  
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Active filter tag (first one - Boxx Music) */
.filter-tag.active {
  background: #FFE600;
  border: 1px solid #FFE600;
  color: #090909;
}

.filter-tag:hover {
  background: #FFE600;
  border-color: #FFE600;
}

/* ==================== */
/* ARTISTS SECTION */
/* ==================== */
.artists-section {
  width: 100%;
  margin: 250px auto 140px; /* Larger margins for desktop */
}

.artists-grid {
  position: relative;
  width: 100%;
  max-width: 1700px; /* Even larger grid for better spacing */
  margin: 0 auto;
  min-height: 1000px; /* Larger min height for better layout */
}

/* ==================== */
/* ARTIST CARDS */
/* ==================== */
.artist-card {
  position: absolute;
  width: 300px; /* Larger cards */
  height: 415px; /* Larger height */
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  overflow: hidden;
}

.artist-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 4px 15px rgba(255, 230, 0, 0.1);
}

.artist-card:focus {
  outline: 2px solid #FFE600;
  outline-offset: 2px;
}

/* Artist image container */
.artist-image {
  width: 100%;
  height: 345px; /* Larger image area */
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  position: relative;
}

.artist-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  transition: transform 0.3s ease;
}

.artist-card:hover .artist-image img {
  transform: scale(1.05);
}

/* Artist info section */
.artist-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 18px; /* Larger padding */
  gap: 8px;
  width: 100%;
  height: 88px; /* Larger info area */
  background: #FFFFFF;
  border-radius: 0px 0px 16px 16px;
}

.artist-name {
  width: 100%;
  max-width: 280px; /* Larger max width */
  height: auto;
  
  font-family: 'Atten New', Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 22px; /* Larger font size */
  line-height: 26px;
  text-align: center;
  
  color: #2D2E2E;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Specific positioning for each artist card - Beautiful spacing layout */
.artist-card:nth-child(1) { /* SERIOUS BACON */
  left: calc(50% - 300px/2 - 650px);
  top: calc(50% - 415px/2 - 550px);
}

.artist-card:nth-child(2) { /* FAI PATTHAYA */
  left: calc(50% - 300px/2 - 325px);
  top: calc(50% - 415px/2 - 450px);
}

.artist-card:nth-child(3) { /* INK WARUNTORN */
  left: calc(50% - 300px/2);
  top: calc(50% - 415px/2 - 350px);
}

.artist-card:nth-child(4) { /* POY PORTRAIT */
  left: calc(50% - 300px/2 + 325px);
  top: calc(50% - 415px/2 - 450px);
}

.artist-card:nth-child(5) { /* NANN */
  left: calc(50% - 300px/2 + 650px);
  top: calc(50% - 415px/2 - 550px);
}

.artist-card:nth-child(6) { /* MAIY */
  left: calc(50% - 300px/2 - 650px);
  top: calc(50% - 415px/2 - 60px);
}

.artist-card:nth-child(7) { /* BEAN NAPASON */
  left: calc(50% - 300px/2 - 325px);
  top: calc(50% - 415px/2 + 40px);
}

.artist-card:nth-child(8) { /* EARTH PATRAEE */
  left: calc(50% - 300px/2);
  top: calc(50% - 415px/2 + 140px);
}

.artist-card:nth-child(9) { /* FLRT */
  left: calc(50% - 300px/2 + 325px);
  top: calc(50% - 415px/2 + 40px);
}

.artist-card:nth-child(10) { /* ONEONE */
  left: calc(50% - 300px/2 + 650px);
  top: calc(50% - 415px/2 - 60px);
}

.artist-card:nth-child(11) { /* BON NADOL */
  left: calc(50% - 300px/2 - 650px);
  top: calc(50% - 415px/2 + 350px);
}

/* ==================== */
/* FOOTER - USE DEFAULT STYLING */
/* ==================== */
/* Footer styling is handled by the main style.css file to maintain consistency across all pages */

/* ==================== */
/* HEADER - USE DEFAULT STYLING */
/* ==================== */
/* Header styling is handled by the main style.css file to maintain consistency across all pages */

/* ==================== */
/* ANIMATIONS & EFFECTS */
/* ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.filter-tag {
  animation: fadeInScale 0.4s ease forwards;
}

/* ==================== */
/* RESPONSIVE DESIGN */
/* ==================== */

/* Extra Large Desktop (1920px and above) - Larger sizes */
@media (min-width: 1920px) {
  .our-artists-container {
    width: 1600px; /* Larger container */
    padding: 60px 40px 120px;
  }
  
  .artists-main-title {
    font-size: clamp(120px, 15vw, 180px); /* Much larger title */
    max-width: 1000px;
  }
  
  .filter-tags-container {
    max-width: 1200px; /* Wider filter container */
    gap: 15px 10px; /* Larger gaps */
  }
  
  .filter-tag {
    height: 56px; /* Larger filter tags */
    padding: 0px 24px;
    font-size: 28px; /* Larger font */
    line-height: 34px;
  }
  
  .artists-section {
    margin: 230px auto 140px; /* Moved up for better spacing on 1920px screens */
  }
  
  .artists-grid {
    max-width: 1900px; /* Extra large grid for beautiful spacing on 1920px screens */
    min-height: 1100px; /* Larger height for better layout */
  }
  
  .artist-card {
    width: 320px; /* Larger cards */
    height: 440px;
  }
  
  /* Beautiful spacing for extra large screens (1920px+) */
  .artist-card:nth-child(1) { left: calc(50% - 320px/2 - 700px); top: calc(50% - 440px/2 - 600px); }
  .artist-card:nth-child(2) { left: calc(50% - 320px/2 - 350px); top: calc(50% - 440px/2 - 500px); }
  .artist-card:nth-child(3) { left: calc(50% - 320px/2); top: calc(50% - 440px/2 - 400px); }
  .artist-card:nth-child(4) { left: calc(50% - 320px/2 + 350px); top: calc(50% - 440px/2 - 500px); }
  .artist-card:nth-child(5) { left: calc(50% - 320px/2 + 700px); top: calc(50% - 440px/2 - 600px); }
  .artist-card:nth-child(6) { left: calc(50% - 320px/2 - 700px); top: calc(50% - 440px/2 - 100px); }
  .artist-card:nth-child(7) { left: calc(50% - 320px/2 - 350px); top: calc(50% - 440px/2); }
  .artist-card:nth-child(8) { left: calc(50% - 320px/2); top: calc(50% - 440px/2 + 100px); }
  .artist-card:nth-child(9) { left: calc(50% - 320px/2 + 350px); top: calc(50% - 440px/2); }
  .artist-card:nth-child(10) { left: calc(50% - 320px/2 + 700px); top: calc(50% - 440px/2 - 100px); }
  .artist-card:nth-child(11) { left: calc(50% - 320px/2 - 700px); top: calc(50% - 440px/2 + 400px); }
  
  .artist-image {
    height: 365px; /* Larger image area */
  }
  
  .artist-info {
    height: 95px; /* Larger info area */
    padding: 20px;
  }
  
  .artist-name {
    font-size: 22px; /* Larger artist name */
    line-height: 26px;
  }
}

/* Large Desktop */
@media (max-width: 1600px) {
  .our-artists-container {
    width: 100%;
    max-width: 1400px;
    padding: 85px 40px 100px;
  }
  
  .artists-grid {
    max-width: 1200px;
  }
  
  .artists-section {
    margin: 120px auto 100px; /* Large spacing for large desktop, bottom margin for footer */
  }
  
  /* Optimized cards for large desktop - beautiful layout */
  .artist-card {
    width: 280px; /* Balanced size - not too small, not too big */
    height: 385px; /* Proportional height */
  }
  
  .artist-image {
    height: 315px; /* Larger image area */
  }
  
  .artist-info {
    height: 85px; /* Comfortable info area */
    padding: 16px;
  }
  
  .artist-name {
    font-size: 21px; /* Good readable size */
    line-height: 25px;
  }
  
  /* Beautiful spacing layout for large desktop - moved up 50px total */
  /* แถว 1 - Row 1 (Cards 1-5) */
  .artist-card:nth-child(1) { left: calc(50% - 280px/2 - 580px); top: calc(50% - 385px/2 - 450px); }
  .artist-card:nth-child(2) { left: calc(50% - 280px/2 - 290px); top: calc(50% - 385px/2 - 370px); }
  .artist-card:nth-child(3) { left: calc(50% - 280px/2); top: calc(50% - 385px/2 - 290px); }
  .artist-card:nth-child(4) { left: calc(50% - 280px/2 + 290px); top: calc(50% - 385px/2 - 370px); }
  .artist-card:nth-child(5) { left: calc(50% - 280px/2 + 580px); top: calc(50% - 385px/2 - 450px); }
  
  /* แถว 2 - Row 2 (Cards 6-10) - ขยับขึ้นนิดหน่อย */
  .artist-card:nth-child(6) { left: calc(50% - 280px/2 - 580px); top: calc(50% - 385px/2 - 35px); }
  .artist-card:nth-child(7) { left: calc(50% - 280px/2 - 290px); top: calc(50% - 385px/2 + 45px); }
  .artist-card:nth-child(8) { left: calc(50% - 280px/2); top: calc(50% - 385px/2 + 125px); }
  .artist-card:nth-child(9) { left: calc(50% - 280px/2 + 290px); top: calc(50% - 385px/2 + 45px); }
  .artist-card:nth-child(10) { left: calc(50% - 280px/2 + 580px); top: calc(50% - 385px/2 - 35px); }
  
  /* แถว 3 - Row 3 (Card 11) - ขยับลงเพื่อไม่ทับแถว 2 */
  .artist-card:nth-child(11) { left: calc(50% - 280px/2 - 580px); top: calc(50% - 385px/2 + 380px); }
}

/* Desktop */
@media (max-width: 1200px) {
  .our-artists-container {
    padding: 30px 30px 80px;
  }
  
  .title-section {
    margin-top: -30px;
  }
  
  .artists-main-title {
    font-size: clamp(60px, 14vw, 120px); /* Much larger for desktop */
  }
  
  .filter-tags-container {
    max-width: 800px;
  }
  
  .artists-grid {
    max-width: 1000px;
  }
  
  /* Adjust card positions for desktop */
  .artist-card:nth-child(1) { left: 5%; top: 0px; }
  .artist-card:nth-child(2) { left: 25%; top: 80px; }
  .artist-card:nth-child(3) { left: 45%; top: 40px; }
  .artist-card:nth-child(4) { left: 65%; top: 120px; }
  .artist-card:nth-child(5) { left: 85%; top: 60px; }
  .artist-card:nth-child(6) { left: 5%; top: 400px; }
  .artist-card:nth-child(7) { left: 25%; top: 480px; }
  .artist-card:nth-child(8) { left: 45%; top: 440px; }
  .artist-card:nth-child(9) { left: 65%; top: 520px; }
  .artist-card:nth-child(10) { left: 85%; top: 460px; }
  .artist-card:nth-child(11) { left: 15%; top: 760px; }
}

/* Tablet */
@media (max-width: 992px) {
  .our-artists-container {
    padding: 20px 20px 60px;
  }
  
  .title-section {
    margin-top: -20px;
    margin-bottom: 30px;
  }
  
  .artists-main-title {
    font-size: clamp(55px, 16vw, 100px); /* Much larger for tablet */
  }
  
  .artists-section {
    margin: 200px auto 80px; /* Much larger spacing for tablet, bottom margin for footer */
  }
  
  .filter-tags-container {
    max-width: 600px;
    gap: 8px 4px;
  }
  
  .filter-tag {
    font-size: 18px;
    padding: 0px 12px;
    height: 40px;
  }
  
  .navbar {
    padding: 0 15px;
  }
  
  .nav-list {
    gap: 25px;
  }
  
  .nav-link {
    font-size: 16px;
  }
  

  
  /* Switch to responsive grid for tablets */
  .artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(271px, 1fr));
    gap: 30px;
    max-width: 900px;
  }
  
  .artist-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
    max-width: 271px;
    margin: 0 auto;
  }
  
}

/* Mobile Large */
@media (max-width: 768px) {
  .our-artists-container {
    padding: 15px 15px 50px;
  }
  
  .title-section {
    margin-top: -10px;
    margin-bottom: 25px;
  }
  
  .artists-main-title {
    font-size: clamp(50px, 14vw, 85px); /* Much larger for mobile large */
    line-height: 1;
  }
  
  .filter-section {
    margin-bottom: 40px;
  }
  
  .artists-section {
    margin: 80px auto 60px; /* Much larger spacing for mobile large, bottom margin for footer */
  }
  
  /* Adjust main content for mobile header */
  .main-content {
    padding-top: 60px;
  }
  
  .filter-tags-container {
    gap: 6px 3px;
  }
  
  .filter-tag {
    font-size: 16px;
    padding: 0px 10px;
    height: 36px;
  }
  
  .artists-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
  
  .artist-card {
    max-width: 250px;
    height: 320px; /* Smaller total height */
  }
  
  .artist-image {
    height: 260px; /* Smaller image area */
  }
  
  .artist-info {
    height: 60px; /* Much smaller info area */
    padding: 10px; /* Less padding */
  }
  
  .artist-name {
    font-size: 16px; /* Smaller font */
    line-height: 18px;
  }
  
  /* Adjust main content for mobile header */
  .main-content {
    padding-top: 80px;
  }
  

}

/* Mobile Small */
@media (max-width: 480px) {
  .our-artists-container {
    padding: 10px 10px 40px;
  }
  
  .title-section {
    margin-top: -5px;
    margin-bottom: 20px;
  }
  
  .artists-main-title {
    font-size: clamp(40px, 16vw, 70px); /* Much larger for mobile small */
  }
  
  .artists-section {
    margin: 60px auto 50px; /* Much larger spacing for mobile small, bottom margin for footer */
  }
  
  .filter-tags-container {
    gap: 4px 2px;
  }
  
  .filter-tag {
    font-size: 14px;
    padding: 0px 8px;
    height: 32px;
    min-width: auto;
  }
  
  .artists-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .artist-card {
    max-width: 100%;
    width: 100%;
    height: 300px; /* Smaller total height */
  }
  
  .artist-image {
    height: 240px; /* Smaller image area */
  }
  
  .artist-info {
    height: 60px; /* Much smaller info area */
    padding: 8px; /* Less padding */
  }
  
  .artist-name {
    font-size: 15px; /* Smaller font */
    line-height: 17px;
  }
  
  .main-content {
    padding-top: 50px;
  }
  

}

/* ==================== */
/* ACCESSIBILITY */
/* ==================== */
@media (prefers-reduced-motion: reduce) {
  .artist-card,
  .filter-tag,
  .artists-main-title,
  .filter-tags-container {
    animation: none;
    transition: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .artist-card {
    border: 2px solid #000;
  }
  
  .filter-tag {
    border: 2px solid #000;
  }
  
  .filter-tag.active {
    background: #000;
    color: #FFE600;
  }
}

/* Masonry layout — make it win everywhere */
.artists-grid {
  column-count: 4;      /* tweak to taste */
  column-gap: 2rem;
  padding: 2rem 5%;
}

/* Cards must be in normal flow, not absolutely positioned */
.artist-card {
  position: static !important;  /* override earlier absolute + media-query rules */
  left: auto !important;
  top: auto !important;

  display: inline-block;
  width: 100%;
  margin: 0 0 2rem;
  break-inside: avoid;          /* avoid column breaks inside a card */
}

/* Optional: responsive columns */
@media (max-width: 1600px) { .artists-grid { column-count: 4; } }
@media (max-width: 1200px) { .artists-grid { column-count: 3; } }
@media (max-width: 992px)  { .artists-grid { column-count: 2; } }
@media (max-width: 576px)  { .artists-grid { column-count: 1; } }
