/* Spectrum Airlines Custom Styles */

/* CSS Variables for consistent theming */
:root {
    --spectrum-blue: #87CEEB;
    --spectrum-dark-blue: #4169E1;
    --spectrum-light-blue: #B0E0E6;
    --spectrum-white: #FFFFFF;
    --spectrum-light-gray: #F8F9FA;
    --spectrum-dark-gray: #343A40;
    --spectrum-success: #28A745;
    --spectrum-warning: #FFC107;
    --spectrum-danger: #DC3545;
    
    /* Gradient colors for rainbow spectrum */
    --spectrum-red: #FF6B6B;
    --spectrum-orange: #FFA500;
    --spectrum-yellow: #FFFF00;
    --spectrum-green: #90EE90;
    --spectrum-indigo: #4B0082;
    --spectrum-violet: #9400D3;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--spectrum-dark-gray);
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
}

.text-spectrum {
    color: var(--spectrum-blue) !important;
}



/* Background Utilities */
.bg-spectrum {
    background: linear-gradient(135deg, var(--spectrum-blue) 0%, var(--spectrum-dark-blue) 100%) !important;
}

.bg-gradient-spectrum {
    background: linear-gradient(135deg, 
        var(--spectrum-blue) 0%, 
        var(--spectrum-dark-blue) 50%, 
        var(--spectrum-blue) 100%) !important;
}

/* Navigation Styles */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    padding: 0.5rem 0;
    margin-right: 1rem;
}

.navbar-brand .logo-container {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-brand:hover .logo-container {
    transform: scale(1.05);
}

.logo-img {
    border-radius: 4px;
    transition: transform 0.3s ease;
    width: 50px;
    height: 40px;
    object-fit: contain;
}

.brand-text {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--spectrum-dark-blue);
    line-height: 1.2;
}

.hero-logo-img {
    border-radius: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--spectrum-blue) !important;
}

.navbar-nav .nav-link.active {
    color: var(--spectrum-blue) !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--spectrum-blue);
    border-radius: 2px;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-logo svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

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

.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Page Headers */
.page-header {
    padding: 4rem 0;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Cards and Components */
.card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.feature-icon, .value-icon {
    transition: transform 0.3s ease;
}

.card:hover .feature-icon,
.card:hover .value-icon {
    transform: scale(1.1);
}

/* Mission Quote */
.mission-quote {
    border-left: 5px solid var(--spectrum-blue);
    position: relative;
}

.mission-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--spectrum-blue);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: Georgia, serif;
}

/* Value Cards */
.value-card {
    background: var(--spectrum-white);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.value-card:hover {
    background: var(--spectrum-light-gray);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Join Page Styles */
.step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
    transition: all 0.3s ease;
}

.step-number:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.4);
}

/* Fleet Page Styles */
.aircraft-card {
    transition: all 0.3s ease;
}

.aircraft-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

.aircraft-illustration svg {
    transition: transform 0.3s ease;
}

.aircraft-card:hover .aircraft-illustration svg {
    transform: scale(1.05);
}

.spec-item {
    text-align: center;
    padding: 0.5rem;
}

