/* gallery-dark-theme.css - Special dark theme styling for gallery pages */

/* Apply dark theme to gallery-specific elements when dark theme is active */
[data-theme="dark"] .gallery-container {
  color: var(--text-dark);
}

/* Gallery Welcome Section */
[data-theme="dark"] .gallery-welcome-section {
  background-color: var(--widget-bg);
  box-shadow: var(--secondary-shadow);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .gallery-title {
  color: var(--text-dark);
}

[data-theme="dark"] .gallery-description {
  color: var(--text-muted);
}

/* Stats Section */
[data-theme="dark"] .stat-number {
  color: var(--link-color);
}

[data-theme="dark"] .stat-label {
  color: var(--text-muted);
}

/* Category Filter Section */
[data-theme="dark"] .filter-btn {
  color: var(--text-dark);
  border-color: var(--border-light);
  background-color: transparent;
}

[data-theme="dark"] .filter-btn:hover {
  background-color: rgba(99, 179, 237, 0.1);
  border-color: var(--link-color);
}

[data-theme="dark"] .filter-btn.active {
  background-color: var(--primary-button);
  border-color: var(--primary-button);
  color: #ffffff;
}

/* Resolution Cards */
[data-theme="dark"] .resolution-card {
  background-color: var(--widget-bg);
  border: 1px solid var(--border-light);
  box-shadow: var(--secondary-shadow);
}

[data-theme="dark"] .resolution-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
}

[data-theme="dark"] .resolution-name {
  color: var(--text-dark);
}

[data-theme="dark"] .resolution-count {
  color: var(--text-muted);
}

[data-theme="dark"] .resolution-dimensions {
  color: var(--link-color);
}

[data-theme="dark"] .resolution-description {
  color: var(--text-muted);
}

/* No Preview Placeholder */
[data-theme="dark"] .no-preview-placeholder {
  background-color: var(--bg-light);
  color: var(--text-muted);
}

/* Featured Section */
[data-theme="dark"] .featured-section {
  background-color: var(--widget-bg);
  box-shadow: var(--secondary-shadow);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .featured-title {
  color: var(--text-dark);
}

[data-theme="dark"] .featured-description {
  color: var(--text-muted);
}

[data-theme="dark"] .featured-tag {
  background-color: var(--danger-color);
  color: #ffffff;
}

/* Resolution Overlay Effect */
[data-theme="dark"] .resolution-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* Gallery Card Hover Effects */
[data-theme="dark"] .resolution-card:hover .resolution-image img {
  transform: scale(1.05);
}

[data-theme="dark"] .resolution-card:hover .resolution-overlay {
  opacity: 1;
}

[data-theme="dark"] .resolution-browse-btn {
  color: #ffffff;
  background-color: var(--primary-button);
  border-color: var(--primary-button);
}

[data-theme="dark"] .resolution-browse-btn:hover {
  background-color: var(--primary-button-hover);
  border-color: var(--primary-button-hover);
  box-shadow: 0 0 10px rgba(99, 179, 237, 0.5);
}

/* Handle outlined buttons properly in dark mode */
[data-theme="dark"] .btn-outline-primary {
  color: var(--link-color);
  border-color: var(--link-color);
  background-color: transparent;
}

[data-theme="dark"] .btn-outline-primary:hover {
  color: #ffffff;
  background-color: var(--link-color);
  border-color: var(--link-color);
}

/* Special effect for gallery cards in dark mode */
@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(99, 179, 237, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(99, 179, 237, 0.4);
  }
  100% {
    box-shadow: 0 0 5px rgba(99, 179, 237, 0.2);
  }
}

[data-theme="dark"] .resolution-card:hover {
  animation: glow 2s infinite;
}

/* Image-specific adjustments for better contrast in dark mode */
[data-theme="dark"] .resolution-image img {
  filter: brightness(0.9) contrast(1.1);
}

/* Alert styling for gallery */
[data-theme="dark"] .alert-info {
  background-color: rgba(66, 153, 225, 0.2);
  border-color: rgba(66, 153, 225, 0.3);
  color: var(--text-dark);
}

/* Hover effect for browse buttons */
[data-theme="dark"] .resolution-browse-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

[data-theme="dark"] .resolution-browse-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

[data-theme="dark"] .resolution-browse-btn:hover::before {
  left: 100%;
}

/* Mobile responsiveness for dark theme */
@media (max-width: 768px) {
  [data-theme="dark"] .gallery-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  [data-theme="dark"] .stat-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }
  
  [data-theme="dark"] .category-filter {
    flex-wrap: wrap;
    justify-content: center;
  }
}