/* Planner Page Styles */
.planner-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.planner-section {
  margin-bottom: 3rem;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Personality Cards */
.personality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.personality-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.personality-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.personality-card:hover::before {
  opacity: 0.1;
}

.personality-card.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 142, 83, 0.1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.personality-card.selected::before {
  opacity: 0.15;
}

.personality-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.personality-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.personality-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

/* Interests Grid */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.interest-item {
  display: block;
  cursor: pointer;
  position: relative;
}

.interest-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.interest-label {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.interest-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

.interest-item input[type="checkbox"]:checked + .interest-label {
  background: rgba(255, 107, 107, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.interest-item:hover .interest-label {
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

/* Time Options */
.time-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.time-option {
  display: block;
  cursor: pointer;
  position: relative;
}

.time-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.time-label {
  display: block;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  text-align: center;
}

.time-option input[type="radio"]:checked + .time-label {
  background: rgba(255, 107, 107, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.time-option:hover .time-label {
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

/* Planner Actions */
.planner-actions {
  text-align: center;
  margin: 3rem 0;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 250px;
}

/* Itinerary Result */
.itinerary-result {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--primary-color);
  margin-top: 2rem;
}

.result-header {
  text-align: center;
  margin-bottom: 2rem;
}

.result-header h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.result-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.itinerary-content {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.result-actions .btn {
  min-width: 120px;
}

/* Loading Animation for Generate Button */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .planner-content {
    padding: 1rem 0;
  }
  
  .planner-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .personality-grid {
    grid-template-columns: 1fr;
  }
  
  .interests-grid {
    grid-template-columns: 1fr;
  }
  
  .result-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .result-actions .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* Itinerary Timeline Styles */
.itinerary-timeline {
  position: relative;
  padding-left: 2rem;
}

.itinerary-timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-left: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline-time {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-location {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.timeline-tips {
  background: #f0f8ff;
  border-left: 4px solid var(--info-color);
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
