/* WCAssist footer — scoped to avoid Bootstrap .tab-content / .tab-link conflicts */

.site-footer {
    background: #fff;
    color: #121212;
    font-size: 14px;
    border-top: 1px solid #eee;
}

.site-footer .footer-tabs-container {
    padding: 30px 0 34px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.site-footer .container.footertab {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer .footer-tab-headers {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.site-footer .footer-tab-headers::-webkit-scrollbar {
    display: none;
}

.site-footer button.footer-tab-link {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 12px;
    font-weight: 700;
    color: #717171;
    cursor: pointer;
    padding: 0 0 12px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
    margin: 0;
    line-height: 1.4;
}

.site-footer button.footer-tab-link:hover,
.site-footer button.footer-tab-link.active {
    color: #121212;
    border-bottom-color: #121212;
}

.site-footer .footer-tab-panel {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.site-footer .footer-tab-panel.active {
    display: grid;
}

.site-footer .footer-tab-panel a.footer-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 11px 16px;
    min-height: 46px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-footer .footer-tab-panel a.footer-chip:hover {
    border-color: var(--wc-red, #dc2626);
    color: var(--wc-red, #dc2626);
    background: rgba(220, 38, 38, 0.04);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
}

.site-footer .footer-tab-panel a.footer-chip:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.1);
}

.site-footer .footer-tab-panel a.footer-chip-featured {
    border-color: rgba(220, 38, 38, 0.35);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.07) 0%, rgba(30, 58, 138, 0.05) 100%);
    color: var(--wc-blue, #1e3a8a);
    font-weight: 700;
}

.site-footer .footer-tab-panel a.footer-chip-featured::after {
    content: ' ★';
    font-size: 0.8em;
    color: var(--wc-red, #dc2626);
}

.site-footer .footer-tab-panel a.footer-chip-featured:hover {
    color: var(--wc-red, #dc2626);
    border-color: var(--wc-red, #dc2626);
}

.site-footer .footer-tab-panel a.footer-chip-more {
    border-color: var(--wc-blue, #1e3a8a);
    color: var(--wc-blue, #1e3a8a);
    background: rgba(30, 58, 138, 0.04);
    font-weight: 700;
}

.site-footer .footer-tab-panel a.footer-chip-more:hover {
    border-color: var(--wc-blue, #1e3a8a);
    color: #fff;
    background: linear-gradient(135deg, var(--wc-blue, #1e3a8a), #2563eb);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25);
}

.site-footer .footer-empty-state {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 14px;
    padding: 8px 4px;
}

/* Legacy plain links (fallback) */
.site-footer .footer-tab-panel a:not(.footer-chip) {
    text-decoration: none;
    color: #5e5e5e;
    font-size: 14px;
}

.site-footer .footer-tab-panel a:not(.footer-chip):hover {
    text-decoration: underline;
    color: #121212;
}

.site-footer .footer-main {
    padding: 50px 0;
    background: #fff;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.5fr;
    gap: 20px;
}

.site-footer .footer-col h4 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
    color: #121212;
}

.site-footer .footer-col a {
    display: block;
    text-decoration: none;
    color: #555;
    margin-bottom: 10px;
    font-size: 14px;
}

.site-footer .footer-col a:hover {
    color: #121212;
    text-decoration: underline;
}

.site-footer .footer-right {
    text-align: right;
}

.site-footer .social-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 20px;
}

.site-footer .social-icons a {
    color: #121212;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-footer .social-icons a:hover {
    color: #d32f2f;
}

.site-footer .blog-btn {
    border: 1px solid #121212;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    color: #121212;
}

.site-footer .app-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 30px;
}

.site-footer .app-buttons a {
    display: inline-block;
    line-height: 0;
}

.site-footer .app-buttons img {
    height: 40px;
    width: auto;
    display: block;
}

.site-footer .language-selector {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    font-weight: 700;
    color: #121212;
    cursor: pointer;
    padding: 0;
}

.site-footer .language-selector img {
    width: 20px;
    height: auto;
}

.site-footer .language-selector:hover {
    color: #d32f2f;
}

.site-footer .footer-bottom {
    padding: 20px 0;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 12px;
    background: #fff;
}

.site-footer .footer-bottom .bottom-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

.site-footer .footer-bottom .bottom-left a {
    text-decoration: none;
    color: #777;
}

.site-footer .footer-bottom .bottom-left a:hover {
    color: #121212;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-footer .footer-right {
        text-align: left;
    }

    .site-footer .social-icons,
    .site-footer .app-buttons {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .site-footer .language-selector {
        justify-content: flex-start;
    }

    .site-footer .footer-tab-panel.active {
        grid-template-columns: 1fr;
    }

    .site-footer .footer-tab-panel a.footer-chip {
        justify-content: flex-start;
        text-align: left;
    }
}

body.rtl .site-footer .footer-right {
    text-align: left;
}

body.rtl .site-footer .social-icons,
body.rtl .site-footer .app-buttons,
body.rtl .site-footer .language-selector {
    justify-content: flex-start;
}
