/* ============================================================
   TECH MIND DEVELOPERS - BLOG COMMON STYLESHEET
   Unified Language Switcher & Shared Blog Controls
   ============================================================ */

/* Base Language Switcher (Desktop/Laptop: Clean, Static, Strictly NO Blinking) */
.nav-lang-switcher {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3px;
    gap: 3px;
    transition: var(--transition);
    animation: none !important; /* Strictly no blinking on desktop/laptop */
}

.nav-lang-switcher:hover {
    border-color: var(--border-glow);
}

.nav-lang-btn {
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: 9px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    white-space: nowrap;
}

.nav-lang-btn:hover {
    color: var(--text-heading);
}

.nav-lang-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}

.lang-short { display: none; }
.lang-full { display: inline; }
.lang-content { animation: langFadeIn 0.3s ease; }

@keyframes langFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Blinking Glow Animation */
@keyframes langBorderGlow {
    0%, 100% {
        border-color: rgba(56, 189, 248, 0.35);
        box-shadow: 0 0 4px rgba(56, 189, 248, 0.2);
    }
    50% {
        border-color: #38bdf8;
        box-shadow: 0 0 14px 2px rgba(56, 189, 248, 0.8), inset 0 0 6px rgba(56, 189, 248, 0.25);
    }
}

/* Mobile Viewport (<= 680px): Continuous Automatic Blinking (No mouse hover needed) */
@media (max-width: 680px) {
    .lang-full { display: none !important; }
    .lang-short { display: block !important; }

    .nav-lang-switcher {
        flex-direction: column !important;
        padding: 2px !important;
        gap: 1px !important;
        border-width: 1px !important;
        border-style: solid !important;
        border-radius: 7px !important;
        /* Continuous pulse on mobile without requiring touch or hover */
        animation: langBorderGlow 1.8s infinite ease-in-out !important;
    }

    .nav-lang-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 2px 5px !important;
        font-size: 0.62rem !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        border-radius: 4px !important;
    }
}
