/* ==========================================
   ADC Research Poster - Scientific Theme
   ========================================== */

/* CSS Variables - Scientific Medical Theme */
:root {
  --primary-blue: #0A4D8C;
  --primary-blue-dark: #083A6B;
  --secondary-teal: #00B4A6;
  --accent-purple: #6B46C1;
  --clinical-green: #059669;
  --lab-orange: #DC6803;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-600: #4B5563;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --app-bg: #FFFFFF;
  --card-bg: #F8FAFC;
  --card-border: #E2E8F0;
}

/* Global Styles - Clean Scientific Design */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: var(--app-bg);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Container Styles */
#main-content {
  min-height: 100vh;
  padding-bottom: 5rem;
}

/* Bottom Navigation Styles */
.bottom-nav-btn {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

.bottom-nav-btn.active i,
.bottom-nav-btn.active span {
  color: var(--primary-blue) !important;
}

/* Drawer Menu Styles */
#side-drawer.open #drawer-content {
  transform: translateX(0);
}

#side-drawer.open {
  display: block;
}

/* Floating Action Button - Scientific Theme */
#fab-button {
  box-shadow: 0 4px 12px rgba(10, 77, 140, 0.4);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

#fab-button:hover {
  box-shadow: 0 8px 20px rgba(10, 77, 140, 0.5);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Scientific Section Cards */
.section-card {
  background: var(--card-bg);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--card-border);
}

.section-card:active {
  transform: scale(0.98);
}

.section-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 77, 140, 0.15);
  border-color: var(--secondary-teal);
}

.section-card.active {
  border-left: 4px solid var(--primary-blue);
  box-shadow: 0 4px 12px rgba(10, 77, 140, 0.2);
  background: linear-gradient(to right, rgba(10, 77, 140, 0.02), transparent);
}

/* Side Drawer Styles */
#side-drawer.open #drawer-content {
  transform: translateX(0);
}

#drawer-nav .drawer-item {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

#drawer-nav .drawer-item:hover {
  background-color: var(--gray-100);
}

#drawer-nav .drawer-item.active {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

#drawer-nav .drawer-item i {
  width: 24px;
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

/* Bottom Navigation Styles */
.bottom-nav-btn.active i,
.bottom-nav-btn.active span {
  color: var(--primary-blue);
}

.bottom-nav-btn:active {
  background-color: var(--gray-100);
}

/* Floating Action Button */
#fab-button {
  animation: fab-bounce 2s infinite;
}

@keyframes fab-bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.05);
  }
}

#fab-button:hover {
  animation: none;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

/* App Header Gradient */
header {
  backdrop-filter: blur(10px);
}

/* Card-based Content Layout */
#sections-container {
  padding-bottom: 2rem;
}

@media (min-width: 640px) {
  .section-card {
    border-radius: 1.25rem;
    padding: 2rem;
    margin: 1rem 1.5rem;
  }
}

/* Smooth Page Transitions */
.page-transition-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-transition-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s;
}

.page-transition-exit {
  opacity: 1;
}

.page-transition-exit-active {
  opacity: 0;
  transition: opacity 0.2s;
}

/* Status Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-experimental {
  background-color: #D1FAE5;
  color: #065F46;
}

.badge-simulated {
  background-color: #EDE9FE;
  color: #5B21B6;
}

.badge-future {
  background-color: #FEF3C7;
  color: #92400E;
}

.badge i {
  margin-right: 0.375rem;
}

/* Figure Card Styles */
.figure-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  margin-bottom: 1rem;
}

.figure-card img {
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.figure-card img:hover {
  transform: scale(1.02);
}

.figure-caption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  font-style: italic;
}

.figure-credit {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Disclaimer Boxes */
.disclaimer {
  background: #FEF2F2;
  border-left: 4px solid var(--danger-red);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0.375rem;
}

.disclaimer-simulated {
  background: #F3F4F6;
  border-left-color: var(--accent-purple);
}

.disclaimer-educational {
  background: #EFF6FF;
  border-left-color: var(--primary-blue);
}

.disclaimer i {
  margin-right: 0.5rem;
  color: inherit;
}

/* Table Styles */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
  background-color: var(--gray-50);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.comparison-table tr:hover {
  background-color: var(--gray-50);
}

/* Sidebar Navigation */
.sidebar-nav-item {
  display: flex;
  align-items: center;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.sidebar-nav-item:hover {
  background-color: var(--gray-100);
  color: var(--gray-900);
}

.sidebar-nav-item.active {
  background-color: #DBEAFE;
  color: var(--primary-blue);
  font-weight: 600;
}

.sidebar-nav-item .section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--gray-200);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.75rem;
}

