/* ============================================================
   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);
    border: none !important;
}

.nav-lang-btn:focus,
.nav-lang-btn:focus-visible,
.nav-lang-btn:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.nav-lang-btn.active:focus,
.nav-lang-btn.active:focus-visible {
    outline: none !important;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35) !important;
}

.nav-lang-switcher:focus,
.nav-lang-switcher:focus-visible,
.nav-lang-switcher:focus-within {
    outline: none !important;
}

.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;
    }
}

/* ============================================================
   UNIFIED FLOATING CONTACT & HOME PILL
   ============================================================ */
.floating-contact-pill {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}
.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.2rem;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
    transition: all 0.25s ease;
    position: relative;
    border: 1px solid rgba(255,255,255,0.18);
}
.float-home {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    box-shadow: 0 8px 20px rgba(99,102,241,0.45) !important;
}
.float-wa {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    box-shadow: 0 8px 20px rgba(37,211,102,0.45) !important;
}
.float-call {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    box-shadow: 0 8px 20px rgba(2,132,199,0.45) !important;
}
.float-btn:hover {
    transform: scale(1.12) translateY(-2px);
    color: #fff !important;
}
@media (max-width: 680px) {
    .floating-contact-pill {
        bottom: 18px !important;
        right: 14px !important;
        gap: 8px !important;
    }
    .float-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
    }
}

/* ============================================================
   FAQ ACCORDION (INTERACTIVE & SLEEK)
   ============================================================ */
.faq-accordion,
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 28px 0 38px;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(12px);
}
.faq-item:hover {
    border-color: var(--border-glow);
}
.faq-item.active {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15);
}
.faq-question {
    width: 100%;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    gap: 14px;
    text-align: left;
    transition: color 0.25s ease;
    user-select: none;
    font-family: inherit;
}
.faq-question:hover {
    color: var(--accent);
}
.faq-question i {
    color: var(--accent);
    font-size: 0.88rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 22px;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.8;
}
.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 14px 22px 20px;
    border-top: 1px solid rgba(56, 189, 248, 0.18);
}
[data-theme="light"] .faq-item {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .faq-item.active {
    border-color: rgba(2, 132, 199, 0.5);
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.12);
}
[data-theme="light"] .faq-question {
    color: #0f172a;
}
[data-theme="light"] .faq-answer {
    color: #334155;
}
[data-theme="light"] .faq-item.active .faq-answer {
    border-top-color: rgba(2, 132, 199, 0.15);
}
@media (max-width: 680px) {
    .faq-question {
        padding: 14px 16px;
        font-size: 0.96rem;
    }
    .faq-item.active .faq-answer {
        padding: 12px 16px 16px;
        font-size: 0.92rem;
    }
}



/* ============================================================
   Vivid High-Contrast Links for Article Prose & Content
   ============================================================ */
