/* ==========================================================================
   AIRISH - Artwork Detail Page Stylesheet (css/artwork-detail.css)
   ========================================================================== */

/* Top Navigation Header - Transparent Glass Blur */
.app-header.detail-header {
  background: transparent !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border-bottom: 0px solid var(--glass-border);
}

.app-header.detail-header .detail-nav-title {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Main Layout Padding for Sticky Action Bar */
.detail-main-content,
.overlay-main-content {
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
}

/* Hero Showcase Frame */
.artwork-hero-stage,
#artworkHeroSection,
#detailHeroSection,
#rentHeroSection {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
}

.artwork-hero-stage img,
#artworkHeroImg,
#detailHeroImg,
#rentHeroImg {
  width: 100%;
  aspect-ratio: 1 / 1.3;
  object-fit: cover;
  display: block;
}

/* Hero Bottom Action Row (Badge & WebAR Button aligned, space-between) */
.hero-bottom-actions {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  z-index: 2;
}

.hero-bottom-actions>* {
  pointer-events: auto;
}

.hero-bottom-actions .detail-badge-top-left,
.hero-bottom-actions .overlay-badge-top-left {
  position: static;
  top: auto;
  left: auto;
  bottom: auto;
  display: inline-flex;
  align-items: center;
}

.hero-bottom-actions #btnTriggerWebAR,
.hero-bottom-actions #btnDetailWebAR {
  position: static;
  bottom: auto;
  right: auto;
}

/* Hero Status Badge - Matching btnTriggerWebAR dark frosted glass aesthetic */
#artworkStatusBadge,
#detailStatusBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  border-radius: var(--radius-full);
  background: rgba(11, 15, 23, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.4;
}

#artworkStatusBadge::before,
#detailStatusBadge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52b788;
  box-shadow: 0 0 10px rgba(82, 183, 136, 0.85);
  flex-shrink: 0;
}

#artworkStatusBadge.rented::before,
#detailStatusBadge.rented::before {
  background: #e76f51;
  box-shadow: 0 0 10px rgba(231, 111, 81, 0.85);
}

/* Fallback direct positioning (Aligned at bottom, space-between) */
.detail-badge-top-left,
.overlay-badge-top-left {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
}

#btnTriggerWebAR,
#btnDetailWebAR {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(11, 15, 23, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 7px 20px;
}

#btnTriggerWebAR i,
#btnDetailWebAR i {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
}

#btnTriggerWebAR:hover,
#btnDetailWebAR:hover {
  background: rgba(18, 24, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Metadata & Artist Row */
.artwork-meta-header,
.overlay-meta-header {
  margin-bottom: 20px;
  width: 100%;
}

#artworkTitle,
#detailTitle,
#rentArtworkTitle {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  margin-top: -5px;
}

.artwork-artist-row,
.overlay-artist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.artwork-artist-info,
.overlay-artist-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

#artworkArtistSmallAvatar,
#detailArtistSmallAvatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

#artworkArtistName,
#detailArtistName {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

#artworkArtistSpecialty,
#detailArtistSpecialty,
#articleDateBadge,
.artwork-artist-specialty {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-sage);
  background: transparent;
  border: 1px solid rgba(148, 210, 189, 0.25);
  padding: 5px 15px;
  border-radius: 16px;
  display: inline-block;
  white-space: nowrap;
  margin-left: auto;
}

/* Specifications Grid */
.artwork-specs-grid,
.overlay-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0;
}

.spec-item-label,
.overlay-spec-label {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.artwork-specs-grid strong,
.overlay-specs-grid strong {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  line-height: 1.35;
}

#artworkDimensions,
#detailDimensions {
  font-size: var(--text-sm);
  color: var(--text-primary);
}

#artworkMedium,
#detailMedium {
  font-size: var(--text-xs);
  color: var(--text-primary);
  display: block;
  line-height: 1.3;
  font-weight: 500;
}

#artworkMovement,
#detailMovement,
#artworkCurator,
#detailCurator {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  line-height: 1.35;
}

.pantone-palette-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.pantone-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card, #1A2634);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 2px;
  width: 28px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
}

.pantone-swatch-item:hover,
.pantone-swatch-item:focus {
  transform: translateY(-2px);
  border-color: var(--accent-sage);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  outline: none;
}

.pantone-swatch-color {
  width: 100%;
  height: 16px;
  border-radius: 2px;
  display: block;
}

.pantone-swatch-code {
  font-size: 6px;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

/* Static fallback swatch classes */
.swatch-c1 {
  background-color: #1B4965;
}

.swatch-c2 {
  background-color: #94D2BD;
}

.swatch-c3 {
  background-color: #E9D8A6;
}

.swatch-c4 {
  background-color: #EE9B00;
}

/* Curator Notes */
.detail-section-title,
.overlay-curator-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
}

#artworkCuratorNotes,
#detailCuratorNotes {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  background: var(--glass-bg);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

/* ESG Social Impact Card */
.detail-esg-card,
.overlay-esg-card {}

.detail-esg-header,
.overlay-esg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.detail-esg-badge-title,
.overlay-esg-badge-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
}

.detail-esg-badge-verified,
.overlay-esg-badge-verified {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.detail-esg-grid,
.overlay-esg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.detail-esg-item,
.overlay-esg-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 6px;
  border-radius: var(--radius-sm);
}

#esgTherapyVal,
#detailEsgTherapyVal {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold);
  display: block;
}

#esgKitVal,
#detailEsgKitVal {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-sage);
  display: block;
}

#esgTrustVal,
#detailEsgTrustVal {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-lavender);
  display: block;
}

