/* Custom GameStich / QuizGame branding overrides */

/* Hide original base64 logo image */
#headerct > a:first-child img {
    display: none !important;
}

/* New clean header design - force override original inline styles */
#header {
    background: #ffffff !important;
    border-bottom: 3px solid #4f46e5 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    height: auto !important;
    min-height: 64px !important;
    padding: 0 !important;
}

#headerct {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 20px !important;
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* QuizGame text logo */
#headerct > a:first-child {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

.quizgame-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #4f46e5 !important;
    letter-spacing: -0.5px;
    line-height: 1 !important;
}

.quizgame-logo-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

/* Navigation redesign - override original uppercase white links */
#mznav,
#header nav,
#header .ct nav {
    display: block !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

#mznav ul {
    display: flex !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#mznav ul li a,
#header li a,
#header ul li a {
    display: inline-block !important;
    padding: 8px 16px !important;
    border: none !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    background: #4f46e5 !important;
    text-decoration: none !important;
    text-transform: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    line-height: 1.4 !important;
}

#mznav ul li a:hover,
#header li a:hover,
#header ul li a:hover {
    background: #3730a3 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35) !important;
}

/* Hide original hamburger on desktop */
#openmobile {
    display: none !important;
}

/* GameStich footer */
.gamestich-footer {
    background: #1f2937;
    color: #e5e7eb;
    text-align: center;
    padding: 24px 16px;
    margin-top: 50px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}

.gamestich-footer a {
    color: #a78bfa;
    text-decoration: none;
}

.gamestich-footer a:hover {
    text-decoration: underline;
}

/* Mobile hamburger menu */
@media (max-width: 800px) {
    #headerct {
        flex-direction: row !important;
        gap: 0 !important;
        padding: 12px 16px !important;
        position: relative !important;
    }

    .quizgame-logo {
        font-size: 22px;
    }

    .quizgame-logo-icon {
        width: 28px;
        height: 28px;
    }

    /* Hide regular nav buttons on mobile */
    #mznav,
    #header nav,
    #header .ct nav {
        display: none !important;
    }

    /* Show custom hamburger button on mobile (positioned right via left calc) */
    .quizgame-menu-btn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        position: absolute !important;
        top: 50% !important;
        right: 16px !important;
        transform: translateY(-50%) !important;
        width: 28px !important;
        height: 22px !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        cursor: pointer !important;
    }

    .quizgame-menu-btn span {
        display: block !important;
        width: 100% !important;
        height: 4px !important;
        background: #4f46e5 !important;
        border-radius: 2px !important;
    }

    /* Mobile full-screen menu overlay */
    #mzmobilebg {
        background: rgba(255, 255, 255, 0.98) !important;
        z-index: 100 !important;
    }

    #mzmobilex {
        top: 10px !important;
        right: 18px !important;
        font-size: 48px !important;
        color: #4f46e5 !important;
        font-weight: 300 !important;
    }

    #mzmobile {
        margin: 80px auto 0 !important;
        padding: 0 20px !important;
        text-align: center !important;
        text-transform: none !important;
    }

    #mzmobile ul {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #mzmobile li {
        height: auto !important;
        line-height: normal !important;
        margin-bottom: 12px !important;
    }

    #mzmobile a {
        display: inline-block !important;
        color: #ffffff !important;
        background: #4f46e5 !important;
        font-weight: 600 !important;
        font-size: 16px !important;
        padding: 12px 32px !important;
        border-radius: 999px !important;
        min-width: 160px !important;
        text-decoration: none !important;
        text-transform: none !important;
        transition: all 0.2s ease !important;
    }

    #mzmobile a:hover {
        background: #3730a3 !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35) !important;
    }
}