.spec-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.future-aircraft {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.future-aircraft:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Training Page Styles */
.training-card {
    transition: all 0.3s ease;
}

.training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.training-module {
    margin-bottom: 2rem;
}

.training-module .card-header {
    cursor: pointer;
    transition: all 0.3s ease;
}

.training-module .card-header:hover {
    opacity: 0.9;
}

.lesson-steps .step {
    border-left: 3px solid var(--spectrum-blue);
    padding-left: 1rem;
    margin-left: 0.5rem;
}

.training-modules li {
    transition: background-color 0.3s ease;
    padding: 0.5rem;
    border-radius: 4px;
}

.training-modules li:hover {
    background-color: rgba(135, 206, 235, 0.1);
}

.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-spectrum {
    background: var(--spectrum-blue);
    border-color: var(--spectrum-blue);
    color: white;
}

.btn-spectrum:hover {
    background: var(--spectrum-dark-blue);
    border-color: var(--spectrum-dark-blue);
    color: white;
}

.btn-outline-spectrum {
    border-color: var(--spectrum-blue);
    color: var(--spectrum-blue);
}

.btn-outline-spectrum:hover {
    background: var(--spectrum-blue);
    border-color: var(--spectrum-blue);
    color: white;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer Styles */
footer {
    background: var(--spectrum-dark-gray) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--spectrum-blue) !important;
}

/* Accessibility Enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
*:focus {
    outline: 3px solid var(--spectrum-blue);
    outline-offset: 2px;
}

.btn:focus {
    outline: 3px solid var(--spectrum-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.2rem rgba(135, 206, 235, 0.25);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --spectrum-blue: #0066CC;
        --spectrum-dark-blue: #003366;
    }
    
    .text-muted {
        color: var(--spectrum-dark-gray) !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .hero-logo svg {
        width: 80px;
        height: 64px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .aircraft-illustration svg {
        width: 150px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 2rem 0;
    }
    
    .hero-section {
        min-height: 50vh;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-logo svg {
        width: 60px;
        height: 48px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    .btn,
    footer {
        display: none !important;
    }
    
    .hero-section,
    .page-header {
        background: none !important;
        color: black !important;
    }
    
    * {
        box-shadow: none !important;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* This can be expanded for dark mode support */
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Utility classes */
.min-vh-75 {
    min-height: 75vh;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-overlay {
    position: relative;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.bg-overlay > * {
    position: relative;
    z-index: 2;
}

/* Training module styles */
.training-module-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.training-module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.training-step {
    border-left: 3px solid var(--spectrum-primary);
    padding-left: 1rem;
    margin-left: 0.5rem;
}

.training-step h6 {
    color: var(--spectrum-primary);
    font-weight: 600;
}

.training-step .step-content {
    color: var(--spectrum-text);
    line-height: 1.6;
}

/* Checklist specific styles */
.checklist-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--spectrum-primary);
}

.checklist-section h6 {
    color: var(--spectrum-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checklist-items .form-check {
    margin-bottom: 0;
    padding: 0.375rem 0;
    transition: background-color 0.2s ease;
}

.checklist-items .form-check:hover {
    background-color: rgba(54, 162, 235, 0.05);
    border-radius: 4px;
    padding-left: 0.25rem;
}

.checklist-items .form-check-input {
    margin-top: 0.125rem;
}

.checklist-items .form-check-label {
    font-weight: 500;
    color: var(--spectrum-text);
    cursor: pointer;
    user-select: none;
}

.checklist-items .form-check-input:checked + .form-check-label {
    color: var(--spectrum-primary);
    text-decoration: line-through;
    opacity: 0.7;
}

/* Emergency checklist styling */
.checklist-section h6.text-danger {
    color: #dc3545 !important;
    border-left: 3px solid #dc3545;
    padding-left: 0.5rem;
}

.checklist-section h6.text-danger .fa-exclamation-triangle {
    color: #dc3545;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Interactive training content */
#module-content {
    animation: fadeIn 0.3s ease-in;
}

#module-grid {
    animation: fadeIn 0.3s ease-in;
}

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

/* Site Info page styles */
.site-info-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--spectrum-primary), #3a7bd5) !important;
}

.card-header.bg-info {
    background: linear-gradient(135deg, #17a2b8, #20c997) !important;
}

.card-header.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.card-header.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
}

/* Copyright footer link styling */
footer .text-muted a {
    text-decoration: none;
    transition: color 0.2s ease;
}

footer .text-muted a:hover {
    color: var(--spectrum-primary) !important;
    text-decoration: underline;
}

/* Copyright banner styling */
.copyright-banner {
    border: 1px solid #dee2e6;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copyright-banner small {
    font-size: 0.875rem;
    font-weight: 500;
}

.copyright-banner a {
    font-weight: 600;
    transition: all 0.2s ease;
}

.copyright-banner a:hover {
    color: var(--spectrum-primary) !important;
    text-decoration: underline !important;
}
