/* RTL (Right-to-Left) CSS for Arabic Version */
/* Golden Aura Casino - Syrian Arabic Version */

/* Base RTL Direction */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* Font Family for Arabic */
body {
    font-family: 'Noto Sans Arabic', 'Inter', system-ui, -apple-system, sans-serif;
}

/* Keep brand name in English font */
.brand-title,
.brand-text {
    font-family: 'Inter', 'Space Grotesk', system-ui, sans-serif;
}

/* Flip icons that should be mirrored in RTL */
html[dir="rtl"] .chip-arrow,
html[dir="rtl"] [data-lucide="chevron-right"],
html[dir="rtl"] [data-lucide="arrow-right"],
html[dir="rtl"] [data-lucide="arrow-left"] {
    transform: scaleX(-1);
}

/* Header adjustments */
html[dir="rtl"] .header-bar {
    flex-direction: row-reverse;
}

html[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .brand {
    flex-direction: row-reverse;
}

html[dir="rtl"] .brand-text {
    text-align: right;
}

/* Balance chip */
html[dir="rtl"] .balance-chip {
    flex-direction: row-reverse;
}

html[dir="rtl"] .balance-info {
    text-align: right;
}

/* Member button */
html[dir="rtl"] .member-button {
    flex-direction: row-reverse;
}

/* Modal adjustments */
html[dir="rtl"] .close-modal {
    left: 16px;
    right: auto;
}

html[dir="rtl"] .modal-heading {
    text-align: right;
}

/* Form elements */
html[dir="rtl"] .form-group label {
    text-align: right;
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group select,
html[dir="rtl"] .form-group textarea {
    text-align: right;
}

html[dir="rtl"] input::placeholder {
    text-align: right;
}

/* Icons in labels */
html[dir="rtl"] .label-icon {
    margin-left: 8px;
    margin-right: 0;
}

html[dir="rtl"] .btn-icon-left {
    margin-left: 8px;
    margin-right: 0;
}

html[dir="rtl"] .btn-icon-sm {
    margin-left: 6px;
    margin-right: 0;
}

/* Member tabs */
html[dir="rtl"] .member-tabs {
    flex-direction: row-reverse;
}

html[dir="rtl"] .member-tab {
    flex-direction: row-reverse;
}

html[dir="rtl"] .tab-icon {
    margin-left: 8px;
    margin-right: 0;
}

/* Profile rows */
html[dir="rtl"] .profile-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .profile-row-content {
    flex-direction: row-reverse;
}

html[dir="rtl"] .profile-icon {
    margin-left: 12px;
    margin-right: 0;
}

/* Payment methods */
html[dir="rtl"] .payment-method-card {
    flex-direction: row-reverse;
}

html[dir="rtl"] .method-info {
    text-align: right;
}

html[dir="rtl"] .method-check {
    margin-right: auto;
    margin-left: 0;
}

/* Amount presets */
html[dir="rtl"] .amount-presets {
    flex-direction: row-reverse;
}

/* Form row */
html[dir="rtl"] .form-row {
    flex-direction: row-reverse;
}

/* Switcher text */
html[dir="rtl"] .switcher {
    text-align: center;
}

/* Auth divider */
html[dir="rtl"] .auth-divider span {
    direction: ltr;
}

/* Social buttons */
html[dir="rtl"] .social-btn {
    flex-direction: row-reverse;
}

html[dir="rtl"] .social-icon {
    margin-left: 10px;
    margin-right: 0;
}

/* Member header */
html[dir="rtl"] .member-header {
    text-align: right;
}

html[dir="rtl"] .member-header-info {
    text-align: right;
}

html[dir="rtl"] .member-actions {
    text-align: right;
}

html[dir="rtl"] .ghost-link {
    flex-direction: row-reverse;
}

html[dir="rtl"] .link-icon {
    margin-left: 6px;
    margin-right: 0;
}

/* Balance card */
html[dir="rtl"] .member-balance-card {
    text-align: right;
}

html[dir="rtl"] .balance-card-header {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .balance-card-icon {
    margin-left: 8px;
    margin-right: 0;
}

/* Topup/Withdraw headers */
html[dir="rtl"] .topup-header {
    text-align: right;
}

html[dir="rtl"] .section-icon {
    margin-left: 8px;
    margin-right: 0;
}

/* Estimate and summary rows */
html[dir="rtl"] .estimate-row,
html[dir="rtl"] .summary-row {
    flex-direction: row-reverse;
}

/* Payment note */
html[dir="rtl"] .payment-note {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .note-icon {
    margin-left: 6px;
    margin-right: 0;
}

/* Withdraw history */
html[dir="rtl"] .withdraw-history h4 {
    text-align: right;
}

html[dir="rtl"] .section-icon-sm {
    margin-left: 6px;
    margin-right: 0;
}

/* Input hint */
html[dir="rtl"] .input-hint {
    text-align: right;
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(248, 248, 248, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #5DD62C;
}

/* Static Pages */
.static-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.static-page .page-header {
    margin-bottom: 32px;
}

.static-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(248, 248, 248, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.static-page .back-link:hover {
    color: #5DD62C;
}

.static-page .back-link svg {
    width: 16px;
    height: 16px;
}

.static-page .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #F8F8F8;
    margin: 0;
}

.static-page .page-content {
    color: rgba(248, 248, 248, 0.85);
    line-height: 1.7;
}

.static-page .page-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #F8F8F8;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.static-page .page-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #F8F8F8;
    margin: 24px 0 12px;
}

.static-page .page-content p {
    margin-bottom: 16px;
}

.static-page .page-content ul {
    margin: 16px 0;
    padding-right: 24px;
}

.static-page .page-content li {
    margin-bottom: 8px;
}

.static-page .page-content a {
    color: #5DD62C;
    text-decoration: none;
}

.static-page .page-content a:hover {
    text-decoration: underline;
}

.static-page .last-updated {
    color: rgba(248, 248, 248, 0.5);
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.static-page .lead {
    font-size: 1.1rem;
    color: rgba(248, 248, 248, 0.9);
}

/* About Page */
.about-hero {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 32px;
    background: linear-gradient(135deg, rgba(93, 214, 44, 0.1), transparent);
    border-radius: 12px;
}

.about-hero h2 {
    border: none !important;
    margin-top: 0 !important;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
}

.feature-item h3 {
    margin-top: 0 !important;
    font-size: 1rem !important;
}

.feature-item p {
    margin-bottom: 0 !important;
    font-size: 0.9rem;
    color: rgba(248, 248, 248, 0.7);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin: 32px 0;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-item {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.contact-item h3 {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

.contact-item p {
    margin-bottom: 4px !important;
}

.contact-item .muted {
    color: rgba(248, 248, 248, 0.5);
    font-size: 0.85rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(248, 248, 248, 0.9);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #F8F8F8;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #5DD62C;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.faq-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.faq-item h3 {
    margin-top: 0 !important;
    color: #5DD62C;
}

/* Balance info row */
html[dir="rtl"] .balance-info-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .info-icon {
    margin-left: 6px;
    margin-right: 0;
}

/* Win ticker */
html[dir="rtl"] .win-ticker-navbar {
    direction: rtl;
}

html[dir="rtl"] .ticker-message-item {
    flex-direction: row-reverse;
}

/* Game cards */
html[dir="rtl"] .game-card-info {
    text-align: right;
}

/* Footer */
html[dir="rtl"] .main-footer {
    text-align: center;
}

/* Status chip */
html[dir="rtl"] .status-chip {
    flex-direction: row-reverse;
}

html[dir="rtl"] .chip-icon {
    margin-left: 6px;
    margin-right: 0;
}

/* Eyebrow with icon */
html[dir="rtl"] .eyebrow {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .eyebrow-icon {
    margin-left: 6px;
    margin-right: 0;
}

/* Error state */
html[dir="rtl"] .error-state {
    text-align: center;
}

/* Loading state */
html[dir="rtl"] .loading {
    flex-direction: row-reverse;
    justify-content: center;
}

/* Promo modal */
html[dir="rtl"] .promo-offer-container {
    text-align: center;
}

/* Transactions */
html[dir="rtl"] .transaction-item {
    flex-direction: row-reverse;
}

/* Withdrawals list */
html[dir="rtl"] .withdrawal-item {
    flex-direction: row-reverse;
}

/* QR section */
html[dir="rtl"] .qr-section {
    text-align: center;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    html[dir="rtl"] .header-bar {
        flex-wrap: wrap;
    }
    
    html[dir="rtl"] .form-row {
        flex-direction: column;
    }
    
    html[dir="rtl"] .member-tabs {
        flex-wrap: wrap;
    }
    
    html[dir="rtl"] .amount-presets {
        flex-wrap: wrap;
    }
}
