/* ========================================
   Dietary Preferences Styling
   ======================================== */
.dietary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.dietary-option {
  position: relative;
}

.dietary-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.dietary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: var(--bg-light);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  min-height: 90px;
  position: relative;
  overflow: hidden;
}

.dietary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.05) 0%, rgba(72, 187, 120, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dietary-card i,
.dietary-card .dietary-svg {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--text-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.dietary-card .dietary-svg {
  width: 2rem;
  height: 2rem;
  filter: brightness(0) saturate(100%) invert(62%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(92%) contrast(88%);
}

.dietary-card span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

/* Hover State */
.dietary-option:hover .dietary-card {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(72, 187, 120, 0.3);
}

.dietary-option:hover .dietary-card::before {
  opacity: 0.5;
}

.dietary-option:hover .dietary-card i,
.dietary-option:hover .dietary-card .dietary-svg {
  transform: scale(1.1);
  color: var(--success);
}

.dietary-option:hover .dietary-card .dietary-svg {
  filter: brightness(0) saturate(100%) invert(59%) sepia(42%) saturate(426%) hue-rotate(95deg) brightness(94%) contrast(87%);
}

/* Checked State */
.dietary-option input:checked ~ .dietary-card {
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(72, 187, 120, 0.15) 100%);
  border-color: var(--success);
  box-shadow: 0 2px 8px rgba(72, 187, 120, 0.2);
}

.dietary-option input:checked ~ .dietary-card::before {
  opacity: 1;
}

.dietary-option input:checked ~ .dietary-card i,
.dietary-option input:checked ~ .dietary-card .dietary-svg {
  color: var(--success);
  transform: scale(1.15);
  animation: checkBounce 0.4s ease;
}

.dietary-option input:checked ~ .dietary-card .dietary-svg {
  filter: brightness(0) saturate(100%) invert(59%) sepia(42%) saturate(426%) hue-rotate(95deg) brightness(94%) contrast(87%);
}

.dietary-option input:checked ~ .dietary-card span {
  color: var(--success);
  font-weight: 700;
}

/* Active State */
.dietary-option:active .dietary-card {
  transform: scale(0.98);
}

/* Animation */
@keyframes checkBounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1.15);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .dietary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dietary-card {
    min-height: 80px;
  }

  .dietary-card i,
  .dietary-card .dietary-svg {
    font-size: 1.75rem;
  }

  .dietary-card .dietary-svg {
    width: 1.75rem;
    height: 1.75rem;
  }
}
