/* ==============================================
   NEON CASINO — Main theme styles
   ============================================== */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-main); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* GLOBAL LAYOUT */
.layout { display: flex; min-height: 100vh; }

/* ===== LEFT MENU (DESKTOP) ===== */
.sidebar {
    width: var(--sidebar-width); background-color: var(--bg-panel);
    position: fixed; top: 0; left: 0; height: 100vh; padding: 20px;
    display: flex; flex-direction: column; border-right: 1px solid var(--bg-border); z-index: 100;
}
.logo { font-size: 24px; font-weight: 900; color: var(--accent-primary); margin-bottom: 40px; text-transform: uppercase; letter-spacing: 2px; }
.logo a { color: var(--accent-primary); }
.logo img, .custom-logo { max-width: 100%; width: auto !important; height: auto !important; display: block; }
.sidebar-nav li { margin-bottom: 15px; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--text-muted); transition: 0.3s; padding: 10px; border-radius: 8px; }
.sidebar-nav a:hover { background-color: var(--bg-border); color: var(--text-main); }
.sidebar-nav a.active,
.sidebar-nav .current-menu-item > a { background-color: var(--bg-border); color: var(--accent-primary); font-weight: bold; }

/* WP menu in sidebar */
.sidebar-nav .menu { list-style: none; padding: 0; margin: 0; }
.sidebar-nav .menu li { margin-bottom: 15px; }
.sidebar-nav .menu a { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--text-muted); transition: 0.3s; padding: 10px; border-radius: 8px; }
.sidebar-nav .menu a:hover { background-color: var(--bg-border); color: var(--text-main); }
.sidebar-nav .menu .current-menu-item > a { background-color: var(--bg-border); color: var(--accent-primary); font-weight: bold; }

/* ===== MAIN CONTENT AREA ===== */
.main-wrapper {
    margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width));
    display: flex; flex-direction: column;
}

/* ===== HEADER ===== */
.header {
    height: var(--header-height); background-color: var(--bg-panel);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 30px; position: sticky; top: 0; z-index: 90; border-bottom: 1px solid var(--bg-border);
}
.header-search input { background: var(--bg-dark); border: 1px solid var(--bg-border); padding: 8px 15px; border-radius: 20px; color: white; outline: none; }

/* WP menu in header */
.header-nav { display: flex; align-items: center; }
.header-nav .menu { display: flex; list-style: none; padding: 0; margin: 0; gap: 5px; }
.header-nav .menu li { position: relative; }
.header-nav .menu a { color: var(--text-muted); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 8px; transition: 0.3s; display: block; }
.header-nav .menu a:hover { color: var(--text-main); background-color: var(--bg-border); }
.header-nav .menu .current-menu-item > a { color: var(--accent-primary); }

/* Submenu */
.header-nav .menu .sub-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
    background: var(--bg-panel); border: 1px solid var(--bg-border); border-radius: 8px;
    padding: 8px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.4); z-index: 100;
}
.header-nav .menu li:hover > .sub-menu { display: block; }
.header-nav .menu .sub-menu a { padding: 10px 20px; font-size: 14px; }

.header-auth { display: flex; align-items: center; gap: 15px; }
.btn-login { background: transparent; color: white; border: none; font-weight: bold; cursor: pointer; padding: 10px 15px; font-size: 15px; transition: 0.3s; display: inline-flex; align-items: center; }
.btn-login:hover { color: var(--accent-primary); }
.btn-signup { background: var(--accent-button); color: white; padding: 10px 24px; border-radius: 8px; font-weight: bold; font-size: 15px; border: none; cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; }
.btn-signup:hover { background: var(--accent-button-hover); transform: translateY(-2px); }

/* ===== CONTENT ===== */
.content { padding: 30px; flex-grow: 1; }

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-panel); padding: 40px 30px; text-align: center;
    border-top: 1px solid var(--bg-border); color: var(--text-muted); font-size: 14px;
}
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--accent-primary); }

