/* TripGenie Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Loading animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Camera video styles */
#camera-video {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Activity preference checkboxes */
#activity-preferences input[type="checkbox"]:checked + label {
    background-color: #e0e7ff;
    color: #3730a3;
    font-weight: 600;
}

#activity-preferences label {
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #e5e7eb;
}

#activity-preferences label:hover {
    background-color: #f3f4f6;
}

/* Itinerary timeline */
.itinerary-timeline {
    position: relative;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.itinerary-item {
    position: relative;
    padding-left: 24px;
}

.itinerary-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #4f46e5;
    border-radius: 50%;
    z-index: 1;
}

/* Recognition results animation */
#recognition-results {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Suggestion cards */
.suggestion-card {
    transition: all 0.3s ease;
}

.suggestion-card:hover {
    transform: scale(1.02);
}

/* Button loading states */
.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    #camera-video {
        width: 100%;
        max-width: 300px;
    }
    
    .text-5xl {
        font-size: 2.5rem !important;
    }
    
    .text-3xl {
        font-size: 1.875rem !important;
    }
}

/* Dark mode support (optional future feature) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme for now, but structure ready for dark mode */
}

/* Print styles for itineraries */
@media print {
    header, #preferences, #camera {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .bg-gradient-to-br {
        background: white !important;
    }
    
    #itinerary-container {
        box-shadow: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Rating stars */
.rating-stars::before {
    content: "★★★★★";
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fbbf24 var(--rating), #e5e7eb var(--rating));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Activity type icons */
.activity-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Location pin animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.location-pin {
    animation: bounce 2s infinite;
}

/* Success/error message styles */
.message-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.message-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}