/**
 * Mawada RTL Stylesheet v5.0
 * دعم كامل للغة العربية
 */

/* Base RTL */
body {
    direction: rtl;
    text-align: right;
}

/* Header RTL */
.mawada-logo {
    flex-direction: row;
}

.desktop-nav {
    flex-direction: row;
}

.header-actions {
    flex-direction: row;
}

/* User Menu RTL */
.user-menu-btn {
    flex-direction: row;
    padding-right: var(--space-4);
    padding-left: var(--space-2);
}

.user-dropdown {
    left: 0;
    right: auto;
}

.user-dropdown-item {
    flex-direction: row;
}

/* Mobile Menu RTL - يفتح من اليمين */
.mobile-menu {
    right: -100%;
    left: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-link {
    flex-direction: row;
}

/* Forms RTL */
.form-input-icon {
    right: var(--space-4);
    left: auto !important;
}

.form-input-wrapper .form-input {
    padding-right: var(--space-12);
    padding-left: var(--space-4);
}

.form-checkbox {
    flex-direction: row;
}

.toggle-password {
    left: var(--space-4) !important;
    right: auto !important;
}

/* Hero RTL */
.hero-stats {
    flex-direction: row;
}

.gender-select {
    direction: rtl;
}

.gender-option {
    text-align: center;
}

/* Members Grid RTL */
.member-card-actions {
    flex-direction: row;
}

.member-action-btn {
    flex-direction: row;
}

.member-online-badge {
    right: var(--space-3);
    left: auto;
}

.member-new-badge {
    right: var(--space-3);
    left: auto;
}

/* Categories RTL */
.category-card {
    text-align: center;
}

/* Navigation RTL */
.section-header {
    flex-direction: row;
}

.section-link i {
    transform: rotate(180deg);
}

.section-link:hover i {
    transform: rotate(180deg) translateX(4px);
}

/* Mobile Bottom Nav RTL */
.mobile-nav-item {
    direction: rtl;
}

/* Alert RTL */
.alert {
    text-align: right;
    flex-direction: row;
}

/* Form Footer RTL */
.form-footer {
    text-align: center;
}

/* Member Location RTL */
.member-location {
    direction: rtl;
}

/* Empty State RTL */
.empty-state {
    text-align: center;
}

/* Hero Search Grid RTL */
.hero-search-grid {
    direction: rtl;
}

/* Hero Search Field RTL */
.hero-search-field {
    text-align: right;
}

.hero-search-field label {
    text-align: right;
}

/* Form Group RTL */
.form-label {
    text-align: right;
}

.form-group {
    text-align: right;
}

/* Select Dropdown RTL */
select.form-input,
select,
.filter-select {
    text-align: right;
    direction: rtl;
    background-position: left 16px center !important;
}

/* Input Placeholder RTL */
.form-input::placeholder,
input::placeholder,
textarea::placeholder {
    text-align: right;
}

/* Status Badge RTL */
.member-status {
    direction: rtl;
}

/* Category Count RTL */
.category-count {
    direction: rtl;
}

/* ========================================
   PROFILE PAGE RTL
   ======================================== */

.profile-header-card {
    text-align: center;
}

.profile-completion {
    flex-direction: row;
}

.completion-bar {
    direction: ltr;
}

.form-section {
    text-align: right;
}

.form-section h3 {
    flex-direction: row;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    padding-right: var(--space-12);
    padding-left: var(--space-4);
    text-align: right;
}

.input-wrapper textarea {
    padding-right: var(--space-4);
}

.input-icon {
    right: var(--space-4) !important;
    left: auto !important;
}

/* ========================================
   MEMBER PROFILE RTL
   ======================================== */

.member-meta {
    flex-direction: row;
}

.member-meta .meta-item {
    flex-direction: row;
}

.profile-actions {
    flex-direction: row;
    flex-wrap: wrap;
}

.detail-section {
    text-align: right;
}

.detail-section h3 {
    flex-direction: row;
}

.detail-item {
    flex-direction: row;
}

.detail-label {
    margin-left: var(--space-2);
    margin-right: 0;
}

/* ========================================
   SEARCH / FILTER RTL
   ======================================== */

.mawada-advanced-search {
    text-align: right;
}

.search-section h3 {
    flex-direction: row;
}

.filter-row {
    flex-direction: row;
}

.radio-card span {
    flex-direction: row;
}

.age-inputs {
    flex-direction: row;
}

.age-inputs input {
    text-align: center;
}

/* ========================================
   MESSAGES RTL
   ======================================== */

.messages-layout {
    direction: rtl;
}

.sidebar-header h3 {
    flex-direction: row;
}

.conversation-item {
    flex-direction: row;
}

.conv-avatar {
    margin-left: var(--space-4);
    margin-right: 0;
}

.conv-info {
    direction: rtl;
    text-align: right;
}

.conv-info h4 {
    text-align: right;
}

.last-message {
    text-align: right;
    direction: rtl;
}

.conv-time {
    text-align: right;
}

.chat-header {
    flex-direction: row;
}

.chat-avatar {
    margin-left: var(--space-4);
    margin-right: 0;
}

.chat-user-info {
    text-align: right;
}

.chat-user-info h4 {
    text-align: right;
}

#messageForm textarea {
    direction: rtl;
    text-align: right;
    padding-right: var(--space-5);
}

/* Message Bubbles RTL */
.message-bubble {
    direction: rtl;
}

.message-bubble.sent {
    margin-left: auto;
    margin-right: 0;
}

.message-bubble.received {
    margin-right: auto;
    margin-left: 0;
}

.message-time {
    text-align: left;
}

.message-bubble.received .message-time {
    text-align: right;
}

/* ========================================
   BUTTONS RTL
   ======================================== */

.btn {
    flex-direction: row;
}

.btn i,
.mawada-btn i {
    margin-left: var(--space-2);
    margin-right: 0;
}

.btn-primary i,
.btn-outline i,
.btn-secondary i {
    margin-left: var(--space-2);
    margin-right: 0;
}

/* ========================================
   UTILITIES RTL
   ======================================== */

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

/* Print RTL */
@media print {
    body {
        direction: rtl;
    }
}
