/* Digital Art Gallery Premium Styling */
.dag-gallery-container {
  background-color: #0b0c10;
  color: #fff;
  font-family: 'Inter', 'Roboto', sans-serif;
  padding: 40px 20px;
  position: relative;
  min-height: 500px;
  border-radius: 16px;
}

.dag-hero-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(90deg, #00f2fe, #4facfe, #00f2fe);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dag-shine 3s linear infinite;
  margin-bottom: 40px;
  line-height: 1.2;
}

@keyframes dag-shine {
  to { background-position: 200% center; }
}

/* Loading State */
.dag-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #a0a0a0;
}

.dag-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 242, 254, 0.1);
  border-top-color: #00f2fe;
  border-radius: 50%;
  animation: dag-spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes dag-spin {
  to { transform: rotate(360deg); }
}

.dag-hidden {
  display: none !important;
}

/* Featured Section & Orbiting Star System */
.dag-featured-section {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
  padding-top: 40px;
}

.dag-orbit-system {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dag-orbit-center {
  width: 250px;
  height: 250px;
  z-index: 2;
  position: relative;
}

.dag-orbit-path {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 150px;
  margin-top: -75px;
  margin-left: -200px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 242, 254, 0.3);
  animation: dag-orbitRotate 10s linear infinite;
  transform-style: preserve-3d;
  z-index: 1;
}

.dag-star {
  position: absolute;
  top: -12px;
  left: 50%;
  margin-left: -12px;
  font-size: 24px;
  color: #fceabb;
  text-shadow: 0 0 10px #fceabb, 0 0 20px #f8b500;
  animation: dag-starRotate 10s linear infinite reverse; /* Keeps star upright */
}

@keyframes dag-orbitRotate {
  0% { transform: rotateZ(0deg) rotateX(70deg); }
  100% { transform: rotateZ(360deg) rotateX(70deg); }
}

@keyframes dag-starRotate {
  0% { transform: rotateX(-70deg) rotateZ(0deg); }
  100% { transform: rotateX(-70deg) rotateZ(-360deg); }
}

/* Masonry Grid & Cards */
.dag-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.dag-artwork-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dag-artwork-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
  border-color: rgba(0, 242, 254, 0.5);
}

.dag-featured-card {
  height: 100%;
  width: 100%;
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.3);
}

.dag-image-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
}

.dag-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dag-artwork-card:hover .dag-image-wrapper img {
  transform: scale(1.05);
}

.dag-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dag-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.dag-artist {
  font-size: 0.9rem;
  color: #a0a0a0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dag-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fceabb 0%, #f8b500 100%);
  display: inline-block;
}

.dag-price {
  margin-top: auto;
  padding-top: 12px;
  font-weight: bold;
  color: #00f2fe;
}

.dag-btn { background: linear-gradient(90deg, #00f2fe, #4facfe); border: none; border-radius: 30px; color: #fff; padding: 12px 30px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; font-family: 'Inter', sans-serif; }
.dag-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 242, 254, 0.4); }
.dag-btn:disabled { opacity: 0.5; cursor: not-allowed; }
