/* RESET */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --sidebar-width: 270px;
    --outer-gap: 20px;
    --gold: #c29d18;
    --gold-bright: #f2cf57;
    --panel: rgba(8, 8, 8, 0.88);
    --panel-soft: rgba(0, 0, 0, 0.60);
    --panel-solid: #202020;
}

html{
    scroll-behavior: smooth;
}

body{
    background: url(img/backgroundSNIPER_2_2026.webp);
    background-repeat: repeat-y;
    background-attachment: fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    color: var(--gold);
    padding: var(--outer-gap) var(--outer-gap) 40px calc(var(--sidebar-width) + (var(--outer-gap) * 2));
}

@media (max-width: 768px){
    body{
        background-attachment: scroll;
        background-position: center;
        background-size: cover;
    }
}

/* HEADER */
header{
    width: 100%;
    max-width: none;
    min-height: clamp(180px, 24vw, 320px);
    margin: 0 0 20px 0;
    border-radius: 28px;
    border: 1px solid var(--gold);
    background: rgba(0, 0, 0, 0.38);
    box-shadow:
        0 16px 34px rgba(0,0,0,0.36),
        inset 0 0 0 1px rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    position: relative;
    overflow: hidden;
}

header::before{
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.48)),
        url(img/ai/OCS_CGPT_2026_1_cartoon.webp) center center / contain no-repeat;
    pointer-events: none;
}

header > *{
    position: relative;
    z-index: 1;
}

/* SIDE NAV WRAPPER */
.men{
    width: var(--sidebar-width);
    margin: 0;
    position: fixed;
    left: var(--outer-gap);
    top: var(--outer-gap);
    bottom: var(--outer-gap);
    z-index: 1000;
    overflow-y: auto;
    scrollbar-width: thin;
}

.men nav{
    min-height: 100%;
    padding: 20px 14px;
    border-radius: 30px;
    border: 1px solid var(--gold);
    background:
        linear-gradient(180deg, rgba(20,20,20,0.96) 0%, rgba(8,8,8,0.96) 100%);
    box-shadow:
        0 18px 40px rgba(0,0,0,0.46),
        inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(5px);
    position: relative;
}

.men nav::before{
    content: "{OCS} Main Menu";
    display: block;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 18px;
    text-align: center;
    font-weight: 900;
    letter-spacing: 1.35px;
    color: #ffe59a;
    background: linear-gradient(180deg, rgba(74,52,9,0.95), rgba(35,24,6,0.96));
    border: 1px solid var(--gold);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.03) inset,
        0 8px 18px rgba(0,0,0,0.28);
}

/* NAV */
nav ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
}

nav ul li{
    display: block;
    margin: 0;
}

/* NAV BUTTONS */
nav ul li a,
nav ul li span{
    display: block;
    width: 100%;
    position: relative;
    padding: 13px 16px;
    border-radius: 18px 26px 26px 18px;
    border: 1px solid var(--gold);
    background: linear-gradient(180deg, rgba(42,42,42,0.95), rgba(18,18,18,0.95));
    color: var(--gold-bright);
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.35px;
    line-height: 1.15;
    white-space: normal;
    text-align: left;
    box-shadow:
        0 2px 0 rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.05);
    transition:
        transform 0.18s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        background 0.22s ease;
}

nav ul li a::before,
nav ul li span::before{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    box-shadow:
        0 0 0 1px rgba(242,207,87,0.12),
        0 0 10px rgba(194,157,24,0.18),
        0 0 18px rgba(194,157,24,0.10);
}

