/* ========================================
   INNER GARDEN - Main Styles
   Clean & Professional Design
   ======================================== */

/* ========================================
   GALLERY GRID - Perfect Layout
   ======================================== */

.gallery-grid,
.artworks-grid,
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 2rem 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ========================================
   ARTWORK CARDS - Clean Design
   ======================================== */

.artwork-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  contain: layout style paint;
}

.artwork-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================
   ARTWORK IMAGES - Full Display
   ======================================== */

.artwork-image,
.artwork-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  min-height: auto;
  display: block;
  background: linear-gradient(135deg, #f4f0ea 0%, #faf6f0 100%);
  padding: 0;
  margin-bottom: 1rem;
  overflow: hidden !important;
  border-radius: 20px;
}

.artwork-image img,
.artwork-image-container img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
  margin: 0;
  padding: 0;
  background-color: #f0ece6;
}

.artwork-card:hover .artwork-image img,
.artwork-card:hover .artwork-image-container img {
  transform: scale(1.03);
}

/* ========================================
   ARTWORK OVERLAY
   ======================================== */

.artwork-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  left: auto;
  bottom: auto;
  padding: 0;
  background: none;
  color: inherit;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: flex-end;
  z-index: 10;
  border-radius: 0;
}

.artwork-card:hover .artwork-overlay {
  opacity: 1;
  visibility: visible;
}

.artwork-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f39c12;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.artwork-details,
.artwork-meta {
  font-size: 0.95rem;
  opacity: 0.95;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

/* ========================================
   ARTWORK INFO
   ======================================== */

.artwork-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: white;
}

.artwork-info h3,
.artwork-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  line-height: 1.3;
  font-family: 'Playfair Display', serif;
  transition: color 0.3s ease;
}

.artwork-card:hover .artwork-info h3,
.artwork-card:hover .artwork-title {
  color: #e67e22;
}

.artwork-info p,
.artwork-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   ARTWORK STATUS BADGE
   ======================================== */

.artwork-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(46, 204, 113, 0.95);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 24px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 20;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.artwork-status.sold {
  background: rgba(231, 76, 60, 0.95);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.artwork-status.reserved {
  background: rgba(243, 156, 18, 0.95);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* ========================================
   RESPONSIVE - Mobile
   ======================================== */

@media (max-width: 768px) {
  .gallery-grid,
  .artworks-grid,
  .collection-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .artwork-image,
  .artwork-image-container {
    min-height: auto;
    aspect-ratio: 3 / 4;
    padding: 0;
  }

  /* Show action buttons on mobile without dimming the artwork */
  .artwork-overlay {
    opacity: 1;
    visibility: visible;
    top: 0.85rem;
    right: 0.85rem;
    padding: 0;
  }

  .artwork-price {
    font-size: 1.4rem;
  }

  .artwork-info h3,
  .artwork-title {
    font-size: 1.15rem;
  }

  .artwork-card {
    border-radius: 14px;
  }

  .artwork-card:hover {
    transform: none;
  }

  .artwork-card:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
  }
}

@media (max-width: 480px) {
  .gallery-grid,
  .artworks-grid,
  .collection-grid {
    gap: 1.25rem;
    padding: 0.75rem;
  }

  .artwork-overlay {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0;
  }

  .artwork-price {
    font-size: 1.3rem;
  }
}

/* ========================================
   RESPONSIVE - Tablet
   ======================================== */

@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-grid,
  .artworks-grid,
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .artwork-image,
  .artwork-image-container {
    aspect-ratio: 3 / 4;
  }
}

/* ========================================
   RESPONSIVE - Desktop
   ======================================== */

@media (min-width: 1025px) and (max-width: 1399px) {
  .artwork-image,
  .artwork-image-container {
    aspect-ratio: 3 / 4;
  }
}

/* ========================================
   RESPONSIVE - Large Desktop
   ======================================== */

@media (min-width: 1400px) {
  .artwork-image,
  .artwork-image-container {
    aspect-ratio: 3 / 4;
  }
}