.detail-esg-metric-label,
.overlay-esg-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Artist Mini Profile Card */
.detail-artist-card,
.overlay-artist-card {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-md);
}

#artworkArtistAvatar,
#detailArtistAvatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-sage);
}

.detail-artist-info,
.overlay-artist-info-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.artist-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#artworkArtistCardName,
#detailArtistCardName {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#artworkArtistCardAge,
#detailArtistCardAge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.artist-card-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: space-between;
}

#artworkArtistCardDiagnosis,
#detailArtistCardDiagnosis {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-sage);
  background: transparent;
  border: 1px solid rgba(148, 210, 189, 0.25);
  padding: 5px 15px;
  border-radius: 16px;
  display: inline-block;
  white-space: nowrap;
}

.artist-card-location {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.artist-card-location i {
  font-size: 11px;
  color: var(--accent-sage);
}

#artworkArtistCardBio,
#detailArtistCardBio {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 7px 0 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Floating Bottom Checkout CTA Bar */
.detail-price-bar,
#detailFloatingBar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: transparent;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid rgb(108 108 108 / 20%);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)) 20px;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -1px;
}

.detail-price-label,
.overlay-price-label {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
}

#artworkPriceBar,
#detailPriceBar {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-sage);
}

.detail-price-unit,
.overlay-price-unit {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Luxury Dark Rotating Borderspin CTA Button (matches #arRentDirectBtn) */
#btnOpenRentalSheet,
#btnDetailOpenRentalSheet,
#detailModalViewArtBtn,
#btnPaidQris,
#btnPaidBca,
#btnPaidMandiri {
  position: relative;
  padding: 12px 25px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  z-index: 2;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  box-shadow: none;
  text-decoration: none;
}

/* Single-Beam White Rotating Borderspin */
#btnOpenRentalSheet::before,
#btnDetailOpenRentalSheet::before,
#detailModalViewArtBtn::before,
#btnPaidQris::before,
#btnPaidBca::before,
#btnPaidMandiri::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(250%, 600px);
  height: max(250%, 600px);
  background: conic-gradient(from 0deg,
      transparent 0deg,
      transparent 300deg,
      rgba(255, 255, 255, 0.2) 330deg,
      rgba(255, 255, 255, 0.7) 350deg,
      #ffffff 360deg);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: webarBorderSpin 3.2s linear infinite;
  z-index: 0;
  pointer-events: none;
}

/* Inner Mask to reveal crisp 1.5px single border stroke */
#btnOpenRentalSheet::after,
#btnDetailOpenRentalSheet::after,
#detailModalViewArtBtn::after,
#btnPaidQris::after,
#btnPaidBca::after,
#btnPaidMandiri::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: rgba(12, 16, 24, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-full);
  z-index: 1;
  pointer-events: none;
}

#btnOpenRentalSheet>*,
#btnDetailOpenRentalSheet>*,
#detailModalViewArtBtn>*,
#btnPaidQris>*,
#btnPaidBca>*,
#btnPaidMandiri>* {
  position: relative;
  z-index: 2;
}

#btnOpenRentalSheet:hover,
#btnDetailOpenRentalSheet:hover,
#detailModalViewArtBtn:hover,
#btnPaidQris:hover,
#btnPaidBca:hover,
#btnPaidMandiri:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 255, 255, 0.2);
}

#btnOpenRentalSheet:hover::before,
#btnDetailOpenRentalSheet:hover::before,
#detailModalViewArtBtn:hover::before,
#btnPaidQris:hover::before,
#btnPaidBca:hover::before,
#btnPaidMandiri:hover::before {
  animation-duration: 1.8s;
}

#btnOpenRentalSheet:hover::after,
#btnDetailOpenRentalSheet:hover::after,
#detailModalViewArtBtn:hover::after,
#btnPaidQris:hover::after,
#btnPaidBca:hover::after,
#btnPaidMandiri:hover::after {
  background: rgba(18, 24, 38, 0.92);
}

#btnOpenRentalSheet i,
#btnDetailOpenRentalSheet i,
#detailModalViewArtBtn i,
#btnPaidQris i,
#btnPaidBca i,
#btnPaidMandiri i {
  font-size: 16px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rental Sheet Subtitle & Selected Artwork Card */
.sheet-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.sheet-artwork-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg-tertiary);
  padding: 10px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

#sheetArtworkThumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

#sheetArtworkTitle {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}

#sheetArtworkArtist {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

#sheetDiscountText {
  color: var(--accent-sage);
}

#sheetFinalTotalPrice {
  color: var(--accent-sage);
  font-size: 1.1rem;
}

/* ==========================================================================
   Section: Artist Gallery (Horizontal Carousel 1:1)
   Identical layout to NEW ARTWORK section
   ========================================================================== */
.artist-gallery-section {
  position: relative;
  width: 100%;
  margin-top: 4px;
  margin-bottom: 8px;
  scroll-margin-bottom: 110px;
  scroll-margin-top: 70px;
}

.artist-gallery-section .gallery-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.artist-gallery-section .gallery-sub-curated {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.artist-gallery-section .gallery-badge-count {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-sage);
}

.artist-gallery-section .new-art-card.current-viewing .new-art-media {
  border-color: var(--accent-sage);
  box-shadow: 0 0 16px rgba(148, 210, 189, 0.25);
}

.artist-gallery-section .new-art-badge.active-now {
  color: var(--accent-sage);
  border-color: rgba(148, 210, 189, 0.4);
  background: rgba(11, 15, 23, 0.85);
}