/*
Theme Name: gamescore
Description: Modern dark interface for the GameScore site.
Version: 1.0.0
Author: Joseph
*/

.container-header{
	padding: 1px!important;
}
.nk-nav-user{
	width: 15%;
}
.nk-navbar {
	padding:0px !important;
}
.nk-navbar .nk-nav-table {
	max-height: 75px !important;
}
* {
    box-sizing: border-box;
}

body {
    background: #121212;
    color: #eeeeee;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.5;
}

a {
    color: #79b8ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    background: #1c1c1c;
    padding: 0px 0;
    border-bottom: 1px solid #333333;
}

footer {
    background: #1c1c1c;
    padding: 16px 0;
    border-top: 1px solid #333333;
    text-align: center;
    color: #aaaaaa;
    font-size: 0.9rem;
}

.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-weight: 500;
    margin: 0 0 0.5em;
}

main.container {
    padding: 20px 0 40px;
}

/* HEADER BRAND + NAV */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
}

.site-tagline {
    font-size: 0.85rem;
    color: #888888;
    margin: 0;
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* NAV MENU (structure is generated by core_render_menu) */
.main-nav {
    position: relative;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-menu.empty {
    opacity: 0.6;
    font-size: 0.9rem;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    color: #eeeeee;
    text-decoration: none;
    font-size: 0.95rem;
}

.menu-link:hover {
    background: #232323;
}

.menu-item.has-children > .menu-link .submenu-toggle {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Submenu base */
.submenu {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 50;
}

.submenu .menu-link {
    width: 100%;
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Hover behavior for desktop */
@media (hover: hover) and (pointer: fine) {
    .menu-item:hover > .submenu {
        display: block;
    }

    .submenu .menu-item:hover > .submenu {
        display: block;
    }
}

/* Nested submenu alignment */
.submenu .submenu {
    left: 100%;
    top: 0;
}

/* Responsive / mobile tweaks */
.nav-toggle {
    display: none;
    cursor: pointer;
    border: 1px solid #444444;
    border-radius: 4px;
    padding: 6px 8px;
    background: #222222;
    color: #eeeeee;
    font-size: 0.9rem;
}

.nav-toggle span {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        margin-top: 8px;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-top: 10px;
        display: none; /* toggled via JS */
        width: 100%;
    }

    .nav-menu.show {
        display: flex;
    }

    .menu-link {
        width: 100%;
    }

    .submenu {
        position: static;
        box-shadow: none;
        border: none;
        background: #181818;
        margin-left: 10px;
        display: none; /* toggled via JS on mobile */
    }

    .menu-item.open > .submenu {
        display: block;
    }
}
