
/* =========================================
   NIEXYK.ORG - GLOBAL STYLES
========================================= */

* {
    box-sizing: border-box;
}

:root {
    --background: #181818;
    --header: #050505;
    --text: #f2f0eb;
    --muted: #aaaaaa;
    --burgundy: #401919;
    --red: #d94a4a;
    --border: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: Georgia, Times New Roman, Times, serif;
}

/* =========================================
   TOP DECORATION
========================================= */

.top-decoration {
    height: 40px;
    width: 100%;
    background: var(--burgundy);
}

/* =========================================
   HEADER
========================================= */

.site-header {
    position: relative;
    min-height: 130px;
    background: var(--header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 4%;
    gap: 30px;
    z-index: 10;
}

.site-header::before {
    content: "";
    position: absolute;
    top: -28px;
    right: 0;
    width: 24%;
    height: 28px;
    background: var(--burgundy);
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

/* =========================================
   LOGO
========================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 76px;
    height: 76px;
    border: 2px solid #aaaaaa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    font-weight: bold;
    color: var(--text);
    outline: 1px solid #777777;
    outline-offset: -6px;
}

.brand-name {
    font-size: 21px;
    font-weight: bold;
    line-height: 1.3;
    max-width: 220px;
}

/* =========================================
   NAVIGATION
========================================= */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(25px, 5vw, 85px);
    margin-right: 16%;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    transition: color 0.2s;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--red);
}

.main-nav a.active {
    color: var(--red);
}


/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 850px) {

    .site-header {
        flex-direction: column;
        padding: 20px;
        gap: 25px;
    }

    .brand {
        justify-content: center;
    }

    .main-nav {
        margin: 0;
        flex-wrap: wrap;
        gap: 25px;
    }

}

@media (max-width: 450px) {

    .brand-logo {
        width: 58px;
        height: 58px;
        font-size: 27px;
    }

    .brand-name {
        font-size: 17px;
    }

    .main-nav {
        gap: 18px;
    }

    .main-nav a {
        font-size: 12px;
    }

}


/* =========================================
   LANGUAGE SELECTOR
========================================= */

.language-selector {
    position: absolute;
    top: 15px;
    right: 4%;

    display: flex;
    align-items: center;
    gap: 8px;

    font-family: Arial, sans-serif;
    font-size: 12px;
}

.language-selector button {
    background: transparent;
    border: none;
    padding: 4px;

    color: #777;
    font-size: 12px;
    cursor: pointer;

    transition: color 0.2s;
}

.language-selector button:hover {
    color: white;
}

.language-selector button.active-language {
    color: var(--red);
    font-weight: bold;
}

.language-separator {
    color: #555;
}

/* Header spacing for language selector */

@media (max-width: 850px) {

    .language-selector {
        position: static;
        justify-content: center;
        order: 2;
    }

}


/* =========================================
   GLOBAL FOOTER - SECURITY WARNING
========================================= */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-footer {
    width: 100%;
    min-height: 138px;
    margin-top: auto;
    padding: 35px 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: #351414;
    border-top: 2px dashed #d92323;
    border-radius: 14px 14px 0 0;

    text-align: center;
    font-family: Arial, sans-serif;
}

.site-footer h2 {
    margin: 0 0 7px;

    color: #ff2929;
    font-size: 29px;
    font-weight: bold;
}

.site-footer p {
    margin: 0;

    color: #ff2929;
    font-size: 14px;
    font-weight: bold;
}

@media (max-width: 500px) {

    .site-footer h2 {
        font-size: 22px;
    }

    .site-footer p {
        font-size: 12px;
    }

}

.footer-notice {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #292929;
    font-family: "Courier New", monospace;
    text-align: center;
}

.footer-notice p {
    color: #d94a4a;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.footer-notice span {
    color: #777;
    font-size: 10px;
    letter-spacing: 1px;
}


/* =========================================
   ARCHNIVE HEADER - VISUAL UPGRADE
========================================= */

.site-header {
    min-height: 105px;
    padding: 18px 5%;
    gap: 35px;
    border-bottom: 1px solid #292929;
}

/* LOGO */

.brand {
    gap: 15px;
    transition: opacity 0.25s ease;
}

.brand:hover {
    opacity: 0.8;
}

.brand-logo {
    width: 58px;
    height: 58px;
    flex-shrink: 0;

    border: 1px solid #888;
    border-radius: 4px;
    outline: 1px solid #555;
    outline-offset: -5px;

    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: normal;
    letter-spacing: -2px;

    transition: border-color 0.25s ease;
}

.brand:hover .brand-logo {
    border-color: #d94a4a;
}

.brand-name {
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: normal;
    letter-spacing: 0.5px;
    max-width: none;
    white-space: nowrap;
}

/* NAVIGATION */

.main-nav {
    gap: clamp(22px, 3vw, 48px);
    margin: 0;
}

.main-nav a {
    position: relative;
    padding: 12px 0;

    color: #999;
    font-family: "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;

    transition: color 0.25s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;

    width: 0;
    height: 2px;

    background: #8d3939;
    transition: width 0.25s ease;
}

.main-nav a:hover {
    color: #f2f0eb;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a.active {
    color: #f2f0eb;
}

.main-nav a.active::after {
    width: 100%;
}

/* LANGUAGE SELECTOR */

.language-selector {
    position: static;
    flex-shrink: 0;
    gap: 6px;

    padding: 7px 10px;
    border: 1px solid #292929;
    background: #0b0b0b;

    font-family: "Courier New", monospace;
}

.language-selector button {
    font-family: "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 4px;

    color: #777;
}

.language-selector button:hover {
    color: #eee;
}

.language-selector button.active-language {
    color: #d94a4a;
}

.language-separator {
    color: #444;
}

/* RESPONSIVE */

@media (max-width: 850px) {

    .site-header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 25px 20px;
        gap: 20px;
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .main-nav {
        margin: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 22px;
    }

    .language-selector {
        order: 2;
        justify-content: center;
    }
}

@media (max-width: 450px) {

    .brand-logo {
        width: 48px;
        height: 48px;
        font-size: 25px;
    }

    .brand-name {
        font-size: 16px;
    }

    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 10px;
    }

}
