/* Modern Timeline Agenda Layout - Optimized for Beamer Presentations */

/* Main timeline container with subtle background pattern */
.agenda-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding: 20px 0 10px;
  max-width: 1400px;
  margin: 0 auto;
  height: auto;
  justify-content: flex-start;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(59, 130, 246, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(16, 185, 129, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 60%,
      rgba(239, 68, 68, 0.02) 0%,
      transparent 50%
    );
  opacity: 1;
  transform: translateY(0);
}

/* Remove keyframes that are no longer needed */

/* Hide timeline line for cleaner look */
.agenda-progress-line {
  display: none;
}

/* Remove unused keyframes */

/* Individual timeline steps */
.agenda-step {
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  opacity: 1;
  transform: translateX(0);
}

/* Hide connector dots for cleaner look */
.agenda-step-connector {
  display: none;
}

/* Enhanced color system with better gradients */
.agenda-step[data-color="blue"] {
  color: #2563eb;
}

.agenda-step[data-color="blue"] .agenda-step-card::before {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8, #1e40af);
}

.agenda-step[data-color="green"] {
  color: #059669;
}

.agenda-step[data-color="green"] .agenda-step-card::before {
  background: linear-gradient(90deg, #10b981, #047857, #065f46);
}

.agenda-step[data-color="yellow"] {
  color: #d97706;
}

.agenda-step[data-color="yellow"] .agenda-step-card::before {
  background: linear-gradient(90deg, #f59e0b, #d97706, #b45309);
}

.agenda-step[data-color="orange"] {
  color: #ea580c;
}

.agenda-step[data-color="orange"] .agenda-step-card::before {
  background: linear-gradient(90deg, #f97316, #ea580c, #c2410c);
}

.agenda-step[data-color="red"] {
  color: #dc2626;
}

.agenda-step[data-color="red"] .agenda-step-card::before {
  background: linear-gradient(90deg, #ef4444, #dc2626, #b91c1c);
}

/* Add premium focus states for accessibility */
.agenda-step-card:focus,
.agenda-step-item:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 20px;
}

/* Step cards with enhanced design - full width without left space */
.agenda-step-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(250, 251, 252, 0.99) 100%
  );
  border-radius: 20px;
  padding: 20px 32px 20px 76px;
  flex: 1;
  max-width: 1200px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.agenda-step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    currentColor 0%,
    color-mix(in srgb, currentColor 80%, white) 100%
  );
  opacity: 0.9;
  border-radius: 20px 20px 0 0;
}

/* Step headers */
.agenda-step-header {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
}

/* Hide the step icon */
.agenda-step-icon {
  display: none;
}

.agenda-step-meta {
  flex: 1;
  min-width: 0;
}

.agenda-step-number {
  font-size: 28px;
  font-weight: 900;
  color: currentColor;
  margin-bottom: 0;
  opacity: 0.95;
  font-family: "SF Pro Display", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "Roboto", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: absolute;
  top: 18px;
  left: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced background for step numbers */
.agenda-step-number::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(
    135deg,
    currentColor 0%,
    color-mix(in srgb, currentColor 70%, white) 100%
  );
  opacity: 0.08;
  border-radius: 16px;
  z-index: -1;
}

.agenda-step-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
  font-family: "SF Pro Display", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "Roboto", sans-serif;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding-top: 2px;
}

/* Step items with enhanced styling */
.agenda-step-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-left: 0;
  margin-top: 2px;
}

.agenda-step-item {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.95) 0%,
    rgba(241, 245, 249, 0.9) 100%
  );
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  position: relative;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Remove unused keyframes */

.agenda-step-item::before {
  content: "•";
  color: currentColor;
  margin-right: 10px;
  opacity: 0.7;
  font-weight: bold;
  font-size: 16px;
}

/* Color inheritance for step cards */
.agenda-step[data-color="blue"] {
  color: #3b82f6;
}

.agenda-step[data-color="green"] {
  color: #10b981;
}

.agenda-step[data-color="yellow"] {
  color: #f59e0b;
}

.agenda-step[data-color="orange"] {
  color: #f97316;
}

.agenda-step[data-color="red"] {
  color: #ef4444;
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 1400px) {
  .agenda-step-card {
    padding: 18px 28px 18px 68px;
  }

  .agenda-step-title {
    font-size: 18px;
  }
  .agenda-step-number {
    font-size: 24px;
    top: 16px;
    left: 14px;
  }

  .agenda-step-items {
    margin-left: 0;
  }
}

@media (max-width: 1024px) {
  .agenda-timeline {
    padding: 15px 0;
  }

  .agenda-step-card {
    padding: 16px 24px 16px 60px;
  }

  .agenda-step-header {
    gap: 0;
  }

  .agenda-step-title {
    font-size: 16px;
  }
  .agenda-step-number {
    font-size: 20px;
    top: 14px;
    left: 12px;
  }

  .agenda-step-items {
    margin-left: 0;
  }

  .agenda-step-item {
    font-size: 12px;
    padding: 5px 10px;
  }
}

/* Beamer-optimized enhancements */
@media (min-width: 1920px) {
  .agenda-timeline {
    max-width: 1600px;
    padding: 30px 0 20px;
  }

  .agenda-step-card {
    padding: 24px 36px 24px 84px;
  }

  .agenda-step-title {
    font-size: 22px;
  }
  .agenda-step-number {
    font-size: 30px;
    top: 20px;
    left: 20px;
  }

  .agenda-step-item {
    font-size: 15px;
    padding: 8px 16px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .agenda-step-card {
    border: 2px solid #1e293b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .agenda-step-item {
    border: 1px solid #64748b;
    background: rgba(248, 250, 252, 0.95);
  }

  .agenda-progress-line {
    opacity: 0.8;
    width: 6px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .agenda-timeline,
  .agenda-step,
  .agenda-step-card,
  .agenda-step-icon,
  .agenda-step-item,
  .agenda-progress-line {
    animation: none;
    transition: none;
  }

  .agenda-step {
    opacity: 1;
    transform: translateX(0);
  }

  .agenda-step-item {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Print optimization for handouts */
@media print {
  .agenda-timeline {
    background: none;
    height: auto;
    max-width: none;
    gap: 30px;
  }

  .agenda-timeline::before {
    display: none;
  }

  .agenda-step-card {
    break-inside: avoid;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
  }

  .agenda-progress-line {
    display: none;
  }

  .agenda-step-connector {
    box-shadow: 0 0 0 2px currentColor;
  }
}
