/* Hans Gross Kriminalmuseum Archive - Styles */

/* CSS Custom Properties - Inspired by Hans Gross Museum */
:root {
  /* Primary Colors - Museum Orange/Red Theme */
  --color-primary: #e65100;
  --color-primary-light: #ff8a50;
  --color-primary-dark: #bf360c;
  --color-accent: #ff5722;
  --color-accent-light: #ff8a65;
  
  /* Secondary Colors - Museum Gray Navigation */
  --color-secondary: #616161;
  --color-secondary-light: #8e8e8e;
  --color-secondary-dark: #424242;
  
  /* Text Colors - High Contrast */
  --color-text: #212121;
  --color-text-muted: #757575;
  --color-text-light: #9e9e9e;
  
  /* Background Colors - Clean Museum Theme */
  --color-bg: #fafafa;
  --color-bg-alt: #f5f5f5;
  --color-surface: #ffffff;
  
  /* Status Colors - Modern, Vibrant */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  
  /* Border Colors - Subtle, Modern */
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --color-border-focus: #3b82f6;
  
  /* Font Stacks */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  
  /* Z-index Scale */
  --z-modal: 1000;
  --z-toast: 1100;
  --z-tooltip: 1200;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4) 0;
  font-weight: var(--font-semibold);
  line-height: 1.3;
}

p {
  margin: 0 0 var(--space-4) 0;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
}

/* Focus Styles */
:focus {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-2);
  background: var(--color-primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: var(--z-tooltip);
  font-weight: var(--font-medium);
}

.skip-link:focus {
  top: var(--space-2);
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }
}

/* Header - Museum Style */
.app-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.2);
  border-bottom: 2px solid var(--color-accent);
}

.app-header .container {
  min-height: 60px;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Experimental Notice */
.experiment-notice {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 243, 205, 0.95);
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid #ffc107;
  font-size: 11px;
  white-space: nowrap;
}

.notice-badge {
  background: #ffc107;
  color: #000;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.notice-text {
  color: #856404;
  font-weight: 500;
}

.header-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin: 0;
  letter-spacing: -0.025em;
}

.header-nav {
  display: flex;
  gap: var(--space-3);
}

.nav-explorer-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: all 0.2s ease;
}

.nav-explorer-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.explorer-icon {
  font-size: var(--text-base);
}

.header-icon {
  font-size: var(--text-3xl);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.header-stats {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.95);
  font-weight: var(--font-semibold);
  background: rgba(255, 255, 255, 0.15);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 767px) {
  .app-header .container {
    min-height: 64px;
  }
  
  .header-title {
    font-size: var(--text-xl);
  }
  
  .header-icon {
    font-size: var(--text-2xl);
  }
  
  .header-stats {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
  }
}

/* Search Section - Compact Style */
.search-section {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) 0;
  position: sticky;
  top: 60px;
  z-index: 10;
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 0;
}

.search-input {
  width: 100%;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  font-weight: var(--font-normal);
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(230, 81, 0, 0.1);
}

.search-input::placeholder {
  color: var(--color-text-light);
  font-weight: var(--font-normal);
}

.search-clear {
  position: absolute;
  right: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-accent);
  color: white;
  border: none;
  font-size: var(--text-lg);
  padding: var(--space-2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-clear:hover {
  background: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

.search-results-info {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
}

/* Main Layout */
.main-content {
  min-height: calc(100vh - 200px);
  padding: var(--space-8) 0;
}

.main-layout {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .main-layout {
    grid-template-columns: 280px 1fr;
  }
}

/* Filters Sidebar */
.filters-sidebar {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  height: fit-content;
  position: sticky;
  top: 90px;
  border: 1px solid var(--color-border-light);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

@media (max-width: 1023px) {
  .filters-sidebar {
    position: relative;
    top: auto;
  }
}

.filter-section {
  margin-bottom: var(--space-4);
}

.filter-section:last-child {
  margin-bottom: 0;
}

/* Time Period Slider Styles */
.time-slider-container {
  padding: var(--space-2) 0;
}

.time-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.time-slider-wrapper {
  position: relative;
  height: 40px;
  margin: var(--space-4) 0;
}

.time-slider {
  position: absolute;
  width: 100%;
  height: 6px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

.time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  pointer-events: auto;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.time-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  pointer-events: auto;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.time-slider-track {
  position: absolute;
  width: 100%;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  top: 50%;
  transform: translateY(-50%);
}

.time-slider-range {
  position: absolute;
  height: 6px;
  background: var(--color-primary);
  border-radius: 3px;
  top: 50%;
  transform: translateY(-50%);
}

.time-slider-output {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-3);
}

#time-output {
  font-weight: var(--font-semibold);
  color: var(--color-text);
  font-size: var(--text-base);
}

.reset-time-btn {
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-time-btn:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.filter-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: var(--space-1);
  display: inline-block;
}

/* Statistics Grid - Compact */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.stat-item {
  text-align: center;
  padding: var(--space-2) 0;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
}

.stat-number {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-size: 9px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--font-normal);
  margin-top: 2px;
}

/* Filter Controls */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.filter-checkbox:hover {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  transform: translateX(2px);
}

.filter-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 2px 4px rgba(230, 81, 0, 0.3);
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
}

