/* Daily Check-in Modal Styles */

.daily-check-in-overlay {
  /* Inherits modal-overlay base styles */
}

.daily-check-in-modal {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.daily-check-in-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-base);
  border-bottom: 1px solid var(--parchment);
}

.daily-check-in-greeting {
  font-family: var(--font-accent);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-dark);
  margin: 0;
  flex: 1;
}

.daily-check-in-close {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--ink-medium);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  transition: background var(--transition-base);
}

.daily-check-in-close:hover {
  background: var(--parchment-light);
  color: var(--ink-dark);
}

.daily-check-in-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.daily-check-in-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-base);
}

.section-heading {
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-dark);
  margin: 0;
}

.section-description {
  font-size: 14px;
  color: var(--ink-medium);
  margin: 0;
}

/* Yesterday's Tasks */

.yesterday-tasks-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.yesterday-task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-base);
  padding: var(--space-sm) var(--space-base);
  border: 2px solid var(--parchment);
  border-radius: var(--border-radius-md);
}

/* Yesterday task color classes are generated dynamically in _color_family_styles.html.erb */

.yesterday-task-item .task-title {
  flex: 1;
  font-weight: 500;
  color: var(--ink-dark);
}

.yesterday-task-item .task-actions {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

/* Tone down action buttons - all options are roughly equal impact */
.yesterday-task-item .task-actions .btn {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  box-shadow: none;
  color: var(--ink-dark);
  font-weight: var(--font-weight-normal);
}

.yesterday-task-item .task-actions .btn:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Gold Star Selection */

.gold-star-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Radio button styling (matches simple-task-checkbox pattern) */
.simple-task-radio {
  cursor: pointer;
  padding: var(--space-base);
  border: 1px solid transparent;
  border-radius: var(--border-radius-md);
}

.simple-task-radio:hover {
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateX(2px);
}

/* Styled radio button */
.simple-task-radio input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink-light);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  background: white;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.simple-task-radio input[type="radio"]:hover {
  border-color: var(--ink-medium);
}

.simple-task-radio input[type="radio"]:checked {
  background: var(--gold, #ffd700);
  border-color: var(--gold, #ffd700);
}

.simple-task-radio input[type="radio"]:checked::after {
  content: "⭐";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  line-height: 1;
}

/* Highlight selected task with gold glow */
.simple-task-radio:has(input[type="radio"]:checked) {
  border-color: var(--gold, #ffd700);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

/* "None today" option - understated */
.gold-star-none {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-base);
  cursor: pointer;
}

.gold-star-none input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink-light);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  background: white;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.gold-star-none input[type="radio"]:hover {
  border-color: var(--ink-medium);
}

.gold-star-none input[type="radio"]:checked {
  border-color: var(--ink-medium);
  background: var(--ink-light);
}

.gold-star-none-label {
  font-size: var(--font-size-sm);
  color: var(--ink-medium);
}

.no-tasks-message {
  text-align: center;
  color: var(--ink-light);
  padding: var(--space-lg);
  font-style: italic;
}

/* Inspiration section - backlog and idea suggestions */
.inspiration-tasks {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-base);
}

.daily-check-in-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-base);
  border-top: 1px solid var(--parchment);
}

/* Gold Star Visual Treatment - Holographic Rare Card Effect */
/* No badge needed - the holographic effect makes it obvious */

/* Holographic effect for incomplete gold star tasks */
.day-sidebar-task.gold-star:not(.task-completed),
.task-card.gold-star:not(.completed) {
  position: relative;
  overflow: hidden;
  border: 2px solid;
  border-image: linear-gradient(135deg,
    #ffd700 0%,
    #ff6ec7 33%,
    #7873f5 66%,
    #ffd700 100%) 1;
  box-shadow:
    0 0 20px rgba(255, 215, 0, 0.5),
    0 0 40px rgba(255, 110, 199, 0.3),
    inset 0 0 60px rgba(255, 255, 255, 0.1);
}

/* Holographic shimmer overlay - gentle rainbow movement */
.day-sidebar-task.gold-star:not(.task-completed)::before,
.task-card.gold-star:not(.completed)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255, 215, 0, 0.4) 0%,
    rgba(255, 237, 78, 0.4) 16%,
    rgba(255, 110, 199, 0.4) 33%,
    rgba(186, 85, 211, 0.4) 50%,
    rgba(120, 115, 245, 0.4) 66%,
    rgba(79, 172, 254, 0.4) 83%,
    rgba(255, 215, 0, 0.4) 100%);
  background-size: 400% 400%;
  animation: holographic-shift 15s ease infinite;
  pointer-events: none;
  z-index: 0;
}

