/* Atlas Skyways - Bootstrap 5 Refresh */

:root {
    --atlas-navy: #081a2f;
    --atlas-ink: #0f2745;
    --atlas-cyan: #11ccc7;
    --atlas-ice: #f3f7fb;
    --atlas-sand: #e7eff7;
    --atlas-amber: #f6a600;
    --atlas-shadow: 0 12px 50px rgba(8, 26, 47, 0.2);
    --font-body: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--atlas-ice);
    color: #0c1a2b;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--atlas-ink);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.section {
    padding: 4.5rem 0;
}

.section-heading {
    margin-bottom: 2rem;
    max-width: 620px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: #6c7a91;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Navigation */
.atlas-navbar {
    background: linear-gradient(120deg, rgba(8, 26, 47, 0.92), rgba(10, 49, 86, 0.9));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f2745, #11ccc7);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: #fff;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9aa4b5;
    box-shadow: 0 0 0 0 rgba(17, 204, 199, 0.5);
}

.status-pill[data-api-status="online"] .status-dot {
    background: #2fe59a;
    animation: pulse 1.5s ease-in-out infinite;
}

.status-pill[data-api-status="offline"] .status-dot {
    background: #f15b5b;
    animation: none;
}

.status-pill[data-api-status="checking"] .status-dot {
    background: #ffc861;
}

.btn-atlas-primary {
    background: linear-gradient(135deg, #11ccc7, #0f93a3);
    color: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(17, 204, 199, 0.35);
}

.btn-atlas-primary:hover {
    color: #fff;
    transform: translateY(-1px);
}

.text-atlas {
    color: #11ccc7;
}

/* Hero */
.hero {
    padding: 7rem 0 5rem;
    background: radial-gradient(circle at 20% 20%, rgba(17, 204, 199, 0.3), transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.08), transparent 25%),
        linear-gradient(135deg, #0f2745 0%, #081a2f 60%, #07203a 100%);
    position: relative;
}

.hero-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.hero-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #11ccc7, #0f93a3);
    box-shadow: 0 10px 40px rgba(17, 204, 199, 0.35);
}

.mini-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 20%, rgba(17, 204, 199, 0.2), transparent 30%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.25;
    pointer-events: none;
}

.page-hero {
    padding: 6.5rem 0 3.5rem;
    background: linear-gradient(135deg, #0f2745, #0b1f38);
    color: #fff;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(17, 204, 199, 0.15), transparent 35%);
    pointer-events: none;
}

/* Cards */
.content-card {
    background: #fff;
    border: 1px solid #e6eef5;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--atlas-shadow);
}

.value-card {
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid #e6eef5;
    background: linear-gradient(135deg, #fff, #f9fcff);
    box-shadow: 0 8px 24px rgba(8, 26, 47, 0.07);
    color: #0c1a2b;
}

.list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-check li {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.list-check i {
    color: var(--atlas-cyan);
    margin-top: 0.2rem;
}

.value-card .text-muted {
    color: #4f5d75 !important;
}

/* Stats */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--atlas-shadow);
}

.stat-number {
    color: #0f2745;
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(17, 204, 199, 0.12), rgba(17, 204, 199, 0.2));
    color: #0f2745;
    font-size: 1.3rem;
}

/* Flights */
.flight-card {
    border: 1px solid #e6eef5;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    transform: translateY(8px);
}

.flight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--atlas-shadow);
}

.flight-route {
    font-size: 1.5rem;
    font-weight: 700;
}

.flight-meta {
    font-size: 0.9rem;
}

/* Fleet */
.fleet-card {
    border: 1px solid #e6eef5;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    transform: translateY(8px);
}

.fleet-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--atlas-shadow);
}

.fleet-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #0f2745, #11ccc7);
    opacity: 0.9;
}

/* PIREPs */
.pireps-container {
    border: 1px solid #e6eef5;
    overflow: hidden;
}

.pireps-container table thead {
    background: #0f2745;
    color: #fff;
}

.pireps-container table tbody tr:hover {
    background: #f2fbfa;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, #0f2745, #0b1f38);
    padding: 4rem 0;
}

.cta-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px);
}

/* Footer */
.footer {
    background: #081a2f;
    color: #d9e2ef;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.footer-link:hover {
    color: #fff;
}

/* Staff */
.staff-card {
    border: 1px solid #e6eef5;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(8, 26, 47, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.staff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--atlas-shadow);
}

.staff-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #11ccc7, #0f93a3);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Utility */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.spinner {
    border: 4px solid #e6eef5;
    border-top: 4px solid var(--atlas-cyan);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.error-message {
    background: #fff5f5;
    color: #9b1c1c;
    border: 1px solid #ffe0e0;
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(47, 229, 154, 0.35); }
    70% { box-shadow: 0 0 0 10px rgba(47, 229, 154, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 229, 154, 0); }
}

@media (max-width: 991px) {
    .hero {
        padding-top: 6.5rem;
    }
}