.filter-label {
  font-size: var(--text-sm);
  color: var(--color-text);
}

.filter-description {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

/* Sort Select */
.sort-select {
  width: 100%;
  padding: var(--space-4) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: all 0.2s ease;
  cursor: pointer;
}

.sort-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.1);
}

/* Clear Filters Button */
.clear-filters-btn {
  width: 100%;
  padding: var(--space-4) var(--space-4);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 2px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  color: var(--color-error);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: all 0.2s ease;
}

.clear-filters-btn:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
  border-color: var(--color-error);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
  display: none;
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-4);
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.mobile-filter-toggle:hover {
  transform: translateY(-1px);
}

@media (max-width: 1023px) {
  .mobile-filter-toggle {
    display: flex;
  }
  
  .filters-sidebar {
    display: none;
  }
  
  .filters-sidebar.active {
    display: block;
  }
}

.toggle-arrow {
  transition: transform 0.2s ease;
}

.mobile-filter-toggle[aria-expanded="true"] .toggle-arrow {
  transform: rotate(180deg);
}

/* Results Section */
.results-section {
  min-height: 400px;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}

.loading-message {
  margin-bottom: var(--space-8);
  color: var(--color-text-muted);
}

.loading-icon {
  font-size: var(--text-2xl);
  margin-right: var(--space-2);
}

.loading-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
  max-width: 1000px;
  margin: 0 auto;
}

.loading-skeleton {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.skeleton-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.skeleton-text {
  height: 1rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

.skeleton-title {
  height: 1.5rem;
  width: 80%;
}

.skeleton-description {
  width: 100%;
}

.skeleton-meta {
  width: 60%;
}

@keyframes skeleton-loading {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

/* Error State */
.error-state {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}

.error-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.error-state h3 {
  color: var(--color-error);
  margin-bottom: var(--space-2);
}

.error-state p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}

.empty-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.empty-state h3 {
  margin-bottom: var(--space-2);
}

.empty-state p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* Results Container */
.results-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-6);
}

.view-controls {
  display: flex;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.view-toggle {
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg);
  border: none;
  border-right: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all 0.2s ease;
}

.view-toggle:last-child {
  border-right: none;
}

.view-toggle:hover {
  background: var(--color-bg-alt);
}

.view-toggle.active {
  background: var(--color-primary);
  color: white;
}

/* Object Grid */
.object-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .object-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

.object-grid.list-view {
  grid-template-columns: 1fr;
  gap: 1px;
}

/* Object Card */
.object-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--color-border-light);
}

.object-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(230, 81, 0, 0.15), 0 0 0 1px rgba(230, 81, 0, 0.1);
  border-color: var(--color-accent);
}

.card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover Zoom Effect for Images */
.object-card:hover .card-image img {
  transform: scale(1.1);
}

/* Advanced Hover Zoom with Preview */
.card-image .zoom-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 200%;
  height: 200%;
  background: white;
  border: 2px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 100;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.card-image:hover .zoom-preview {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.card-image .zoom-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Loading States for Images */
.card-image img.loading {
  opacity: 0;
}

.card-image.is-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card-image .loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.placeholder-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-2);
}

.image-overlay {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.object-card:hover .image-overlay {
  opacity: 1;
}

.quick-view-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-2);
  font-size: var(--text-lg);
}

