.navbar {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem 18rem;

    .line-1 {
        display: flex;
        flex-direction: row;
        justify-content: space-between;

        .left {
            a {
                .logo-icon {
                    height: 3.25rem;
                }
            }
        }

        .right {
            display: flex;
            flex-direction: row;
            gap: 22px;
            align-items: center;

            .server-status-container, .woe-status-container, .players-container {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 5px;

                .text, .divider, .players-online-text {
                    color: white;
                    font-size: 13px;
                    font-weight: 500;
                }

                .server-status-icon, .woe-status-icon {
                    height: 14px;
                }

                .players-online-text {
                    font-weight: bold;
                }
            }

            .discord-header-container {
                .discord-icon {
                    height: 32px;
                    background-color: rgba(0, 0, 0, 0.3);
                    border-radius: 50%;
                    padding: 7px;
                }

                .discord-icon:hover {
                    background-color: rgba(0, 0, 0, 0.8);
                }
            }
        }
    }

    .line-2 {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 4px;

        .link-item {
            color: white;
            font-weight: 500;
            font-size: 1rem;
            padding: 4px 12px;
            border-radius: 6px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            line-height: 1.2;
            user-select: none;
        }

        .link-item:hover {
            background-color: rgba(255, 255, 255, 1);
            color: black;
            cursor: pointer;
        }

        .nav-item {
            position: relative;
            display: inline-flex;
            align-items: center;
        }

        .nav-item > .link-item {
            height: 36px;
            display: inline-flex;
            align-items: center;
        }

        .nav-item--has-sub > .link-item::after {
            content: "▾";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 14px;
            height: 14px;
            line-height: 14px;
            font-size: 12px;
            margin-left: 6px;
            transform: translateY(1px);
            opacity: 0.95;
        }

        .nav-item--has-sub::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            top: 100%;
            height: 12px;
        }

        .submenu {
            position: absolute;
            top: calc(100% + 10px);
            left: 50%;
            transform: translateX(-50%);
            min-width: 150px;

            background: rgba(255, 255, 255, 0.98);
            border: 1px solid rgba(0, 0, 0, 0.12);
            border-radius: 12px;
            box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);

            padding: 8px;
            display: none;
            z-index: 9999;
        }

        .submenu::before {
            content: "";
            position: absolute;
            top: -7px;
            left: 50%;
            width: 12px;
            height: 12px;
            background: rgba(255, 255, 255, 0.98);
            border-left: 1px solid rgba(0, 0, 0, 0.12);
            border-top: 1px solid rgba(0, 0, 0, 0.12);
            transform: translateX(-50%) rotate(45deg);
        }


        .nav-item--has-sub:hover .submenu,
        .nav-item--has-sub:focus-within .submenu {
            display: block;
        }

        .submenu a {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;

            padding: 10px 10px;
            border-radius: 10px;
            text-decoration: none;

            color: #0f172a;
            font-weight: 600;
            font-size: 0.95rem;
            white-space: nowrap;
        }

        .submenu a:hover {
            background: rgba(7, 102, 195, 0.10);
            color: #0b4d8f;
        }

        .submenu .subhint {
            font-size: 0.85rem;
            font-weight: 500;
            color: rgba(15, 23, 42, 0.70);
        }

        @media (max-width: 980px) {
            .submenu {
                left: 0;
                transform: none;
            }

            .submenu::before {
                left: 22px;
                transform: rotate(45deg);
            }
        }

    }
}
