/**
 * Studio Track - Artworks & Artists Showcase Stylesheet (works.css)
 * High-end luxury gold & deep navy palette, 3D carousel, responsive grid
 */

/* =============================================================================
   Header & Banner
   ============================================================================= */
.works-hero-banner {
  position: relative;
  padding: 5rem 1.5rem 3.5rem;
  background: linear-gradient(180deg, rgba(30, 58, 95, 0.08) 0%, rgba(245, 242, 237, 0.6) 100%);
  border-bottom: 1px solid var(--border-subtle, rgba(30, 58, 95, 0.12));
  text-align: center;
  overflow: hidden;
}

.works-hero-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(212, 175, 55, 0.12) 50%, transparent 75%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
}

.works-banner-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.works-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.works-breadcrumb a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.works-breadcrumb a:hover {
  color: var(--gold-light, #2563EB);
}

.works-hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.works-hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.works-hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.works-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-gold);
}

.works-metric-badge i {
  color: #d4af37;
  font-size: 1.1rem;
}

/* =============================================================================
   Section Headers
   ============================================================================= */
.works-section {
  padding: 4.5rem 0;
  position: relative;
}

.works-section-alt {
  background: linear-gradient(180deg, #F0EDE8 0%, #F5F2ED 100%);
}

.works-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.works-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light, #2563EB);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.works-section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.works-section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================================================
   1. 3D Artists Carousel
   ============================================================================= */
.artists-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1200px;
  padding: 2rem 1rem 3rem;
  overflow: hidden;
}

.artists-3d-stage {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.artist-3d-card {
  position: absolute;
  width: 290px;
  height: 440px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--border-gold, rgba(30, 58, 95, 0.2));
  box-shadow: 0 15px 35px -5px rgba(30, 58, 95, 0.18), 0 0 20px rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.35, 1),
              opacity 0.6s ease,
              box-shadow 0.4s ease,
              filter 0.6s ease;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(12px);
}

.artist-3d-card.active {
  z-index: 10;
  border-color: #d4af37;
  box-shadow: 0 25px 50px -10px rgba(30, 58, 95, 0.28), 0 0 35px rgba(212, 175, 55, 0.35);
  cursor: default;
}

.artist-card-img-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #e2e8f0;
}

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

.artist-3d-card:hover .artist-card-img {
  transform: scale(1.05);
}

.artist-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(30, 58, 95, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}

html[data-lang="en"] .artist-card-badge {
  right: auto;
  left: 12px;
}

.artist-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.artist-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.artist-card-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.artist-card-footer {
  margin-top: 1rem;
}

.artist-explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--gold-gradient, linear-gradient(135deg, #1E3A5F 0%, #2563EB 100%));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.artist-explore-btn:hover {
  background: linear-gradient(135deg, #14294A 0%, #1D4ED8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  color: #fff;
}

/* 3D Carousel Controls */
.artists-3d-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.carousel-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-gold, rgba(30, 58, 95, 0.25));
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-gold);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.carousel-nav-btn:hover {
  background: var(--primary-gold);
  color: #fff;
  border-color: var(--primary-gold);
  transform: scale(1.08);
}

.carousel-indicators {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  width: 28px;
  border-radius: 10px;
  background: var(--gold-light, #2563EB);
}

/* =============================================================================
   2. Top Performing Works (Horizontal Slider)
   ============================================================================= */
.top-works-slider-wrap {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
}

.top-works-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.5rem 2rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.top-works-slider::-webkit-scrollbar {
  display: none;
}

.work-card-large {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.work-card-large:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(37, 99, 235, 0.15);
}

.work-thumb-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: #1e293b;
  overflow: hidden;
}

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

.work-card-large:hover .work-thumb-img {
  transform: scale(1.06);
}

.work-featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

html[data-lang="en"] .work-featured-badge {
  right: auto;
  left: 12px;
}

.work-date-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
}

html[data-lang="en"] .work-date-badge {
  left: auto;
  right: 12px;
}

.work-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.work-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.work-artists-line {
  font-size: 0.88rem;
  color: var(--gold-light, #2563EB);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.work-artists-line a {
  color: inherit;
  text-decoration: none;
  transition: text-decoration 0.2s;
}

.work-artists-line a:hover {
  text-decoration: underline;
}

/* Platform Stats Grid */
.work-platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle);
}