nav ul li a:hover{
    color: #fff8d6;
    border-color: var(--gold-bright);
    text-decoration: none;
    transform: translateX(8px);
    background: linear-gradient(180deg, rgba(66,50,12,0.95), rgba(33,24,7,0.98));
    box-shadow:
        0 8px 16px rgba(0,0,0,0.38),
        0 0 14px rgba(194,157,24,0.18),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

nav ul li a:hover::before{
    opacity: 1;
}

nav ul li a:active{
    transform: translateX(4px);
    box-shadow:
        0 3px 8px rgba(0,0,0,0.45),
        inset 0 2px 4px rgba(0,0,0,0.25);
}

nav ul li a:focus-visible{
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
    text-decoration: none;
}

/* CURRENT PAGE TAB */
nav ul li span{
    color: #1a1405;
    border-color: var(--gold-bright);
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
    box-shadow:
        0 0 12px rgba(194,157,24,0.28),
        inset 0 1px 0 rgba(255,255,255,0.35);
    cursor: default;
    text-shadow: none;
    animation: currentTabPulse 2.8s ease-in-out infinite;
}

@keyframes currentTabPulse{
    0%, 100%{
        box-shadow:
            0 0 10px rgba(194,157,24,0.20),
            inset 0 1px 0 rgba(255,255,255,0.35);
    }
    50%{
        box-shadow:
            0 0 16px rgba(242,207,87,0.30),
            0 0 28px rgba(194,157,24,0.10),
            inset 0 1px 0 rgba(255,255,255,0.38);
    }
}

nav ul li a.active{
    color: #1a1405;
    border-color: var(--gold-bright);
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
    box-shadow:
        0 0 12px rgba(194,157,24,0.28),
        inset 0 1px 0 rgba(255,255,255,0.35);
}

nav ul li a.active:hover{
    transform: translateX(4px);
}

/* CONTENT WRAPPERS */
#container,
footer,
.lwr,
body > section.story{
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

#container{
    margin-top: 0;
    margin-bottom: 20px;
    border-radius: 24px;
    border: 1px solid var(--gold);
    background-color: var(--panel-soft);
    padding: 22px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

.lwr{
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 24px;
    border: 1px solid var(--gold);
    background-color: var(--panel-soft);
    padding: 22px;
    color: var(--gold);
    box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

body > section.story{
    border-radius: 24px;
    border: 1px solid var(--gold);
    background-color: var(--panel-soft);
    padding: 18px 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.26);
}

article{
    width: 100%;
    max-width: none;
    border-radius: 20px;
    border: 1px solid var(--gold);
    margin: 10px 0;
    padding: 15px;
    background-color: var(--panel-solid);
}

footer{
    margin-top: 20px;
    padding: 12px 18px;
    border-radius: 24px;
    border: 1px solid var(--gold);
    background-color: var(--panel-solid);
    color: var(--gold);
    text-align: center;
}

footer ul{
    list-style: none;
}

/* TABLE */
table{
    width: 100%;
    color: var(--gold);
    border-collapse: collapse;
    margin: 20px auto;
}

td,
th{
    text-align: center;
    border: 1px solid var(--gold);
    background-color: var(--panel-solid);
    padding: 10px;
}

/* TEXT */
.txtcolorb,
.mtxtcolor,
.story{
    color: var(--gold);
    text-align: center;
}

/* BOXES */
.flex-container{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.sev4,
.ts3{
    flex: 1 1 300px;
    min-height: 400px;
    border-radius: 15px;
    border: 1px solid var(--gold);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
}

/* LINKS */
a{
    color: var(--gold);
    background-color: var(--panel-solid);
    padding: 5px 10px;
    border: 1px solid var(--gold);
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s;
}

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

a.plain,
.plain{
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
}

a.plain:hover,
.plain:hover{
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 1180px){
    :root{
        --sidebar-width: 244px;
        --outer-gap: 18px;
    }

    header{
        min-height: clamp(170px, 25vw, 280px);
    }
}

@media (max-width: 980px){
    body{
        padding: 18px;
    }

    .men{
        position: static;
        width: 100%;
        margin: 0 0 18px 0;
        overflow: visible;
    }

    .men nav{
        min-height: auto;
        padding: 16px 12px;
        border-radius: 24px;
    }

    .men nav::before{
        margin-bottom: 14px;
    }

    nav ul{
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    nav ul li a,
    nav ul li span{
        width: auto;
        text-align: center;
        border-radius: 999px;
        padding: 10px 14px;
        white-space: nowrap;
    }

    nav ul li a:hover{
        transform: translateY(-2px);
    }

    nav ul li a:active,
    nav ul li a.active:hover{
        transform: translateY(0);
    }

    header,
    footer,
    #container,
    .lwr,
    body > section.story{
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px){
    .flex-container{
        flex-direction: column;
    }

    header{
        min-height: clamp(130px, 32vw, 210px);
        border-radius: 20px;
    }

    header::before{
        border-radius: 18px;
    }

    nav ul li a,
    nav ul li span{
        padding: 9px 12px;
        font-size: 14px;
        letter-spacing: 0.2px;
    }

    #container,
    .lwr,
    body > section.story{
        padding: 16px;
    }
}

@media (max-width: 480px){
    body{
        padding: 12px;
    }

    nav ul{
        gap: 6px;
    }

    nav ul li a,
    nav ul li span{
        padding: 8px 10px;
        font-size: 13px;
        border-radius: 14px;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce){
    nav ul li a,
    nav ul li a::before,
    nav ul li span{
        transition: none;
        animation: none;
    }
}

.steam-widget{
    width: 80%;
    max-width: none;
    margin: 20px auto;
}

.steam-widget iframe{
    width: 80%;
    height: 190px;
}

.forum-wrapper{
    width: 100%;
    margin: 1px auto;
}

.forum-wrapper iframe{
    width: 100%;
    height: 900px;
    border: 1px solid var(--gold);
    border-radius: 15px;
}

.server-frame{
    width: 100%;
    max-width: none;
    margin: 20px auto;
}

.server-frame iframe{
    width: 100%;
    height: 600px;
    border: 1px solid var(--gold);
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.3);
}

.server-frame2{
    width: 100%;
    max-width: none;
    margin: 20px auto;
}

.server-frame2 iframe{
    width: 100%;
    height: 800px;
    border: 1px solid var(--gold);
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.3);
}

.member-table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.member-table th,
.member-table td{
    border: 1px solid var(--gold);
    padding: 15px;
    text-align: center;
}

.member-table th{
    background-color: rgba(0, 0, 0, 0.6);
    color: gold;
}

.member-table img{
    max-width: 120px;
    height: auto;
    border-radius: 10px;
}

.rank-founder{
    color: red;
    font-weight: bold;
}

.rank-member{
    color: green;
    font-weight: bold;
}

.former-note{
    margin-bottom: 20px;
    font-size: 18px;
}

.anti-cheat{
    text-align: center;
}

.warning{
    color: red;
    font-size: 20px;
    font-weight: bold;
}

.cheat-img{
    height: 100px;
}

.cheat-banner{
    max-width: 100%;
}

.requirements{
    text-align: left;
    max-width: none;
    margin: 20px 0;
    line-height: 1.8;
}

.requirements li{
    margin-bottom: 10px;
}

.join-contact{
    margin-top: 30px;
    font-size: 18px;
}

.join-warning{
    margin-top: 20px;
    color: #b10000;
    font-weight: bold;
    font-size: 20px;
}

.disclaimer{
    text-align: center;
}

.no-exceptions{
    color: red;
    font-weight: bold;
    font-size: 20px;
}

.founder-quote{
    margin-top: 20px;
    font-style: italic;
    color: var(--gold);
}

.donate-section{
    text-align: center;
}

.donate-highlight{
    font-size: 20px;
    color: lightgreen;
    margin: 20px 0;
}

.donate-button{
    margin: 30px 0;
}

.paypal-btn{
    max-width: 330px;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.donate-disclaimer{
    font-size: 14px;
    color: orange;
    margin-top: 20px;
}

.donate-thanks{
    font-size: 22px;
    margin-top: 20px;
}

.glow{
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    animation: glowPulse 1.5s ease-in-out infinite alternate;
}

@keyframes glowPulse{
    from{
        text-shadow:
            0 0 5px #ff0000,
            0 0 10px #ff0000,
            0 0 15px #ff0000,
            0 0 20px #ff0000;
    }
    to{
        text-shadow:
            0 0 2px #ff0000,
            0 0 5px #ff0000,
            0 0 8px #ff0000,
            0 0 12px #ff0000;
    }
}