.card-content {
  padding: var(--space-4);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.object-id {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.object-type {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  font-weight: var(--font-medium);
  letter-spacing: 0.05em;
}

.object-type.karteikarte {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.object-type.objekte {
  background: linear-gradient(135deg, rgba(230, 81, 0, 0.15) 0%, rgba(230, 81, 0, 0.05) 100%);
  color: var(--color-primary);
  border: 1px solid rgba(230, 81, 0, 0.2);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.card-description {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.creation-date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.availability-indicators {
  display: flex;
  gap: var(--space-1);
}

.availability-indicators span {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-weight: var(--font-medium);
}

.availability-indicators .available {
  background: rgba(56, 161, 105, 0.1);
  color: var(--color-success);
}

.availability-indicators .missing {
  background: rgba(229, 62, 62, 0.1);
  color: var(--color-error);
}

.card-actions {
  padding: 0 var(--space-4) var(--space-4);
}

/* List View Styles - Compact without images */
.object-grid.list-view .object-card {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  box-shadow: none;
  border: 1px solid var(--color-border-light);
  background: var(--color-bg);
}

.object-grid.list-view .object-card:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: var(--color-surface);
}

.object-grid.list-view .card-image {
  display: none;
}

.object-grid.list-view .card-content {
  flex: 1;
  padding: 0;
  display: grid;
  grid-template-columns: 120px 1fr 200px auto;
  gap: var(--space-3);
  align-items: center;
}

.object-grid.list-view .card-title {
  font-size: var(--text-sm);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.object-grid.list-view .card-meta {
  display: none;
}

.object-grid.list-view .card-description {
  font-size: var(--text-xs);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--color-text-muted);
}

.object-grid.list-view .card-badges {
  display: flex;
  gap: var(--space-1);
}

.object-grid.list-view .card-badge {
  font-size: 9px;
  padding: 2px 6px;
}

.object-grid.list-view .card-actions {
  padding: 0;
  display: flex;
  gap: var(--space-1);
}

.object-grid.list-view .card-action {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
}

/* Buttons */
.btn-primary,
.btn-secondary {
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(230, 81, 0, 0.3);
  font-weight: var(--font-semibold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(230, 81, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-weight: var(--font-medium);
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow-y: auto;
  padding: var(--space-4);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  max-width: 900px;
  margin: var(--space-8) auto;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--text-2xl);
  color: var(--color-text-muted);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-content {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: var(--space-4);
  padding: var(--space-4);
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

@media (max-width: 767px) {
  .modal-content {
    grid-template-columns: 1fr;
  }
}

.modal-image-section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.image-container {
  position: relative;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  flex: 1;
}

/* Move downloads and sharing below image */
.modal-image-section .action-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--color-border-light);
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-controls {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  display: flex;
  gap: var(--space-1);
}

.image-control-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-2);
  font-size: var(--text-sm);
  transition: background-color 0.2s ease;
}

.image-control-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.modal-info-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.metadata-section h3,
.download-section h3,
.sharing-section h3 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.metadata-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.metadata-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.metadata-item label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metadata-value {
  color: var(--color-text);
}

.description-content {
  line-height: 1.6;
  max-height: 150px;
  overflow-y: auto;
}

.download-section.compact {
  border: none;
  padding: 0;
  margin: 0;
}

.download-section.compact h3 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-2);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-xs);
  transition: all 0.2s ease;
}

.download-link:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.download-meta {
  font-size: 10px;
  opacity: 0.7;
}

.download-note {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-style: italic;
  margin: 0;
}

.sharing-section.compact {
  border: none;
  padding: 0;
  margin: 0;
}

.sharing-section.compact h3 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.citation-output {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.citation-text {
  width: 100%;
  min-height: 100px;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.5;
  background: var(--color-bg);
  resize: vertical;
}

.modal-footer {
  display: flex;
  justify-content: center;
  padding: var(--space-4);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.modal-navigation {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.object-position {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--font-medium);
}

/* Footer - Museum Style */
.app-footer {
  background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-secondary) 100%);
  color: white;
  padding: var(--space-12) 0;
  margin-top: var(--space-16);
  border-top: 4px solid var(--color-accent);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 767px) {
  .footer-content {
    flex-direction: column;
    gap: var(--space-6);
    text-align: center;
  }
}

.footer-info p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.footer-info a {
  color: var(--color-accent-light);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: var(--font-medium);
}

.footer-info a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-link {
  background: none;
  border: none;
  color: var(--color-accent-light);
  font-size: var(--text-sm);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
  font-weight: var(--font-medium);
}

.footer-link:hover {
  color: var(--color-accent);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-toast);
  max-width: 400px;
}

.toast {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid var(--color-success);
}

.toast.error {
  border-left: 4px solid var(--color-error);
}

.toast.warning {
  border-left: 4px solid var(--color-warning);
}

.toast-icon {
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: var(--font-medium);
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
}

.toast-message {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.toast-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: var(--color-text);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: var(--font-bold); }
.font-medium { font-weight: var(--font-medium); }

.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.text-muted { color: var(--color-text-muted); }

.bg-success { background-color: var(--color-success); }
.bg-warning { background-color: var(--color-warning); }
.bg-error { background-color: var(--color-error); }

.border-success { border-color: var(--color-success); }
.border-warning { border-color: var(--color-warning); }
.border-error { border-color: var(--color-error); }

.hidden { display: none !important; }
.visible { display: block !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }

.p-0 { padding: 0 !important; }
.p-2 { padding: var(--space-2) !important; }
.p-4 { padding: var(--space-4) !important; }
.p-6 { padding: var(--space-6) !important; }

/* Search Result Highlighting */
.search-highlight {
  background: rgba(214, 158, 46, 0.3);
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
  font-weight: var(--font-medium);
}

/* Loading Animation for Images */
.lazy-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

/* Responsive Images */
.responsive-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Focus Visible for Better UX */
@supports selector(:focus-visible) {
  :focus {
    outline: none;
  }
  
  :focus-visible {
    outline: 2px solid var(--color-border-focus);
    outline-offset: 2px;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --color-border: #000000;
    --color-text-muted: #333333;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .app-header,
  .search-section,
  .filters-sidebar,
  .modal-overlay,
  .app-footer,
  .toast-container {
    display: none !important;
  }
  
  .object-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .object-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  body {
    background: white;
    color: black;
  }
}

/* Remove Dark Mode Support */
/* Dark Mode Support (Removed for Light Theme) */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-bg-alt);
}