/* ==========================================================================
   NOTIFORGE — VIEWS: PROFİL & DİL SEÇİCİ (PROFILE VIEW)
   Profil arayüzü dil seçim kartları ve RTL (Arapça) metin hizalama kuralları.
   ========================================================================== */

/* ==========================================================================
   🌐 PROFİL DİL SEÇİCİ (segmentli kontrol) & RTL
   ========================================================================== */
.profile-lang-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-2);
}

.profile-lang-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 8px;
    border-radius: var(--r-md);
    border: 1.5px solid var(--border);
    background: var(--surface-2);
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
    user-select: none;
    text-align: center;
}

.profile-lang-btn:hover {
    border-color: var(--border-strong);
}

.profile-lang-btn.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-ink);
}

.profile-lang-btn .lang-code {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.profile-lang-btn .lang-title {
    font-size: .82rem;
    font-weight: 600;
}

/* RTL (Arapça) Desteği */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .header-brand {
    flex-direction: row-reverse;
}

html[dir="rtl"] .feed-header,
html[dir="rtl"] .schedule-card-header,
html[dir="rtl"] .mini-chat-header,
html[dir="rtl"] .action-card-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nf-toast-card {
    border-left: 1px solid var(--border-strong);
    border-right: 4px solid var(--accent, var(--accent));
    text-align: right;
}

@media (prefers-reduced-motion: reduce) {
    .profile-lang-btn, .profile-logout-btn, .profile-delete-btn, .theme-opt { transition: none; }
}
