﻿
/* === Base Styles === */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.site-content {
    flex: 1;
}

body {
    margin: 0;
    background: linear-gradient(to bottom, #011C40, #022B60);
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    text-align: center;
    line-height: 1.6;
}

    body.menu-open .page-content {
        opacity: 0.3;
        transition: opacity 0.3s ease-in-out;
    }

h1, h2, h3, h4 {
    margin-top: 5rem;
}

h1 {
    font-size: 2rem;
}

p, ul {
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    font-size: 1.2rem;
}

ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

    ul li {
        margin: 0.5rem 0;
        padding-left: 1.5rem;
        position: relative;
    }

a {
    color: #ffffffcc;
    text-decoration: none;
    font-weight: 500;
}

    a:hover {
        color: #ffffff;
        text-decoration: underline;
    }

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* fallback for older browsers */
    min-height: 100svh; /* better for newer iOS Safari */
}

.page-content {
    flex: 1;
    padding-top: 100px;
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 62px;
    z-index: 1000;
    background-color: #011C40;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo-icon {
    width: 72px;
    height: auto;
    align-items: center;
    display: flex;
}

/* === Navigation === */
.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

    .nav-menu a {
        color: #ffffffcc;
        font-weight: 500;
    }

        .nav-menu a:hover {
            color: #ffffff;
            text-decoration: underline;
        }

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    display: none;
}

.nav-close {
    display: none;
}

/* === Footer === */
footer {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    background-color: #011C40;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    box-sizing: border-box;
}

/* === Cookie Consent === */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 600px;
    background: #022B60;
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.cookie-consent-content {
    max-width: 800px;
    margin: 0 auto;
}

    .cookie-consent-content h2 {
        font-size: 1.8rem;
        margin-top: 0;
        margin-bottom: 10px;
    }

    .cookie-consent-content p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .cookie-consent-content a {
        color: white;
        text-decoration: underline;
    }

        .cookie-consent-content a:hover {
            color: #ffffffcc;
        }

.cookie-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

    .cookie-options button {
        padding: 10px 20px;
        border: none;
        cursor: pointer;
        background: #007bff;
        color: white;
        border-radius: 5px;
        font-size: 1rem;
        font-weight: 500;
    }

        .cookie-options button:hover {
            background: #0056b3;
        }

/* === Modal === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

    .modal.show {
        opacity: 1;
        pointer-events: auto;
    }

.modal-content {
    background: #011C40;
    color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    font-size: 1.7rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-content label {
    display: block;
    margin: 15px 0;
    font-size: 1rem;
}

.modal-content input {
    margin-right: 10px;
    vertical-align: middle;
}

.modal-content button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    background: #007bff;
    color: white;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    margin-right: 10px;
    transition: background 0.3s;
}

    .modal-content button:hover {
        background: #0056b3;
    }

/* === Utilities === */
.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

/* === Responsive === */

@media (max-width: 768px) {
    /* Navigation Menu */
    .nav-menu {
        position: fixed;
        top: 80px;
        right: 0;
        background: #011C40;
        flex-direction: column;
        width: 100%;
        max-height: 100vh;
        overflow-y: auto;
        transform: translateY(-200%);
        opacity: 0;
        z-index: 999;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

        .nav-menu.show {
            transform: translateY(0);
            opacity: 1;
            display: flex;
        }

        .nav-menu a {
            padding: 1rem;
            width: auto;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            text-align: center;
        }

    .nav-toggle {
        display: block;
        font-size: 2rem;
        margin-right: 1rem;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
    }

    .nav-close {
        display: block;
        align-self: flex-start;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        margin: 0.25rem;
        cursor: pointer;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-area {
        margin-bottom: 0.5rem;
    }

    /* Typography & Layout */
    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .logo-icon {
        width: 60px;
    }

    /* === Footer === */
    footer {
        display: flex;
        align-items: center;
        width: 100%;
        height: 50px;
        background-color: #011C40;
        padding: 0.75rem 1rem;
        text-align: center;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.6);
        box-sizing: border-box;
    }

    /* Cookie Consent */
    .cookie-consent {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 15px;
    }

    .cookie-consent-content h2 {
        font-size: 1.4rem;
    }

    .cookie-consent-content p {
        font-size: 0.9rem;
    }

    .cookie-options {
        flex-direction: column;
        gap: 10px;
    }

        .cookie-options button {
            padding: 8px 15px;
            font-size: 0.9rem;
        }

    /* Modal */
    .modal-content {
        width: 95%;
        padding: 15px;
    }

        .modal-content h3 {
            font-size: 1.2rem;
        }

        .modal-content label {
            font-size: 0.9rem;
        }

        .modal-content button {
            padding: 8px 15px;
            font-size: 0.9rem;
        }
}

/* Safari fallback for iPad / older iOS*/
@supports (-webkit-touch-callout: none) {
    html, body {
        height: -webkit-fill-available;
    }

    .page-wrapper {
        min-height: -web-kit-fill-available;
    }

    .page-content {
        flex: 1 0 auto;
    }

    footer {
        flex-shrink: 0;
    }
}