.platform-stat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.7rem;
  background: rgba(245, 242, 237, 0.85);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.82rem;
  transition: all var(--transition-fast);
}

.platform-stat-btn:hover {
  background: #fff;
  border-color: var(--gold-light, #2563EB);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.platform-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.platform-brand.youtube i { color: #FF0000; }
.platform-brand.tiktok i { color: #000000; }
.platform-brand.instagram i { color: #E1306C; }
.platform-brand.facebook i { color: #1877F2; }
.platform-brand.spotify i { color: #1DB954; }
.platform-brand.anghami i { color: #D52243; }

.platform-count {
  font-weight: 700;
  color: var(--primary-gold);
  direction: ltr;
  unicode-bidi: isolate;
}

/* =============================================================================
   3. Latest Releases This Month (Horizontal Row Cards)
   ============================================================================= */
.month-works-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1rem;
}

.month-work-row {
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.month-work-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.month-work-thumb-side {
  width: 260px;
  min-width: 260px;
  position: relative;
  background: #0f172a;
}

.month-work-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.month-work-content-side {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
}

.month-work-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.month-badge-new {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.month-work-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.month-work-artists {
  font-size: 0.95rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.month-work-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.month-work-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.empty-month-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.empty-month-box i {
  font-size: 2.5rem;
  color: #d4af37;
  margin-bottom: 1rem;
}

.empty-month-box h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-month-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =============================================================================
   4. All Artworks Grid with Live Filter / Search
   ============================================================================= */
.all-works-filter-bar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin: 0 auto 2.5rem;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.filter-search-box {
  position: relative;
  flex: 1 1 280px;
}

.filter-search-input {
  width: 100%;
  padding: 0.75rem 2.8rem 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

html[data-lang="en"] .filter-search-input {
  padding: 0.75rem 1rem 0.75rem 2.8rem;
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.filter-search-icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

html[data-lang="en"] .filter-search-icon {
  right: auto;
  left: 1rem;
}

.filter-selects-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 2 1 450px;
}

.filter-select {
  flex: 1 1 140px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-select:focus {
  outline: none;
  border-color: var(--gold-light);
}

.filter-reset-btn {
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--border-subtle);
  background: #fff;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.filter-reset-btn:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

/* Works Grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.work-grid-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.work-grid-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

/* Pagination */
.works-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
}

.page-num-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: #fff;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.page-num-btn:hover,
.page-num-btn.active {
  background: var(--gold-gradient);
  color: #fff;
  border-color: transparent;
}

/* =============================================================================
   5. Artist Profile Page (artist.php)
   ============================================================================= */
.artist-profile-header {
  position: relative;
  padding: 5rem 1.5rem 3.5rem;
  background: linear-gradient(180deg, rgba(30, 58, 95, 0.12) 0%, rgba(245, 242, 237, 0.8) 100%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.artist-profile-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.artist-avatar-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  min-width: 200px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, #d4af37, #2563eb);
  box-shadow: 0 15px 35px rgba(30, 58, 95, 0.25);
}

.artist-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
}

.artist-profile-info {
  flex-grow: 1;
}

.artist-name-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.artist-profile-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 750px;
}

.artist-social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.artist-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.artist-social-btn:hover {
  background: var(--gold-gradient);
  color: #fff;
  transform: translateY(-3px);
}

/* =============================================================================
   Responsive Breakpoints
   ============================================================================= */
@media (max-width: 992px) {
  .month-work-row {
    flex-direction: column;
  }
  .month-work-thumb-side {
    width: 100%;
    min-width: 100%;
    height: 220px;
  }
  .artist-profile-wrap {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .artist-social-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .works-hero-banner {
    padding: 3.5rem 1rem 2.5rem;
  }
  .artists-3d-stage {
    height: 480px;
  }
  .artist-3d-card {
    width: 250px;
    height: 400px;
  }
  .artist-card-img-wrap {
    height: 200px;
  }
  .all-works-filter-bar {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .filter-selects-group {
    flex-direction: column;
  }
  .works-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .artist-3d-card {
    width: 230px;
    height: 380px;
  }
  .work-card-large {
    flex: 0 0 290px;
  }
  .work-platforms-grid {
    grid-template-columns: 1fr;
  }
}

/* Respect user's reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .artist-3d-card,
  .work-card-large,
  .month-work-row,
  .work-grid-card {
    transition: none !important;
  }
}