/* WP menu in footer */
.footer-nav .menu { display: flex; justify-content: center; gap: 20px; list-style: none; padding: 0; margin: 0 0 20px 0; flex-wrap: wrap; }
.footer-nav .menu a { color: var(--text-muted); transition: 0.3s; }
.footer-nav .menu a:hover { color: var(--accent-primary); }

/* ===== MOBILE MENU ===== */
.mobile-nav {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%;
    height: var(--mobile-nav-height); background-color: var(--bg-panel);
    border-top: 1px solid var(--bg-border); z-index: 100;
}

.mobile-landing-accordion { display: none; }

/* ===== WP SPECIFICS ===== */
.wp-block-post-content { color: var(--text-muted); line-height: 1.8; }
.wp-block-post-content h2,
.wp-block-post-content h3 { color: var(--text-heading); }

/* WP alignment */
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin: 0 auto; }

/* ===== RESPONSIVE ===== */
/* ===== BURGER BUTTON ===== */
.burger-btn {
    display: none;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 36px; height: 36px;
    background: transparent; border: none; cursor: pointer; padding: 4px;
}
.burger-btn span {
    display: block; width: 22px; height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.burger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.is-open span:nth-child(2) { opacity: 0; }
.burger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE DRAWER ===== */
.mobile-drawer {
    position: fixed; top: 0; left: 0; height: 100%; width: 260px;
    background: var(--bg-panel);
    border-right: 1px solid var(--bg-border);
    z-index: 201;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 24px 16px;
    overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }

.mobile-drawer-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.55); z-index: 200;
    backdrop-filter: blur(2px);
}
.mobile-drawer-overlay.is-open { display: block; }

.mobile-drawer-logo { margin-bottom: 28px; font-size: 20px; font-weight: 900; color: var(--accent-primary); }
.mobile-drawer-logo img { max-height: 40px; width: auto; }

.mobile-drawer-nav .menu { list-style: none; padding: 0; margin: 0; }
.mobile-drawer-nav .menu li { margin-bottom: 4px; }
.mobile-drawer-nav .menu a {
    display: flex; align-items: center; gap: 10px;
    font-size: 16px; color: var(--text-muted);
    padding: 11px 12px; border-radius: 8px; transition: 0.2s;
}
.mobile-drawer-nav .menu a:hover,
.mobile-drawer-nav .menu .current-menu-item > a {
    background: var(--bg-border); color: var(--accent-primary); font-weight: bold;
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-wrapper { margin-left: 0; width: 100%; padding-bottom: var(--mobile-nav-height); }
    .header { padding: 0 15px; }
    .header-search { display: none; }
    .header-nav { display: none; }
    .burger-btn { display: flex; }
    .mobile-nav { display: flex; justify-content: space-around; align-items: center; }
    .mobile-nav-item { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--text-muted); gap: 4px; }
    .mobile-nav-item.active { color: var(--accent-primary); }
    .mobile-landing-accordion {
        display: block;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(var(--mobile-nav-height) + 12px);
        background: rgba(17, 24, 17, 0.96);
        border: 1px solid var(--bg-border);
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
        overflow: hidden;
        z-index: 99;
        backdrop-filter: blur(12px);
    }
    .mobile-landing-accordion summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        color: var(--text-heading);
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        list-style: none;
    }
    .mobile-landing-accordion summary::-webkit-details-marker { display: none; }
    .mobile-landing-accordion summary::after {
        content: '+';
        color: var(--accent-primary);
        font-size: 20px;
        line-height: 1;
    }
    .mobile-landing-accordion[open] summary {
        border-bottom: 1px solid var(--bg-border);
    }
    .mobile-landing-accordion[open] summary::after {
        content: '−';
    }
    .mobile-landing-list {
        max-height: 45vh;
        overflow-y: auto;
        padding: 10px 12px 14px;
    }
    .mobile-landing-list li + li {
        margin-top: 8px;
    }
    .mobile-landing-link {
        display: block;
        padding: 12px 14px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-main);
        font-size: 14px;
        font-weight: 600;
    }
    .mobile-landing-link.active {
        background: var(--bg-border);
        color: var(--accent-primary);
    }
}
