/* Unified CSS for Pandora Results Pages */

/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  margin: 0;
  padding: 2rem;
  line-height: 1.6;
  color: #334155;
}

/* Container */
.container {
  /*background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
  padding: 3rem;
  max-width: 1400px;
  border: 1px solid rgba(255, 255, 255, 0.2);*/
  margin: 0 auto;
  
}

/* Table Styles */
table.html4vision {
  text-align: center;
  border-collapse: collapse;
  width: 100%;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.html4vision td {
  vertical-align: middle !important;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  background: #ffffff;
}

.html4vision th {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: black;
  padding: 1.5rem 1rem;
  font-weight: 600;
  border: 1px solid #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

/* Image Styles */
.html4vision td img {
  display: block;
  margin: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  max-width: 300px;
  max-height: 300px;
  width: auto;
  height: auto;
}

.html4vision td img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Back Button */
.back-button {
  background: linear-gradient(135deg, #1e293b, #334155, #475569);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.back-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.back-button:hover::before {
  left: 100%;
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
  color: white;
  text-decoration: none;
}

.back-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

/* Table Sorter Enhancements */
.tablesorter-materialize .tablesorter-header {
  cursor: pointer;
  position: relative;
}

.tablesorter-materialize .tablesorter-header::after {
  content: '↕';
  position: absolute;
  right: 8px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.tablesorter-materialize .tablesorter-header:hover::after {
  opacity: 1;
}

.tablesorter-materialize .tablesorter-headerAsc::after {
  content: '↑';
  opacity: 1;
}

.tablesorter-materialize .tablesorter-headerDesc::after {
  content: '↓';
  opacity: 1;
}

/* Zebra Striping */
.tablesorter-materialize tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.tablesorter-materialize tbody tr:hover {
  background-color: #f1f5f9;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .html4vision td img {
    max-width: 250px;
    max-height: 250px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  
  .container {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .html4vision td img {
    max-width: 200px !important;
    max-height: 200px !important;
  }
  
  .html4vision th,
  .html4vision td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .back-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }
  
  .container {
    padding: 1rem;
    border-radius: 12px;
  }
  
  .html4vision td img {
    max-width: 150px !important;
    max-height: 150px !important;
  }
  
  .html4vision th,
  .html4vision td {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
  }
  
  .back-button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    padding: 0;
  }
  
  .container {
    background: white;
    box-shadow: none;
    border: none;
    padding: 1rem;
  }
  
  .back-button {
    display: none;
  }
  
  .html4vision td img {
    max-width: 200px;
    max-height: 200px;
  }
}

/* Loading States */
.html4vision td img[src*="placeholder"] {
  opacity: 0.6;
  filter: grayscale(50%);
}

/* Focus States for Accessibility */
.back-button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.tablesorter-materialize .tablesorter-header:focus {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection Styles */
::selection {
  background-color: #3b82f6;
  color: white;
}

::-moz-selection {
  background-color: #3b82f6;
  color: white;
} 