/* DatePills Component Styles - Redesigned */

.date-pills {
  margin-top: 8px;
  margin-bottom: 8px;
}

.date-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* System date pills (Today, Birth Date) - keep old style */
.date-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  margin: 3px 2px;
  border: 1px solid #78909C;
  border-radius: 8px;
  background: #3E0045;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: 600;
  min-width: auto;
  text-align: center;
  box-sizing: border-box;
  position: relative;
}

.date-pill:hover {
  background: #5a6c7a;
  border-color: #5a6c7a;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.date-pill.active {
  background: #007bff;
  border-color: #007bff;
}

.date-pill.system {
  background: #3E0045;
  border-color: #78909C;
}

.date-pill.system:hover {
  background: #1a2f38;
  border-color: #5a6c7a;
}

.pill-label {
  font-weight: 600;
  text-transform: capitalize;
}

.pill-date {
  display: none;
}

.date-pill:hover .pill-date {
  display: block;
  position: absolute;
  background: #980A9F;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
  white-space: nowrap;
  z-index: 1002;
  margin-top: -34px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.date-pill:hover .pill-date::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #980A9F transparent transparent transparent;
}

/* New event pill design */
.event-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px;
  border-radius: 12px;
  background: #3E0045;
  border: 1px solid #78909C;
  transition: all 0.2s ease;
}

/* System pills (Today, Birth Date) - same styling as event pills */
.system-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px;
  border-radius: 12px;
  background: #3E0045;
  border: 1px solid #78909C;
  transition: all 0.2s ease;
}

.event-pill:hover {
  /* No hover effects for the container - only the buttons have hover states */
}

.system-pill:hover {
  cursor: pointer;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  background: #980B9F;
}

.system-pill:hover .event-title {
  color: #FFFFFF;
}

/* Date buttons (18px circular) */
.date-button {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: #FFFFFF;
  color: #3E0045;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  padding: 0;
  box-sizing: border-box;
}

.date-button:hover {
  background: #980B9F; /* Brighter purple from design system */
  color: #FFFFFF;
}

.date-button.active {
  background: #007bff;
  color: #FFFFFF;
}

.date-button.active:hover {
  background: #0056b3;
}

/* Event title */
.event-title {
  font-weight: 800;
  font-size: 12px;
  color: #FFFFFF;
  white-space: nowrap;
  text-transform: capitalize;
  user-select: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Point event title hover state */
.event-pill:not(:has(.date-button)):hover {
  background: #980B9F;
}

.event-pill:not(:has(.date-button)):hover .event-title {
  color: #FFFFFF;
}

/* Responsive design */
@media (max-width: 768px) {
  .date-pills-container {
    gap: 6px;
  }
  
  .date-pill {
    padding: 6px 4px;
    margin: 3px 2px;
    min-width: auto;
    font-size: 12px;
  }
  
  .pill-date {
    font-size: 10px;
  }
  
  .event-pill {
    gap: 3px;
    padding: 3px 3px;
  }
  
  .date-button {
    width: 16px;
    height: 16px;
    font-size: 7px;
  }
  
  .event-title {
    font-size: 11px;
  }
}

/* Animation for new pills */
.date-pill.new,
.event-pill.new {
  animation: pillAppear 0.3s ease-out;
}

@keyframes pillAppear {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