.article-content p a,
.article-body p a,
.article-container p a,
.post-content p a,
.lang-content p a,
.lang-content-en p a,
.lang-content-hien p a,
.highlight-box a,
.faq-answer a,
.comp-box a,
.comp-val a,
.article-content li a,
.article-body li a,
.article-container li a,
.post-content li a,
.lang-content li a,
.lang-content-en li a,
.lang-content-hien li a {
    color: #38bdf8 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    text-decoration-thickness: 1.5px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.article-content p a:visited,
.article-body p a:visited,
.article-container p a:visited,
.post-content p a:visited,
.lang-content p a:visited,
.lang-content-en p a:visited,
.lang-content-hien p a:visited,
.highlight-box a:visited,
.faq-answer a:visited,
.comp-box a:visited,
.comp-val a:visited,
.article-content li a:visited,
.article-body li a:visited,
.article-container li a:visited,
.post-content li a:visited,
.lang-content li a:visited,
.lang-content-en li a:visited,
.lang-content-hien li a:visited {
    color: #38bdf8 !important;
}

.article-content p a:hover,
.article-body p a:hover,
.article-container p a:hover,
.post-content p a:hover,
.lang-content p a:hover,
.lang-content-en p a:hover,
.lang-content-hien p a:hover,
.highlight-box a:hover,
.faq-answer a:hover,
.comp-box a:hover,
.comp-val a:hover,
.article-content li a:hover,
.article-body li a:hover,
.article-container li a:hover,
.post-content li a:hover,
.lang-content li a:hover,
.lang-content-en li a:hover,
.lang-content-hien li a:hover {
    color: #7dd3fc !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5) !important;
}

/* Light Theme Link Styling */
[data-theme="light"] .article-content p a,
[data-theme="light"] .article-body p a,
[data-theme="light"] .article-container p a,
[data-theme="light"] .post-content p a,
[data-theme="light"] .lang-content p a,
[data-theme="light"] .lang-content-en p a,
[data-theme="light"] .lang-content-hien p a,
[data-theme="light"] .highlight-box a,
[data-theme="light"] .faq-answer a,
[data-theme="light"] .comp-box a,
[data-theme="light"] .comp-val a,
[data-theme="light"] .article-content li a,
[data-theme="light"] .article-body li a,
[data-theme="light"] .article-container li a,
[data-theme="light"] .post-content li a,
[data-theme="light"] .lang-content li a,
[data-theme="light"] .lang-content-en li a,
[data-theme="light"] .lang-content-hien li a {
    color: #0284c7 !important;
}

[data-theme="light"] .article-content p a:visited,
[data-theme="light"] .article-body p a:visited,
[data-theme="light"] .article-container p a:visited,
[data-theme="light"] .post-content p a:visited,
[data-theme="light"] .lang-content p a:visited,
[data-theme="light"] .lang-content-en p a:visited,
[data-theme="light"] .lang-content-hien p a:visited,
[data-theme="light"] .highlight-box a:visited,
[data-theme="light"] .faq-answer a:visited,
[data-theme="light"] .comp-box a:visited,
[data-theme="light"] .comp-val a:visited,
[data-theme="light"] .article-content li a:visited,
[data-theme="light"] .article-body li a:visited,
[data-theme="light"] .article-container li a:visited,
[data-theme="light"] .post-content li a:visited,
[data-theme="light"] .lang-content li a:visited,
[data-theme="light"] .lang-content-en li a:visited,
[data-theme="light"] .lang-content-hien li a:visited {
    color: #0284c7 !important;
}

[data-theme="light"] .article-content p a:hover,
[data-theme="light"] .article-body p a:hover,
[data-theme="light"] .article-container p a:hover,
[data-theme="light"] .post-content p a:hover,
[data-theme="light"] .lang-content p a:hover,
[data-theme="light"] .lang-content-en p a:hover,
[data-theme="light"] .lang-content-hien p a:hover,
[data-theme="light"] .highlight-box a:hover,
[data-theme="light"] .faq-answer a:hover,
[data-theme="light"] .comp-box a:hover,
[data-theme="light"] .comp-val a:hover,
[data-theme="light"] .article-content li a:hover,
[data-theme="light"] .article-body li a:hover,
[data-theme="light"] .article-container li a:hover,
[data-theme="light"] .post-content li a:hover,
[data-theme="light"] .lang-content li a:hover,
[data-theme="light"] .lang-content-en li a:hover,
[data-theme="light"] .lang-content-hien li a:hover {
    color: #0369a1 !important;
}

/* ============================================================
   RESPONSIVE TECH & FEATURE COMPARISON CARDS
   (Replaces wide tables to eliminate horizontal scroll)
   ============================================================ */
.comp-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0 32px;
}
.comp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 22px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.comp-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.comp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.comp-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-heading);
}
.comp-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.comp-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
[data-theme="light"] .comp-box {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}
.comp-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.comp-val {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
}
.comp-verdict {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    color: #10b981;
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
[data-theme="light"] .comp-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .comp-card:hover {
    border-color: rgba(2, 132, 199, 0.4);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
}
[data-theme="light"] .comp-header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .comp-badge {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    border-color: rgba(2, 132, 199, 0.25);
}
