/**
 * Better Aviation - Common Styles
 * Shared styles across all pages (ai, links, links/jobs)
 */

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #333;
    margin: 0;
    overflow-x: hidden;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 420px;
    margin: auto;
    flex: 1;
}

/* ===== Logo Styles ===== */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.logo-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ===== Footer Styles ===== */
.footer,
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin-top: auto;
}

.footer-left,
footer .footer-left {
    text-align: left;
}

.footer-right,
footer .footer-right {
    text-align: right;
}

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

.footer a:hover,
footer a:hover {
    text-decoration: underline;
}

.footer-right a {
    margin: 0 3px;
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        color: #e0e0e0;
    }

    .logo img {
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }

    .logo-title {
        color: rgba(255, 255, 255, 1);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    .logo-subtitle {
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    }

    .footer,
    footer {
        color: rgba(255, 255, 255, 0.85);
    }

    .footer a,
    footer a {
        color: rgba(255, 255, 255, 0.85);
    }

    .footer a:hover,
    footer a:hover {
        color: rgba(255, 255, 255, 1);
    }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .logo img {
        width: 100px;
        height: 100px;
    }

    .logo-title {
        font-size: 24px;
    }

    .logo-subtitle {
        font-size: 13px;
    }

    .footer,
    footer {
        padding: 12px 15px;
        font-size: 10px;
        flex-direction: column;
        text-align: center;
        max-width: 100%;
    }

    .footer-left,
    .footer-right,
    footer .footer-left,
    footer .footer-right {
        text-align: center;
        width: 100%;
    }
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: #fff;
    border-color: rgba(102, 126, 234, 0.3);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top i {
    font-size: 24px;
    color: #667eea;
}

@media (prefers-color-scheme: dark) {
    .scroll-to-top {
        background: rgba(45, 55, 72, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .scroll-to-top:hover {
        background: rgba(55, 65, 82, 0.95);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .scroll-to-top i {
        color: #e2e8f0;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top i {
        font-size: 20px;
    }
}
