/* ============================================
   TravelHub - Shared Styles
   ============================================ */
/* ==========================================
   GLOBAL STYLES & RESETS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}
/* ==========================================
   GRADIENT BACKGROUNDS
   ========================================== */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.gradient-orange-pink {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
}
.gradient-blue-indigo {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}
.gradient-dark-purple {
    background: linear-gradient(135deg, #1e1b4b 0%, #7c3aed 100%);
}
.luxury-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}
/* ==========================================
   CARD STYLES & HOVER EFFECTS
   ========================================== */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.flight-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.flight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.jet-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.jet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
/* ==========================================
   MODAL STYLES
   ========================================== */
.modal {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}
.hidden {
    display: none !important;
}
/* Modal Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.slide-down {
    animation: slideDown 0.3s ease-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.fade-in {
    animation: fadeIn 0.3s ease-out;
}
/* ==========================================
   NAVIGATION STYLES
   ========================================== */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
.nav-link {
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: #7c3aed;
}
/* ==========================================
   BUTTON STYLES
   ========================================== */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #65398b 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.btn-secondary {
    background: white;
    color: #7c3aed;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #7c3aed;
    cursor: pointer;
}
.btn-secondary:hover {
    background: #f3f4f6;
}
/* ==========================================
   FORM STYLES
   ========================================== */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.form-input:focus {
    outline: none;
    border-color: #7c3aed;
    ring: 2px;
    ring-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.form-label {
    display: block;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
/* ==========================================
   AIRLINE LOGO STYLES
   ========================================== */
.airline-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
/* ==========================================
   BADGE & TAG STYLES
   ========================================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}
.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}
.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}
.badge-error {
    background-color: #fee2e2;
    color: #991b1b;
}
/* ==========================================
   LOADING STATES
   ========================================== */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #7c3aed;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* ==========================================
   FOOTER STYLES
   ========================================== */
footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}
footer a {
    transition: color 0.2s ease;
}
footer a:hover {
    color: #9ca3af;
}
/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.shadow-hover {
    transition: box-shadow 0.3s ease;
}
.shadow-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.smooth-scroll {
    scroll-behavior: smooth;
}
/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */
/* Mobile First - Base styles above */
/* Tablet (768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}
/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
}
/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
}
/* ==========================================
   DARK MODE SUPPORT (Optional)
   ========================================== */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
    /* Currently using light mode only */
}
/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    nav, footer {
        display: none;
    }
    
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
/* ==========================================
   ACCESSIBILITY
   ========================================== */
/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}
/* Skip to main content link */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
}
.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    background: #7c3aed;
    color: white;
    padding: 1rem;
    text-decoration: none;
}
/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ==========================================
   CUSTOM SCROLLBAR
   ========================================== */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}
/* ==========================================
   IMAGE OPTIMIZATION
   ========================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.img-cover {
    object-fit: cover;
}
.img-contain {
    object-fit: contain;
}
/* ==========================================
   GRID & LAYOUT HELPERS
   ========================================== */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
/* ==========================================
   ANIMATION UTILITIES
   ========================================== */
.animate-bounce {
    animation: bounce 1s infinite;
}
@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
/* ==========================================
   STATUS INDICATORS
   ========================================== */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}
.status-confirmed {
    background-color: #10b981;
}
.status-pending {
    background-color: #f59e0b;
}
.status-cancelled {
    background-color: #ef4444;
}
/* ==========================================
   TOOLTIP (Optional)
   ========================================== */
.tooltip {
    position: relative;
}
.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    margin-bottom: 0.5rem;
}
