/* Wallpaper Page Styles */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--color-secondary);
}

.breadcrumb .separator {
  color: var(--color-muted);
  opacity: 0.5;
}

.breadcrumb .current {
  color: var(--color-primary);
  font-weight: 600;
}

/* Wallpaper Hero */
.wallpaper-hero {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  justify-content: center;
}

.wallpaper-container {
  max-width: 1200px;
  width: 100%;
}

/* Image Container */
.wallpaper-image-container {
  position: relative;
  width: 100%;
  max-height: 70vh;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 2rem;
}

.wallpaper-image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.wallpaper-image.loaded {
  opacity: 1;
}

/* Loading Spinner */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-spinner.hidden {
  display: none;
}

/* Wallpaper Info */
.wallpaper-info {
  padding: 1rem 0;
}

.wallpaper-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.category-badge {
  background: var(--color-secondary);
  color: var(--color-bg);
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 4px;
}

.quality-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-primary);
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 4px;
}

.stats-badge {
  background: rgba(0, 217, 255, 0.1);
  color: var(--color-secondary);
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-left: auto;
}

.wallpaper-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.wallpaper-description {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Download Actions */
.download-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-download.primary {
  background: var(--color-secondary);
  color: var(--color-bg);
}

.btn-download.primary:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 51, 102, 0.3);
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-share:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-secondary);
}

/* Related Section */
.related-section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.related-item {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.related-item:hover {
  transform: scale(1.03);
}

.related-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.8));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.related-item:hover .overlay {
  opacity: 1;
}

.related-item .overlay span {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.view-all-container {
  display: flex;
  justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .wallpaper-hero {
    padding: 6rem 1rem 2rem;
  }

  .wallpaper-image-container {
    border-radius: 12px;
  }

  .wallpaper-title {
    font-size: 1.75rem;
  }

  .download-actions {
    flex-direction: column;
  }

  .btn-download,
  .btn-share {
    width: 100%;
    justify-content: center;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  .breadcrumb {
    font-size: 0.75rem;
  }
}
