/* resolution-gallery-dark-theme.css - Dark theme styling for resolution gallery pages */

/* Apply dark theme to resolution gallery-specific elements when dark theme is active */
[data-theme="dark"] .gallery-container {
  color: var(--text-dark);
}

/* Gallery Header */
[data-theme="dark"] .gallery-header {
  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);
}

/* Gallery Controls */
[data-theme="dark"] .gallery-controls {
  background-color: var(--widget-bg);
  border: 1px solid var(--border-light);
  box-shadow: var(--secondary-shadow);
}

[data-theme="dark"] .form-select {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--text-dark);
}

[data-theme="dark"] .form-select:focus {
  border-color: var(--link-color);
  box-shadow: 0 0 0 0.25rem rgba(99, 179, 237, 0.25);
}

[data-theme="dark"] label {
  color: var(--text-dark);
}

/* Gallery Grid Items */
[data-theme="dark"] .gallery-item {
  background-color: var(--widget-bg);
  border: 1px solid var(--border-light);
  box-shadow: var(--secondary-shadow);
}

[data-theme="dark"] .gallery-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
}

[data-theme="dark"] .gallery-item-title {
  color: var(--text-dark);
}

[data-theme="dark"] .gallery-item-meta {
  color: var(--text-muted);
}

/* Thumbnails and Placeholders */
[data-theme="dark"] .gallery-thumbnail img {
  filter: brightness(0.9) contrast(1.1);
}

[data-theme="dark"] .no-preview-placeholder {
  background-color: var(--bg-light);
  color: var(--text-muted);
}

/* Item Action Buttons */
[data-theme="dark"] .gallery-item-actions .btn-primary {
  background-color: var(--primary-button);
  border-color: var(--primary-button);
  color: #ffffff;
}

[data-theme="dark"] .gallery-item-actions .btn-primary:hover {
  background-color: var(--primary-button-hover);
  border-color: var(--primary-button-hover);
  box-shadow: 0 0 8px rgba(99, 179, 237, 0.5);
}

[data-theme="dark"] .gallery-item-actions .btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
  color: #ffffff;
}

[data-theme="dark"] .gallery-item-actions .btn-success:hover {
  background-color: #2c9055;
  border-color: #2c9055;
  box-shadow: 0 0 8px rgba(56, 161, 105, 0.5);
}

/* Back Button */
[data-theme="dark"] .back-btn {
  background-color: var(--secondary-button);
  border-color: var(--secondary-button);
  color: #ffffff;
}

[data-theme="dark"] .back-btn:hover {
  background-color: var(--secondary-button-hover);
  border-color: var(--secondary-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 8px rgba(88, 108, 133, 0.5);
}

/* Pagination */
[data-theme="dark"] .gallery-pagination .page-link {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--link-color);
}

[data-theme="dark"] .gallery-pagination .page-link:hover {
  background-color: rgba(99, 179, 237, 0.1);
  color: var(--link-hover);
  border-color: var(--link-color);
}

[data-theme="dark"] .gallery-pagination .page-item.active .page-link {
  background-color: var(--primary-button);
  border-color: var(--primary-button);
  color: #ffffff;
}

[data-theme="dark"] .gallery-pagination .page-item.disabled .page-link {
  background-color: var(--bg-light);
  border-color: var(--border-light);
  color: var(--text-muted);
}

/* Empty state alert */
[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);
}

/* Add hover effects for gallery items */
[data-theme="dark"] .gallery-item {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Add subtle glow effect on hover */
@keyframes subtle-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"] .gallery-item:hover {
  animation: subtle-glow 2s infinite;
}

/* Add shine animation for buttons */
[data-theme="dark"] .gallery-item-actions .btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

[data-theme="dark"] .gallery-item-actions .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"] .gallery-item-actions .btn:hover::before {
  left: 100%;
}

/* Improve thumbnail hover effect */
[data-theme="dark"] .gallery-thumbnail {
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .gallery-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .gallery-item:hover .gallery-thumbnail::after {
  opacity: 1;
}

/* Mobile responsiveness for dark theme */
@media (max-width: 768px) {
  [data-theme="dark"] .gallery-controls form {
    flex-direction: column;
    align-items: start;
  }
  
  [data-theme="dark"] .gallery-header .d-flex {
    flex-direction: column;
    gap: 1rem;
  }
  
  [data-theme="dark"] .gallery-header .btn {
    align-self: flex-start;
  }
  
  [data-theme="dark"] .gallery-pagination .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }
}