/**
 * components.css — Extra TG CMS UI Components
 * Language Switcher, Empty States, WPML Helpers
 */

.empty-state {
    padding: 60px 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    margin: 40px auto;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    color: var(--primary-color, #638675);
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark, #202428);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-gray, #717882);
    font-size: 15px;
    max-width: 480px;
    margin: 0 auto 20px;
}

/* Language Switcher */
.theme-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.theme-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 13px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Remove default bootstrap arrow */
.theme-lang-btn::after {
    display: none !important;
}

.theme-lang-btn:hover,
.theme-lang-btn[aria-expanded="true"] {
    background: #f8fafc;
    border-color: var(--primary-color, #638675);
    color: var(--primary-color, #638675);
    box-shadow: 0 4px 12px rgba(99, 134, 117, 0.12);
}

.theme-lang-flag {
    font-size: 17px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.theme-lang-flag-svg {
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    margin-right: 5px;
    flex-shrink: 0;
}

.theme-lang-globe {
    color: #64748b;
    transition: color 0.2s ease;
}

.theme-lang-btn:hover .theme-lang-globe {
    color: var(--primary-color, #638675);
}

.theme-lang-code {
    letter-spacing: 0.5px;
    font-size: 12.5px;
    font-weight: 700;
}

.theme-lang-chevron {
    color: #94a3b8;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.theme-lang-btn:hover .theme-lang-chevron {
    color: var(--primary-color, #638675);
}

.theme-lang-btn[aria-expanded="true"] .theme-lang-chevron {
    transform: rotate(180deg);
    color: var(--primary-color, #638675);
}

/* Dropdown Menu */
.theme-lang-dropdown {
    min-width: 190px;
    padding: 6px;
    margin-top: 8px !important;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    animation: themeLangDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes themeLangDropIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.theme-lang-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    margin: 2px 0;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    background: transparent;
    transition: all 0.15s ease;
}

.theme-lang-dropdown .dropdown-item:hover {
    background: #f8fafc;
    color: #0f172a;
    transform: translateX(2px);
}

.theme-lang-dropdown .dropdown-item.active {
    background: rgba(99, 134, 117, 0.08) !important;
    color: var(--primary-color, #638675) !important;
    font-weight: 600;
}

.theme-lang-dropdown-flag {
    font-size: 17px;
    line-height: 1;
}

.theme-lang-dropdown-name {
    font-size: 13px;
    letter-spacing: -0.1px;
}

.theme-lang-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
    letter-spacing: 0.3px;
}

.theme-lang-dropdown .dropdown-item.active .theme-lang-badge {
    background: rgba(99, 134, 117, 0.18);
    color: var(--primary-color, #638675);
}

.theme-lang-check {
    color: var(--primary-color, #638675);
    flex-shrink: 0;
}

/* Page Content Section */
.page-content-section {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.page-content-section h1,
.page-content-section h2,
.page-content-section h3 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
