/* ==========================================================================
   HEUGOR Blog Articles Multi-Language Translation System
   Floating Language Icon for Blog Articles + Modern Glassmorphism Modal
   ========================================================================== */

/* 1. Complete suppression of all Google Translate native logos, banners, tooltips & top frame bars */
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos,
.goog-text-highlight,
.goog-logo-link,
.goog-te-gadget span,
div.goog-te-gadget,
#goog-gt-tt,
.goog-te-balloon-frame,
#goog-gt-option-anchor,
.goog-te-menu-frame,
.VIpgJd-yDvfNd-OR9xe0-OWX2fe,
.VIpgJd-yDvfNd-l4ehee,
iframe[id^=":"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
}

body {
    top: 0px !important;
    position: static !important;
}

#google_translate_element {
    display: none !important;
    position: absolute;
    left: -9999px;
}

/* 2. Floating Language Action Icon (Fixed at Bottom-Right Corner) */
.heugor-lang-trigger-floating {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999999;
    background: rgba(18, 18, 18, 0.92);
    border: 2px solid #b0c929;
    border-radius: 50px;
    padding: 10px 18px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(176, 201, 41, 0.35);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.heugor-lang-trigger-floating:hover {
    transform: translateY(-4px) scale(1.05);
    background: #1a1a1a;
    border-color: #c7e034;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75), 0 0 30px rgba(176, 201, 41, 0.55);
}

.heugor-lang-trigger-floating i.globe-icon {
    color: #b0c929;
    font-size: 1.2rem;
    animation: pulseGlobe 2.5s infinite ease-in-out;
}

@keyframes pulseGlobe {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.2); opacity: 1; }
}

.heugor-lang-trigger-floating .lang-text {
    letter-spacing: 0.4px;
    color: #ffffff;
}

.heugor-lang-trigger-floating .badge-online {
    width: 8px;
    height: 8px;
    background: #b0c929;
    border-radius: 50%;
    box-shadow: 0 0 8px #b0c929;
}

/* 3. Glassmorphism Language Selector Modal Overlay */
.heugor-lang-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.heugor-lang-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Box */
.heugor-lang-modal {
    background: #141414;
    border: 1px solid rgba(176, 201, 41, 0.35);
    border-radius: 24px;
    width: 100%;
    max-width: 660px;
    padding: 2.2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(176, 201, 41, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.heugor-lang-modal-overlay.active .heugor-lang-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.heugor-lang-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.2rem;
}

.heugor-lang-header h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.heugor-lang-header h3 i {
    color: #b0c929;
}

.heugor-lang-header p {
    color: #aaaaaa;
    font-size: 0.92rem;
    margin: 0;
}

.heugor-lang-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cccccc;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.heugor-lang-close:hover {
    background: #b0c929;
    color: #111111;
    transform: rotate(90deg);
}

/* Language Cards Grid */
.heugor-lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
}

.heugor-lang-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.heugor-lang-card:hover {
    background: rgba(176, 201, 41, 0.14);
    border-color: #b0c929;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.heugor-lang-card.active {
    background: rgba(176, 201, 41, 0.22);
    border-color: #b0c929;
    box-shadow: 0 0 15px rgba(176, 201, 41, 0.3);
}

.heugor-lang-info {
    display: flex;
    flex-direction: column;
}

.heugor-lang-native {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
}

.heugor-lang-english {
    color: #888888;
    font-size: 0.8rem;
    margin-top: 2px;
}

.heugor-lang-card.active .heugor-lang-english {
    color: #b0c929;
}

.heugor-lang-card .check-icon {
    color: #b0c929;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.heugor-lang-card.active .check-icon {
    opacity: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .heugor-lang-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .heugor-lang-modal {
        padding: 1.5rem;
    }
    .heugor-lang-trigger-floating {
        bottom: 20px;
        right: 20px;
        padding: 9px 15px;
        font-size: 0.88rem;
    }
}
