/* Shared shell components for GasGx pages. */

#ggx-site-header-slot .gas-card {
    background-color: rgba(32, 32, 32, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#ggx-site-header-slot .mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #151515;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 40;
}

#ggx-site-header-slot .group:hover .mega-menu {
    display: block;
    animation: ggx-shell-slide-down 0.2s ease-out;
}

#ggx-site-header-slot .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    min-width: 220px;
    background-color: #151515;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 40;
}

#ggx-site-header-slot .group:hover .dropdown-menu {
    display: block;
    animation: ggx-shell-slide-down 0.2s ease-out;
}

@keyframes ggx-shell-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#ggx-site-header-slot .nav-item-link {
    position: relative;
    padding: 1.5rem 0.5rem;
    color: #94a3b8;
    transition: color 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

#ggx-site-header-slot .nav-item-link:hover {
    color: #5DD62C;
}

#ggx-site-header-slot .nav-item-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #5DD62C;
    transition: width 0.3s;
}

#ggx-site-header-slot .nav-item-link:hover::after {
    width: 100%;
}

#ggx-site-header-slot #mobile-menu-container {
    transition: transform 0.3s ease-in-out;
}

#ggx-site-header-slot .mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#ggx-site-header-slot .ggx-lang-picker {
    position: relative;
}

#ggx-site-header-slot .ggx-lang-trigger {
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(17, 17, 17, 0.5);
    color: rgba(93, 214, 44, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

#ggx-site-header-slot .ggx-lang-trigger:hover {
    border-color: rgba(93, 214, 44, 0.55);
    color: #5DD62C;
    transform: translateY(-1px);
}

#ggx-site-header-slot .ggx-lang-picker.is-open .ggx-lang-trigger {
    border-color: rgba(93, 214, 44, 0.65);
}

#ggx-site-header-slot .ggx-lang-trigger i {
    font-size: 0.8rem;
}

#ggx-site-header-slot .ggx-lang-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 145px;
    background: #f4f4f5;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    padding: 4px;
    z-index: 80;
}

#ggx-site-header-slot .ggx-lang-option {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: #111827;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#ggx-site-header-slot .ggx-lang-option:hover {
    background: #e4e4e7;
}

#ggx-site-header-slot .ggx-lang-option.is-active {
    background: #e4e4e7;
    font-weight: 600;
}

#ggx-site-header-slot .ggx-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(148, 163, 184, 0.65);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}

#ggx-site-header-slot .ggx-lang-switch:hover {
    opacity: 1;
}

#ggx-site-header-slot .ggx-lang-btn {
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

#ggx-site-header-slot .ggx-lang-btn:hover {
    color: #e5e7eb;
}

#ggx-site-header-slot .ggx-lang-sep {
    color: rgba(148, 163, 184, 0.45);
    user-select: none;
}

#ggx-site-header-slot .ggx-lang-switch-mobile {
    font-size: 0.8rem;
    opacity: 0.9;
}

#ggx-site-header-slot .ggx-lang-btn-mobile {
    min-width: 2rem;
}

#ggx-site-footer-slot .footer-link {
    color: #94a3b8;
    transition: all 0.2s;
    font-size: 0.8rem;
    white-space: nowrap;
}

#ggx-site-footer-slot .footer-link:hover {
    color: #5DD62C;
}

#ggx-site-footer-slot .footer-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#ggx-site-footer-slot .ggx-social-btn {
    color: #6b7280;
    transition: color 0.2s;
}

#ggx-site-footer-slot .ggx-social-btn:hover {
    color: #5DD62C;
}

@keyframes ggx-chat-attention-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(93, 214, 44, 0.8);
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(93, 214, 44, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(93, 214, 44, 0);
        transform: scale(1);
    }
}

#ggx-chatbot-slot .ggx-chat-attention {
    animation: ggx-chat-attention-pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

#ggx-chatbot-slot #ggx-chat-messages::-webkit-scrollbar {
    width: 6px;
}

#ggx-chatbot-slot #ggx-chat-messages::-webkit-scrollbar-track {
    background: #151515;
    border-radius: 3px;
}

#ggx-chatbot-slot #ggx-chat-messages::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

#ggx-chatbot-slot #ggx-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #5DD62C;
}
