﻿/* Dira Landing - Minimal Styles (MudBlazor-first approach) */

/* Google Fonts - Sora */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100;200;300;400;500;600;700;800&display=swap');

/* Root Variables for consistent theming */
:root {
    --dira-primary: #F07015;
    --dira-primary-light: #FF8E63;
    --dira-primary-gradient: linear-gradient(84deg, #F07015 9.05%, #FF8E63 90.95%);
    --dira-text-dark: #171717;
    --dira-text-gray: #545557;
    --dira-bg-light: #FFFFFF;
    --dira-bg-gray: #F8F8F8;
    --dira-border: #C8C8CA;
}

/* Apply Sora font globally */
html, body {
    font-family: 'Sora', sans-serif !important;
}

.mud-typography {
    font-family: 'Sora', sans-serif !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar but keep functionality */
body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dira-bg-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--dira-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dira-primary-light);
}

/* Blazor error UI styling */
#blazor-error-ui {
    background: #ffcccc;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .mud-button-root .mud-icon-root.me-2,
html[dir="rtl"] .mud-button-root .mud-icon-root.me-1 {
    margin-right: 0 !important;
    margin-left: 8px !important;
}

html[dir="rtl"] .mud-button-root .mud-icon-root.ms-2,
html[dir="rtl"] .mud-button-root .mud-icon-root.ms-1 {
    margin-left: 0 !important;
    margin-right: 8px !important;
}

html[dir="rtl"] .ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

html[dir="rtl"] .ms-4 {
    margin-left: 0 !important;
    margin-right: 1.5rem !important;
}

html[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

html[dir="rtl"] .mud-expansion-panel .mud-expand-panel-content {
    padding-left: 0;
    padding-right: 28px;
}

/* RTL text alignment adjustments */
html[dir="rtl"] .text-start {
    text-align: right !important;
}

html[dir="rtl"] .text-end {
    text-align: left !important;
}

/* RTL flex adjustments */
html[dir="rtl"] .flex-row-reverse {
    flex-direction: row !important;
}

/* Arabic font optimization */
html[lang="ar"] {
    font-family: 'Sora', 'Segoe UI', 'Arial', sans-serif !important;
}

html[lang="ar"] .mud-typography {
    line-height: 1.8 !important;
}

/* RTL Image Flip - Mirror images that face a specific direction */
html[dir="rtl"] .rtl-flip {
    transform: scaleX(-1);
}

/* Hero image in RTL - flip horizontally and move border radius to bottom-right (which appears on left edge in RTL) */
html[dir="rtl"] .hero-image {
    transform: scaleX(-1);
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 80px !important;
}

/* Footer big logo in RTL - flip horizontally */
html[dir="rtl"] .footer-big-logo {
    transform: scaleX(-1);
}

