/* Custom CSS for CruiseJobLine.com */

/* Custom font configuration */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Hero Section with Background */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.9) 0%, 
        rgba(59, 130, 246, 0.8) 50%, 
        rgba(16, 185, 129, 0.7) 100%
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="waves" x="0" y="0" width="200" height="100" patternUnits="userSpaceOnUse"><path d="M0,50 Q50,20 100,50 T200,50 V100 H0 Z" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="1200" height="600" fill="url(%23waves)"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    background: rgba(30, 58, 138, 0.1);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Membership card special effects */
.membership-card {
    position: relative;
    overflow: hidden;
}

.membership-card::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;
}

.membership-card:hover::before {
    left: 100%;
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #1e3a8a;
    transform: translateY(-2px);
}

/* Navigation enhancements */
nav {
    backdrop-filter: blur(10px);
    background: rgba(30, 58, 138, 0.95);
}

/* Section dividers */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #f97316, transparent);
    margin: 3rem 0;
}

/* Stats counter animation */
.stat-number {
    font-weight: 800;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Job category badges */
.job-badge {
    position: relative;
    overflow: hidden;
}

.job-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
}

.job-badge.urgent {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.job-badge.featured {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.job-badge.hot {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.job-badge.premium {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.job-badge.executive {
    background: linear-gradient(135deg, #64748b, #475569);
}

/* Form enhancements */
.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
}

/* Loading animation for forms */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Cruise line logo placeholders with proper styling */
.cruise-logo {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: white;
}

/* Footer enhancements */
footer {
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #374151, transparent);
}

/* Social media hover effects */
.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    color: #f97316;
}

/* Membership plan highlighting */
.membership-featured {
    position: relative;
    border: 2px solid #fbbf24;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
}

.membership-featured::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #fbbf24);
    border-radius: 8px;
    z-index: -1;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

/* Accessibility improvements */
.focus\:ring-ocean:focus {
    outline: none;
    ring-width: 3px;
    ring-color: rgba(59, 130, 246, 0.5);
}

/* Print styles */
@media print {
    .hero-section {
        background: none;
        color: black;
    }
    
    nav, footer {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-section {
        background: #1e3a8a;
    }
    
    .btn-primary {
        background: #000;
        border: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
}