/* Progress Bar Styles - Integrated in about section flexbox */
.progress-bar-container {
  position: relative;
  width: 100%;
  padding: 0 50px;
  margin-top: 0;
  margin-bottom: 0;
  height: 200px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.progress-bar-container.progress-completed {
  filter: drop-shadow(0 0 20px var(--glow-color));
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background-color: var(--border-color);
  border-radius: 3px;
  overflow: visible;
  margin: 0 50px;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-primary));
  border-radius: 3px;
  transition: width 0.1s linear;
  z-index: 1;
}

/* Progress subdivisions */
.progress-subdivisions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.progress-point {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-color: var(--text-primary);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 2px 8px var(--shadow-color);
}

.progress-point.active {
  opacity: 1;
  animation: pulse 2s infinite;
}

.progress-point:nth-child(2) { left: 16.67%; }
.progress-point:nth-child(3) { left: 33.33%; }
.progress-point:nth-child(4) { left: 50%; }
.progress-point:nth-child(5) { left: 66.67%; }
.progress-point:nth-child(6) { left: 83.33%; }

/* Start and end markers */
.progress-marker {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: var(--text-primary);
  opacity: 1;
}

.progress-marker.start { left: 0; }
.progress-marker.end { right: 0; }

/* Progress instruction - simple overlay */
.progress-instruction {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 15px 30px;
  border-radius: 8px;
  font-family: 'VT323', monospace;
  font-size: 1.4rem;
  text-align: center;
  text-transform: uppercase;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
}

.progress-instruction.show {
  opacity: 1;
}

/* Milestone text styles - Minecraft-style tooltips */
.milestone-text {
  position: absolute;
  transform: translateX(-50%);
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: var(--text-primary);
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0.0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  pointer-events: none;
  background: var(--bg-secondary);
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 8px var(--shadow-color);
  white-space: nowrap;
  z-index: 10;
}

.milestone-content {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.milestone-date {
  font-size: 0.9rem;
  opacity: 0.7;
  color: var(--text-secondary);
  text-align: right;
  font-style: italic;
}

.milestone-text::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

/* Tooltip above progress bar */
.milestone-text.tooltip-top {
  top: -50px;
  transform: translateX(-50%) translateY(-100%);
}

.milestone-text.tooltip-top::before {
  bottom: -6px;
  border-top: 6px solid var(--bg-secondary);
}

/* Tooltip below progress bar */
.milestone-text.tooltip-bottom {
  top: 50px;
  transform: translateX(-50%) translateY(0%);
}

.milestone-text.tooltip-bottom::before {
  top: -6px;
  border-bottom: 6px solid var(--bg-secondary);
}

.milestone-text.active {
  opacity: 1;
}

.milestone-text.active.tooltip-top {
  transform: translateX(-50%) translateY(-100%);
}

.milestone-text.active.tooltip-bottom {
  transform: translateX(-50%) translateY(0%);
}

@keyframes pulse {
  0% { 
    box-shadow: 0 2px 8px var(--shadow-color), 0 0 0 0 var(--glow-color); 
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    box-shadow: 0 2px 8px var(--shadow-color), 0 0 0 8px var(--shadow-light); 
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% { 
    box-shadow: 0 2px 8px var(--shadow-color), 0 0 0 0 transparent; 
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Fill button container */
.fill-button-container {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 10;
  width: 100%;
}

.fill-button-container.show {
  opacity: 1;
  visibility: visible;
}

.fill-button-container.hidden {
  opacity: 0;
  visibility: hidden;
}

.complete-progress-btn {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  border: none;
  padding: 18px 30px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'VT323', monospace;
  cursor: pointer;
  box-shadow: 0 8px 25px var(--glow-color);
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  min-width: 120px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.complete-progress-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--hover-overlay), transparent);
  transition: left 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.complete-progress-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px var(--glow-color);
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}

.complete-progress-btn:hover:not(:disabled)::before {
  left: 100%;
}

.complete-progress-btn:active:not(:disabled) {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px var(--glow-color);
}

.complete-progress-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.complete-progress-btn.completing {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
  animation: completing-pulse 0.8s infinite;
  box-shadow: 0 8px 25px var(--glow-color);
}

@keyframes completing-pulse {
  0% { 
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px var(--glow-color);
  }
  50% { 
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 15px 40px var(--glow-color);
  }
  100% { 
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px var(--glow-color);
  }
}

/* Blueprint Theme */
body.blueprint-mode .progress-bar-section {
  background: var(--bg-primary);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Mobile milestone listview - shows all milestones below bar */
.mobile-milestone-list {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding: 15px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: 'VT323', monospace;
  width: 100%;
  max-width: 320px;
}

.mobile-milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.mobile-milestone-item.active {
  opacity: 1;
  background: linear-gradient(135deg, var(--accent-primary-light, rgba(var(--accent-primary-rgb, 100, 100, 255), 0.1)), var(--bg-secondary));
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px var(--shadow-color);
}

.mobile-milestone-marker {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  background: var(--border-color);
  margin-top: 4px;
  transition: all 0.3s ease;
}

.mobile-milestone-item.active .mobile-milestone-marker {
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--glow-color);
}

.mobile-milestone-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-milestone-title {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.mobile-milestone-item.active .mobile-milestone-title {
  color: var(--accent-primary);
}

.mobile-milestone-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
  .progress-bar-container {
    padding: 0 25px;
    height: auto;
    min-height: 150px;
  }

  .progress-bar {
    margin: 0 25px;
  }

  /* Hide floating tooltips on mobile, show mobile list instead */
  .milestone-text {
    display: none !important;
  }

  .mobile-milestone-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    max-width: 100%;
    margin: 15px auto 0;
    width: 100%;
  }

  .mobile-milestone-item {
    position: relative !important;
    display: flex !important;
  }

  .fill-button-container {
    position: relative;
    bottom: auto;
    margin-top: 20px;
    padding: 0 20px;
  }

  .complete-progress-btn {
    padding: 16px 25px;
    font-size: 16px;
    min-width: 110px;
    width: 100%;
    max-width: 200px;
  }

  .progress-instruction {
    font-size: 1.1rem;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .progress-bar-container {
    padding: 0 15px;
    min-height: 120px;
  }

  .progress-bar {
    margin: 0 15px;
  }

  .progress-point {
    width: 12px;
    height: 12px;
    border: 2px solid var(--bg-primary);
  }

  .mobile-milestone-list {
    max-width: 100%;
    padding: 10px;
    gap: 8px;
  }

  .mobile-milestone-item {
    padding: 6px 8px;
    gap: 10px;
  }

  .mobile-milestone-marker {
    width: 10px;
    height: 10px;
    min-width: 10px;
  }

  .mobile-milestone-title {
    font-size: 0.95rem;
  }

  .mobile-milestone-date {
    font-size: 0.8rem;
  }

  .fill-button-container {
    margin-top: 15px;
    padding: 0 15px;
  }

  .complete-progress-btn {
    padding: 14px 20px;
    font-size: 14px;
    min-width: 100px;
    width: 100%;
    max-width: 180px;
  }

  .progress-instruction {
    font-size: 1rem;
    padding: 8px 15px;
  }
}
