/* Personal routes page styles */
@import url('poi_recommendation_system.css');

/* Page-local overrides or additions can go below if needed */

/* Quick Selection Buttons Enhancement */
.quick-selection-section {
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  border: 1px solid #cbd5e0;
}

.quick-selection-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-selection-title i {
  color: #4299e1;
  font-size: 1.1rem;
}

.quick-selection-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  max-width: 100%;
}

.quick-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  min-height: 56px;
}

.quick-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #4299e1;
  background: linear-gradient(135deg, #ffffff 0%, #ebf8ff 100%);
}

.quick-btn:active {
  transform: translateY(0);
  transition: transform 0.1s;
}

.quick-btn.active {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  color: white;
  border-color: #3182ce;
  box-shadow: 0 8px 25px rgba(66, 153, 225, 0.4);
  animation: quickBtnPulse 0.6s ease-out;
}

.quick-btn.active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: quickBtnRipple 0.6s ease-out;
}

@keyframes quickBtnPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes quickBtnRipple {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

.quick-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.quick-btn:hover i {
  transform: scale(1.1);
}

.quick-btn.active i {
  animation: quickBtnIconBounce 0.6s ease-out;
}

@keyframes quickBtnIconBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-3px) scale(1.1);
  }
  60% {
    transform: translateY(-1px) scale(1.05);
  }
}

/* Slider Animation Enhancement */
.preference-slider-container.updating {
  animation: sliderUpdate 0.3s ease-out;
}

@keyframes sliderUpdate {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.preference-slider-container.updating .preference-slider {
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3);
}

.preference-keyword-hint {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .quick-selection-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .quick-btn {
    padding: 14px 16px;
    font-size: 0.9rem;
    min-height: 52px;
  }
  
  .quick-selection-section {
    padding: 20px;
    margin-top: 25px;
  }
}

@media (max-width: 480px) {
  .quick-selection-buttons {
    grid-template-columns: 1fr;
  }
}

/* Action Buttons Section */
.action-buttons-section {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  justify-content: center;
  flex-wrap: wrap;
}

/* Explore Button Styles */
.explore-btn {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  border: none;
  border-radius: 16px;
  padding: 20px 32px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
  position: relative;
  overflow: hidden;
}

.explore-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(72, 187, 120, 0.4);
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.explore-btn:active {
  transform: translateY(-1px);
  transition: transform 0.1s;
}

.explore-btn .btn-icon {
  font-size: 1.5rem;
  animation: exploreIconSpin 3s linear infinite;
}

.explore-btn .btn-text {
  font-size: 1.1rem;
  font-weight: 600;
}

.explore-btn .btn-subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 400;
}

.explore-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.explore-btn:hover::before {
  left: 100%;
}

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

/* Update recommend button to match */
.recommend-btn {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Loading state for explore button */
.explore-btn.loading {
  background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
  cursor: not-allowed;
  pointer-events: none;
}

.explore-btn.loading .btn-icon {
  animation: exploreIconSpin 1s linear infinite;
}

.explore-btn.loading .btn-text::after {
  content: '...';
  animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
  0%, 20% {
    content: '';
  }
  40% {
    content: '.';
  }
  60% {
    content: '..';
  }
  80%, 100% {
    content: '...';
  }
}

/* Mobile responsive for action buttons */
@media (max-width: 768px) {
  .action-buttons-section {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .explore-btn,
  .recommend-btn {
    min-width: 250px;
    width: 100%;
    max-width: 300px;
  }
}

/* Exploration Mode Styles */
.exploration-header {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  padding: 25px;
  border-radius: 16px;
  margin-bottom: 25px;
  text-align: center;
}

.exploration-header h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.exploration-header p {
  margin: 0 0 15px 0;
  font-size: 1rem;
  opacity: 0.95;
}

.exploration-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.stat-item i {
  font-size: 0.8rem;
}

/* Error Message Styles */
.error-message {
  text-align: center;
  padding: 40px 20px;
  background: #fed7d7;
  border: 1px solid #feb2b2;
  border-radius: 16px;
  color: #c53030;
}

.error-message i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.7;
}

.error-message h3 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
}

.error-message p {
  margin: 0 0 20px 0;
  opacity: 0.8;
}

.retry-btn {
  background: #c53030;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.retry-btn:hover {
  background: #9c2626;
}

/* Mobile responsive for exploration */
@media (max-width: 768px) {
  .exploration-stats {
    gap: 10px;
  }
  
  .stat-item {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
  
  .exploration-header {
    padding: 20px;
  }
  
  .exploration-header h3 {
    font-size: 1.3rem;
  }
}