/* Ensure task content stays above holographic effects */
.day-sidebar-task.gold-star .day-sidebar-task-content,
.task-card.gold-star > * {
  position: relative;
  z-index: 2;
}

@keyframes holographic-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(35deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(35deg);
  }
}

@keyframes text-shimmer {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(255, 110, 199, 0.8));
  }
}

/* Completed gold star tasks - golden glow to commemorate the win */
.day-sidebar-task.gold-star.task-completed,
.task-card.gold-star.completed {
  background: linear-gradient(135deg,
    rgba(255, 215, 0, 0.3),
    rgba(255, 165, 0, 0.3)) !important;
  border-color: rgba(255, 215, 0, 0.4) !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Gold star completion animation */
.day-sidebar-task.gold-star.completing,
.task-card.gold-star.completing {
  animation: gold-star-complete 1s ease-out forwards;
}

@keyframes gold-star-complete {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.1) rotate(-5deg);
  }
  40% {
    transform: scale(1.1) rotate(5deg);
  }
  60% {
    transform: scale(1.2) rotate(-3deg);
    filter: hue-rotate(0deg) brightness(1);
  }
  80% {
    transform: scale(1.2) rotate(3deg);
    filter: hue-rotate(30deg) brightness(1.5);
  }
  100% {
    transform: scale(1) rotate(0deg);
    filter: hue-rotate(45deg) brightness(1.8);
  }
}

/* Time block with gold star task - subtle glow for single-task blocks */
.time-block.has-gold-star:not(.block-all-complete):not(:has(.time-block-tasks)) {
  /* Single-task blocks get full holographic treatment */
  background: linear-gradient(90deg,
    rgba(255, 215, 0, 0.5),
    rgba(255, 110, 199, 0.5),
    rgba(186, 85, 211, 0.5),
    rgba(120, 115, 245, 0.5),
    rgba(79, 172, 254, 0.5),
    rgba(255, 215, 0, 0.5)) !important;
  background-size: 400% 100% !important;
  animation: holographic-shift 15s linear infinite;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.6),
    0 0 50px rgba(255, 110, 199, 0.4);
}

/* Multi-task blocks with gold star - subtle golden glow only */
.time-block.has-gold-star:has(.time-block-tasks):not(.block-all-complete) {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Individual gold star task in multi-task block - holographic effect */
.time-block-task.gold-star:not(.task-completed) {
  position: relative;
  overflow: hidden;
  border: 2px solid;
  border-image: linear-gradient(135deg,
    #ffd700 0%,
    #ff6ec7 33%,
    #7873f5 66%,
    #ffd700 100%) 1;
  box-shadow:
    0 0 20px rgba(255, 215, 0, 0.5),
    0 0 40px rgba(255, 110, 199, 0.3),
    inset 0 0 60px rgba(255, 255, 255, 0.1);
}

.time-block-task.gold-star:not(.task-completed)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255, 215, 0, 0.4) 0%,
    rgba(255, 237, 78, 0.4) 16%,
    rgba(255, 110, 199, 0.4) 33%,
    rgba(186, 85, 211, 0.4) 50%,
    rgba(120, 115, 245, 0.4) 66%,
    rgba(79, 172, 254, 0.4) 83%,
    rgba(255, 215, 0, 0.4) 100%);
  background-size: 400% 400%;
  animation: holographic-shift 15s ease infinite;
  pointer-events: none;
  z-index: 0;
}

/* Ensure content stays above holographic effects */
.time-block-task.gold-star .time-block-task-content {
  position: relative;
  z-index: 2;
}

/* Completed gold star task in multi-task block */
.time-block-task.gold-star.task-completed {
  background: linear-gradient(135deg,
    rgba(255, 215, 0, 0.3),
    rgba(255, 165, 0, 0.3)) !important;
  border-color: rgba(255, 215, 0, 0.4) !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Time block with completed gold star task - golden commemorative glow */
.time-block.has-gold-star.block-all-complete {
  background: linear-gradient(135deg,
    rgba(255, 215, 0, 0.3),
    rgba(255, 165, 0, 0.3)) !important;
  border-color: rgba(255, 215, 0, 0.4) !important;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}
