/* ===================================
   VECTRI Workshop Custom Styles
   =================================== */

/* Root variables for consistent theming */
:root {
  --workshop-primary: #3f51b5;
  --workshop-accent: #ffc107;
  --workshop-dark: #283593;
  --workshop-light: #c5cae9;
  --gradient-start: #5c6bc0;
  --gradient-end: #3949ab;
}

/* Hero section on homepage */
.hero-banner {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  animation: fadeInUp 1.2s ease-out;
}

.hero-banner p {
  font-size: 1.2rem;
  opacity: 0.95;
  animation: fadeIn 1.5s ease-out;
}

/* Fade in animation for hero title */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in animation for hero subtitle and date */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.95;
  }
}

/* Workshop date badge */
.workshop-date {
  display: inline-block;
  background: var(--workshop-accent);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  margin: 1rem 0;
  animation: fadeInScale 1.8s ease-out;
}

/* Scale and fade animation for date badge */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Enhanced admonition boxes */
.md-typeset .admonition.tip {
  border-left-color: var(--workshop-primary);
}

.md-typeset .admonition.warning {
  border-left-color: #ff9800;
}

.md-typeset .admonition.success {
  border-left-color: #4caf50;
}

/* Lab difficulty indicators */
.lab-difficulty {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.lab-difficulty.easy {
  background: #c8e6c9;
  color: #2e7d32;
}

.lab-difficulty.medium {
  background: #fff9c4;
  color: #f57f17;
}

.lab-difficulty.hard {
  background: #ffccbc;
  color: #d84315;
}

/* Schedule table enhancements */
.md-typeset table {
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.md-typeset table th {
  background: var(--workshop-light);
  color: var(--workshop-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.md-typeset table tr:hover {
  background: rgba(0, 150, 136, 0.05);
}

/* Code block enhancements */
.md-typeset .highlight {
  border-radius: 8px;
  overflow: hidden;
}

.md-typeset code {
  background: rgba(0, 150, 136, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Button styling */
.md-button {
  background: var(--workshop-primary);
  color: white !important;
  border-radius: 4px;
  padding: 0.5rem 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.md-button:hover {
  background: var(--workshop-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.md-button--primary {
  background: var(--workshop-accent);
  color: #000 !important;
}

/* Checklist styling */
.md-typeset .task-list-item input[type="checkbox"]:checked + label {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Card-style content blocks */
.content-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.content-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] {
  --workshop-light: #283593;
}

[data-md-color-scheme="slate"] .content-card {
  background: #263238;
  border-color: #37474f;
}

[data-md-color-scheme="slate"] .md-typeset table th {
  background: #37474f;
  color: #c5cae9;
}

/* Navigation breadcrumbs */
.md-typeset .md-nav__link--active {
  color: var(--workshop-primary);
  font-weight: 600;
}

/* Footer customization */
.md-footer {
  background: var(--workshop-dark);
}

/* Partner Logos Section */
.partner-logos {
  background: #f5f5f5;
  padding: 2.5rem 0;
  border-top: 3px solid var(--workshop-primary);
}

[data-md-color-scheme="slate"] .partner-logos {
  background: #1e1e1e;
  border-top-color: var(--workshop-light);
}

.partner-logos__container {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.partner-logos__title h3 {
  color: var(--workshop-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

[data-md-color-scheme="slate"] .partner-logos__title h3 {
  color: var(--workshop-light);
}

.partner-logos__items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: 8px;
}

.partner-logo:hover {
  transform: translateY(-5px);
  background: rgba(63, 81, 181, 0.05);
}

[data-md-color-scheme="slate"] .partner-logo:hover {
  background: rgba(197, 202, 233, 0.1);
}

.partner-logo img {
  height: 120px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  filter: grayscale(0%);
  transition: all 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%) brightness(1.1);
  transform: scale(1.05);
}

[data-md-color-scheme="slate"] .partner-logo img {
  filter: brightness(0.9);
}

[data-md-color-scheme="slate"] .partner-logo:hover img {
  filter: brightness(1.1);
}

.partner-logo span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-top: 0.5rem;
}

[data-md-color-scheme="slate"] .partner-logo span {
  color: #e0e0e0;
}

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

.facilitator-card {
  background: white;
  border: 2px solid var(--workshop-light);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.facilitator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(63, 81, 181, 0.2);
  border-color: var(--workshop-primary);
}

.facilitator-card h3 {
  color: var(--workshop-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.facilitator-card .affiliation {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  font-style: italic;
}

/* Dark mode for facilitator cards */
[data-md-color-scheme="slate"] .facilitator-card {
  background: #263238;
  border-color: var(--workshop-dark);
}

[data-md-color-scheme="slate"] .facilitator-card:hover {
  border-color: var(--workshop-light);
}

[data-md-color-scheme="slate"] .facilitator-card h3 {
  color: var(--workshop-light);
}

[data-md-color-scheme="slate"] .facilitator-card .affiliation {
  color: #b0b0b0;
}

/* Binder Section */
.binder-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
  border-radius: 12px;
  border: 2px solid var(--workshop-light);
}

[data-md-color-scheme="slate"] .binder-section {
  background: linear-gradient(135deg, #1a1f24 0%, #252a30 100%);
  border-color: var(--workshop-dark);
}

.binder-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.binder-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  background: white;
  border: 3px solid var(--workshop-primary);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.binder-button:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 16px rgba(63, 81, 181, 0.3);
  border-color: var(--workshop-dark);
}

[data-md-color-scheme="slate"] .binder-button {
  background: #263238;
  border-color: var(--workshop-light);
}

.binder-button img {
  height: 30px;
  width: auto;
}

.binder-button span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--workshop-primary);
}

[data-md-color-scheme="slate"] .binder-button span {
  color: var(--workshop-light);
}

.binder-description {
  font-size: 0.95rem;
  color: #555;
  max-width: 350px;
  margin: 0;
}

[data-md-color-scheme="slate"] .binder-description {
  color: #b0b0b0;
}

.binder-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 2rem;
  border-left: 3px solid var(--workshop-primary);
}

[data-md-color-scheme="slate"] .binder-info {
  border-left-color: var(--workshop-light);
}

.binder-info h4 {
  color: var(--workshop-primary);
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

[data-md-color-scheme="slate"] .binder-info h4 {
  color: var(--workshop-light);
}

.binder-info p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

[data-md-color-scheme="slate"] .binder-info p {
  color: #b0b0b0;
}

/* Real-Time Collaboration Section */
.collaboration-section {
  text-align: center;
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 12px;
  border: 2px solid #4caf50;
}

[data-md-color-scheme="slate"] .collaboration-section {
  background: linear-gradient(135deg, #1b2e1f 0%, #263029 100%);
  border-color: #66bb6a;
}

.collab-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 3rem;
  background: #4caf50;
  color: white !important;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  border: 3px solid transparent;
}

.collab-button:hover {
  background: #45a049;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
  border-color: #ffffff;
}

[data-md-color-scheme="slate"] .collab-button {
  background: #66bb6a;
  color: #000 !important;
}

[data-md-color-scheme="slate"] .collab-button:hover {
  background: #81c784;
  border-color: #c8e6c9;
}

.collab-icon {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

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

.collab-text {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .hero-banner h1 {
    font-size: 1.8rem;
  }
  
  .hero-banner p {
    font-size: 1rem;
  }
  
  .md-typeset table {
    font-size: 0.8rem;
  }
  
  .facilitators-grid {
    grid-template-columns: 1fr;
  }
  
  .partner-logos__items {
    gap: 2rem;
  }
  
  .binder-section {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  
  .binder-info {
    padding-left: 0;
    padding-top: 1.5rem;
    border-left: none;
    border-top: 3px solid var(--workshop-primary);
  }
  
  [data-md-color-scheme="slate"] .binder-info {
    border-top-color: var(--workshop-light);
  }
  
  .collab-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .collab-icon {
    font-size: 1.2rem;
  }
  
  .collab-text {
    font-size: 1rem;
  }
}

/* Print styles */
@media print {
  .hero-banner {
    background: #e0f2f1 !important;
    color: black !important;
  }
  
  .md-header,
  .md-footer,
  .md-sidebar {
    display: none;
  }
}

/* Highlight important dates */
.date-highlight {
  background: linear-gradient(120deg, #ffeaa7 0%, #fdcb6e 100%);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Badge styles for tags */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 10px;
  margin: 0.2rem;
}

.badge-primary {
  background: var(--workshop-primary);
  color: white;
}

.badge-warning {
  background: #ff9800;
  color: white;
}

.badge-info {
  background: #2196f3;
  color: white;
}

/* Timeline styles for schedule */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 1rem;
  border-left: 2px solid var(--workshop-primary);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--workshop-primary);
}

/* Mermaid diagram styling */
.mermaid {
  text-align: center;
  padding: 1rem 0;
}

/* Enhanced blockquotes */
.md-typeset blockquote {
  border-left: 4px solid var(--workshop-primary);
  background: rgba(0, 150, 136, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  font-style: italic;
}

/* Keyboard key styling */
.md-typeset kbd {
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  padding: 0.1rem 0.4rem;
  font-family: monospace;
  font-size: 0.85em;
}

/* Download button special styling */
.download-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  padding: 1rem 2rem;
  border-radius: 8px;
  display: inline-block;
  margin: 1rem 0;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Annotation styling for important notes */
.annotation {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

[data-md-color-scheme="slate"] .annotation {
  background: #3e2723;
  border-left-color: #ffc107;
}