.sidebar-nav-item.active .section-number {
  background-color: var(--primary-blue);
  color: white;
}

/* Objectives Grid */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.objective-card {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-blue);
}

.objective-card h3 {
  color: var(--primary-blue);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.result-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid var(--secondary-green);
  text-align: center;
}

.result-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--secondary-green);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Loading Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

/* Print Styles */
@media print {
  nav,
  aside,
  button,
  #judge-mode-overlay {
    display: none !important;
  }

  main {
    margin-left: 0 !important;
  }

  .section-card {
    page-break-inside: avoid;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .section-card {
    padding: 1.5rem 1rem;
  }

  .objectives-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  #sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  #sidebar.open {
    transform: translateX(0);
  }
}

/* Smooth Transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Focus Styles for Accessibility */
button:focus,
a:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Hero Loading Animations */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-fade-in {
  animation: fade-in 1s ease-out;
}

.animate-slide-up {
  animation: slide-up 0.8s ease-out;
}

.animate-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Dropdown Navigation Styles */
.dropdown-nav {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  margin-bottom: 2rem;
}

.dropdown-nav select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  color: var(--gray-800);
  background-color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.dropdown-nav select:hover {
  border-color: var(--primary-blue);
}

.dropdown-nav select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Section Type Icons */
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  margin-right: 1rem;
}

.icon-docking {
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  color: white;
}

.icon-3d {
  background: linear-gradient(135deg, #3B82F6, #06B6D4);
  color: white;
}

.icon-experimental {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
}

.icon-future {
  background: linear-gradient(135deg, #F59E0B, #EF4444);
  color: white;
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-custom {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Image Lightbox Styles */
#image-lightbox {
  backdrop-filter: blur(10px);
  animation: fade-in 0.3s ease-out;
}

#image-lightbox img {
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#lightbox-caption {
  max-width: 800px;
  line-height: 1.6;
  font-size: 1.125rem;
}

/* Figure Card Interactive Styles */
.figure-card {
  cursor: zoom-in;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.figure-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.figure-card img {
  transition: transform 0.3s;
}

.figure-card:hover img {
  transform: scale(1.02);
}

/* Section Card Animations */
.section-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-card.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Icon Animation Styles */
.section-icon {
  position: relative;
  animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(5deg);
  }
}

/* Molecular Interaction Effects */
.molecular-bond {
  stroke-dasharray: 5, 5;
  animation: dash 1s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -10;
  }
}

/* Smooth Transitions */
* {
  scroll-behavior: smooth;
}

/* Print Styles */
@media print {
  #image-lightbox,
  .fixed,
  header,
  nav,
  #fab-button {
    display: none !important;
  }
  
  .section-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* 3D Viewer Styles */
.viewer-3d-container {
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(0, 0, 0, 0.05);
}

.viewer-3d-docking,
.viewer-3d-adc {
  width: 100%;
  cursor: grab;
}

.viewer-3d-docking:active,
.viewer-3d-adc:active {
  cursor: grabbing;
}

.viewer-3d-controls button {
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.viewer-3d-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.viewer-3d-controls button:active {
  transform: translateY(0);
}

/* 3D Viewer Loading State */
.viewer-3d-loading {
  display: flex;
  align-items: center;
  justify-center;
  min-height: 500px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1.25rem;
}

.viewer-3d-loading i {
  animation: spin 2s linear infinite;
  margin-right: 1rem;
}

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

/* Tailwind-like Utility Classes */
.hidden { display: none !important; }
.flex { display: flex; }
.grid { display: grid; }
.space-y-8 > * + * { margin-top: 2rem; }
.text-center { text-align: center; }
.min-h-screen { min-height: 100vh; }
.bg-gradient-to-r { background: linear-gradient(to right, var(--primary-blue), var(--secondary-teal)); }
.bg-gradient-to-br { background: linear-gradient(to bottom right, var(--primary-blue), var(--secondary-teal), var(--accent-purple)); }
.text-white { color: white; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.rounded-lg { border-radius: 0.5rem; }
.p-4 { padding: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

/* Fix primary colors from CSS variables */
.from-primary-blue { background: var(--primary-blue); }
.to-secondary-teal { background: var(--secondary-teal); }
.bg-primary-blue { background: var(--primary-blue); }
.text-primary-blue { color: var(--primary-blue); }

