/**
 * RTL (从右到左) 样式 - 维吾尔语专用
 * UKIJEkran 字体
 */

/* RTL 基础设置 */
html[dir="rtl"] body {
    direction: rtl;
    font-family: 'UKIJEkran', 'UKIJ Tugh', 'Arabic Typesetting', Arial, sans-serif;
}

/* RTL 容器 */
html[dir="rtl"] .container {
    direction: rtl;
    text-align: right;
}

/* RTL Header */
html[dir="rtl"] .header-top .container {
    flex-direction: row-reverse;
}

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

html[dir="rtl"] .user-info-link {
    flex-direction: row-reverse;
}

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

/* RTL 导航 */
html[dir="rtl"] .nav ul {
    flex-direction: row-reverse;
    padding-right: 0;
    padding-left: 20px;
}

html[dir="rtl"] .nav ul li {
    margin-right: 0;
    margin-left: 5px;
}

/* RTL 统计卡片 */
html[dir="rtl"] .stats-section {
    flex-direction: row-reverse;
}

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

html[dir="rtl"] .stat-icon {
    margin-left: 15px;
    margin-right: 0;
}

/* RTL 素材网格 */
html[dir="rtl"] .material-grid {
    direction: rtl;
}

html[dir="rtl"] .material-info {
    text-align: right;
}

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

html[dir="rtl"] .material-meta span {
    margin-left: 10px;
    margin-right: 0;
}

/* RTL Banner */
html[dir="rtl"] .banner-arrows {
    flex-direction: row-reverse;
}

html[dir="rtl"] .banner-arrow {
    transform: rotate(180deg);
}

/* RTL 分页 */
html[dir="rtl"] .pagination {
    flex-direction: row-reverse;
}

html[dir="rtl"] .pagination a,
html[dir="rtl"] .pagination span {
    margin-left: 5px;
    margin-right: 0;
}

/* RTL Footer */
html[dir="rtl"] .footer-content {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-column {
    text-align: right;
}

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

/* RTL 表单 */
html[dir="rtl"] .form-box,
html[dir="rtl"] .form-group {
    text-align: right;
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group select,
html[dir="rtl"] .form-group textarea {
    text-align: right;
}

/* RTL 按钮 */
html[dir="rtl"] .btn-group {
    flex-direction: row-reverse;
}

/* RTL 用户资料 */
html[dir="rtl"] .profile-header {
    flex-direction: row-reverse;
}

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

html[dir="rtl"] .profile-materials-grid {
    direction: rtl;
}

/* RTL 安装向导 */
html[dir="rtl"] .steps {
    flex-direction: row-reverse;
}

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

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

/* RTL 语言切换 */
html[dir="rtl"] .lang-switch {
    flex-direction: row-reverse;
}

/* RTL 空状态 */
html[dir="rtl"] .empty-state {
    text-align: center;
}

/* RTL 卡片标签 */
html[dir="rtl"] .thumb-overlay .tag {
    left: auto;
    right: 8px;
}

html[dir="rtl"] .tag {
    right: 8px;
    left: auto;
}

/* RTL 评分星星 */
html[dir="rtl"] .stars {
    direction: ltr;
}

/* RTL 滚动条 */
html[dir="rtl"] ::-webkit-scrollbar {
    width: 10px;
}

/* RTL 输入框图标 */
html[dir="rtl"] .input-icon {
    left: auto;
    right: 12px;
}

html[dir="rtl"] .form-group .input-icon + input {
    padding-left: 12px;
    padding-right: 40px;
}

/* RTL Modal */
html[dir="rtl"] .modal-content {
    text-align: right;
}

/* RTL 警告框 */
html[dir="rtl"] .alert {
    text-align: right;
    padding-right: 20px;
    padding-left: 15px;
}

/* RTL 工具提示 */
html[dir="rtl"] [data-tooltip]:before {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 10px;
}

/* RTL Logo */
html[dir="rtl"] .logo {
    direction: rtl;
}

html[dir="rtl"] .logo span {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

/* RTL 用户信息 */
html[dir="rtl"] .user-avatar-small {
    margin-left: 10px;
    margin-right: 0;
}

html[dir="rtl"] .logout-btn {
    margin-right: 10px;
    margin-left: 0;
}

/* RTL 分类图标 */
html[dir="rtl"] .category-icon {
    margin-left: 8px;
    margin-right: 0;
}

/* RTL 筛选器 */
html[dir="rtl"] .filter-section {
    flex-direction: row-reverse;
}

/* RTL 面包屑导航 */
html[dir="rtl"] .breadcrumb {
    flex-direction: row-reverse;
    padding-right: 0;
    padding-left: 20px;
}

/* RTL 详情页 */
html[dir="rtl"] .detail-info {
    text-align: right;
}

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

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