﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
/*لاستخدام خط جديد ، محمل داخل المشروع*/
@font-face {
    font-family: 'Uthmani';
    src: url('/fonts/UthmanicHafs1Ver09.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* يظهر نص بديل حتى يتم تحميل الخط */
}

html, body {
    font-family: 'Amiri', 'Scheherazade', 'Cairo', 'Segoe UI', sans-serif;
    font-size: 18px;
    margin: 0;
    padding: 0;
    /*overflow-x: hidden !important;*/ /* لا يسمح بالتمرير الجانبي */
    height: 100%;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
    /*background-image: url('../images/light-gray.png');*/
    /*background-image: url('../images/');*/
    /*background-image: url('../images/ ');*/
    /*background-image: url('../images/45-degree-fabric-light.png');
    background-repeat: no-repeat;*/ /* لمنع التكرار */
    /*background-size: cover;*/ /* لتغطية الخلفية كامل الصفحة */
    /*background-attachment: fixed;*/ /* ثبات الخلفية عند التمرير */
    /*background-color: #bbb3e6;*/ /* لون خلفية بديل */
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnL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NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.topbar {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

.lang-icon {
    width: 32px;
    height: 32px;
    margin-left: 8px;
    cursor: pointer;
}

.title {
    text-align: center;
    font-size: 24px;
    margin: 20px 0;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-direction: row;
}

.hadith-line {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.line-number {
    width: 30px;
    font-weight: bold;
}

.text-pair {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.arabic-text {
    text-align: right;
    direction: rtl;
    font-weight: bold;
}

.german-text {
    text-align: left;
    direction: ltr;
}

.play-buttons {
    display: flex;
    gap: 5px;
}

.small-placeholder::placeholder {
    font-size: 18px !important;
    color: #999;
}

body {
    /*margin: 0;*/
    /*padding: 0;*/
    /*overflow-y: auto;*/ /* يُبقي التمرير فقط إن كان هناك محتوى حقيقي */
    /*padding-bottom: 60px;*/ /* يتناسب مع ارتفاع الفوتر */
    min-height: 100dvh;
}
/*Hide itmes to print*/
@media print {
    .no-print {
        display: none !important;
    }
    /*هذا التنسيق حتى يبقى العنصر مكانه ، ويخفيه فقط ، يمنع إنزياح المحتوى*/
    .no-print-just-hidden {
        visibility: hidden !important;
    }
    table{
        line-height:1;
        font-size: 0.7rem;
    }
    .prayer-page-title {
        font-size: 1.2rem;
        text-align: center;
    }
    @page {
        margin: 2cm 1cm 2cm 1cm;
        size: A4;
    }
}

/* Image Aleppo */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: -1;
    display: flex;
}

.watermark, .watermark-1 {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 50vw;
    height: 100dvh;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
    filter: grayscale(40%);
    transition: all 0.5s ease-in-out;
    overflow: hidden; /* تمنع التمدد الداخلي */
    pointer-events: none; /* تمنع التفاعل مع الصورة */
}
/* الصورة اليسرى */
.watermark {
    inset-inline-end: 0px;
    /*left: 0;*/
}
/* الصورة اليمنى */
.watermark-1 {
    inset-inline-start: 0px;
    /*right: 0;*/
}

/* الشاشات الصغيرة: نخفي الصورة اليمنى فقط */
@media (max-width: 950px) {
    .watermark-1 {
        display: none;
    }

    /*  .watermark {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(30%) blur(1px);
        left: 50%;
        transform: translateX(-50%);
        opacity: 0.25;
    }*/
    .watermark {
        position: fixed;
        top: 50%;
        width: 100vw;
        left: 50%;
        /*height: 100vh;*/
        /*object-fit: contain;*/
        filter: grayscale(30%) blur(1px);
        transform: translate(-50%, -50%);
        opacity: 0.25;
        z-index: -1;
        pointer-events: none; /* لحماية التفاعل مع المحتوى */
    }
}


body {
    background-color: #f8f9fa;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    /*background: linear-gradient(to right, #2c7744 0%, #5aaf6f 100%);*/
    /*background: linear-gradient(120deg, #34e89e 0%, #0f3443 100%);*/ /*أخضر جميل*/
    position: relative; /* مهم لوضع العناصر داخله */
}

/*button, .flag-btn {
    border-color: lightgray;
}*/

/* Favoriten+ShowwAll40 */
.container {
    /* display: flex; */
    flex-wrap: wrap;
    gap: 10px;
}

.link-item {
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
}

.all40Class {
    /* transition: all 0.3s ease;*/
    transition: transform 0.2s;
}

    .all40Class:hover {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        /*transform: translate(-2px,-2px);*/
        transform: scale(1.03);
        transition: all 0.2s;
        color: white !important;
        background-color: cornflowerblue !important;
        border-color: cornflowerblue !important;
        /*background-color: #12B886 !important;*/
    }

.intro {
    overflow: hidden; /* يخفي النص الزائد */
    text-overflow: ellipsis; /* يعرض "..." عند تجاوز النص للمساحة */
}
/*Ende Favoriten*/


.active-line {
    /*background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);*/
    font-size: 1.6rem !important;
    /*font-size: var(--fs);*/
    font-weight: bold;
    color: #2c3e50;
    /* التأثير ثلاثي الأبعاد */
    transform: perspective(500px) translateZ(100px) rotateX(10deg);
    /* الظل لإبراز العمق */
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.3), 0 15px 30px rgba(0, 0, 0, 0.2);
    /* حركة طفيفة */
    animation: float 4s ease-in-out infinite;
    /*transition: all 1s ease;*/
    transition: all 1s ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: perspective(500px) translateZ(100px) rotateX(10deg);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.5);
    }

    50% {
        transform: perspective(500px) translateZ(120px) rotateX(5deg);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.7);
    }
}


/* Searching <mark> لتظليل نتائج البحث ، عنصر يحقن في C#*/
mark {
    background-color: #FFFF00;
    color: #000000;
    padding: 0 2px;
}
/* للتكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .media-button-icon {
        font-size: 1.5rem; /* نفس قيمة fs-4 */
    }
}
/* Mobile specific styles */
@media (max-width: 360px) {
    .mobile {
        font-size: 0.8rem !important; /* حجم الخط على الشاشات الصغيرة */
    }

    h5, h6 {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }
}
/*لضبط محاذاة النص بشكل جميل */
.paragraphi {
    text-align: justify;
    text-justify: inter-word;
    /*hyphens: auto;*/
}





/* انميشن فرفشني */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInDown {
    animation: fadeInDown 1s ease forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 1.2s ease forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    display: inline-block;
    animation: bounce 1.5s infinite;
}

/*  يسار*/
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}
/*  يمين*/
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}
/* الدخول من الاسفل مثل نوافذ التطبيقات*/
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out forwards;
}


/*  تكبير تدريجي من نقطة صغيرة*/
@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.zoom-in {
    animation: zoomIn 0.6s ease-out forwards;
    display: inline-block; /* مهم جداً لتفادي مشاكل النصوص */
    transform-origin: center center; /* يحدد نقطة التكبير */
}

/*نبض خفيف ومتكرر لجذب الانتباه*/
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}


/* زر العودة لأعلى عند التمرير */
.back-to-top {
    position: fixed;
    bottom: 35px;
    inset-inline-end: 30px; /*اضفت هذه الخاصية بحيث تضيف العنصر لآخر السطر بشكل ديناميكي ، يمين أو يسار حسب المحاذاة ، يتحكم بذلك التوطين*/
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: gray;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .back-to-top:hover {
        background-color: dimgray;
        /*transform: translateY(-1px);*/
        /*color: white;*/
    }

/* تستخدم في التقويم وصفحة الصلاة*/
.today {
    /*background-color: lightgreen;*/
    background-color: #20c997;
    /*background-color: teal;*/
    color:white;
}

.nextPrayer {
    border-radius: 6px;
    animation: glowing-border 4s infinite alternate;
    background-color: cornflowerblue !important;
    color: white;
    padding: 1px 3px;
    /*animation: gentle-shake 3s ease-in-out infinite;*/
}

/*ظل متوهج جميل*/
@keyframes glowing-border {
    0% {
        /*box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);*/
        /*box-shadow: 0 0 5px rgba(0, 220, 100, 0.5);*/
        box-shadow: 0 0 5px rgba(100, 149, 237, 0.5); /* cornflowerblue فاتح */
    }

    100% {
        /*box-shadow: 0 0 20px rgba(0, 255, 255, 0.9), 0 0 15px rgba(0, 200, 255, 0.6);*/
        /*box-shadow: 0 0 20px rgba(100, 255, 150, 0.9), 0 0 15px rgba(50, 220, 100, 0.6);*/
        box-shadow: 0 0 20px rgba(100, 149, 237, 0.9), 0 0 15px rgba(70, 130, 240, 0.6); /* أزرق داكن قليلًا */
    }
}

/*اهتزاز خفيف يمين يسار*/
/*@keyframes gentle-shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    75% {
        transform: translateX(2px);
    }
}*/





/* لتغيير اتجاه السهم القائمة المنسدلة عند اللغة العربية*/
[dir="rtl"] select.form-select {
    background-position: left 0.75rem center;
}

/* خلفيات واعرة */
.arabic-bg-corner {
    /*background-image: url('/images/arabic_bg_corner.jpg');*/
    /*background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;*/ /* لتثبيت الخلفية عند التمرير */
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    /*bottom: 0;*/
    /*width: 50vw;*/
    height: 100dvh;
    object-fit: cover; /*لتتمدد بحجم الشاشة*/
    z-index: -1;
    /*opacity: 0.3;*/
    /*filter: grayscale(40%);*/
    transition: all 0.5s ease-in-out;
    /*overflow: hidden;*/ /* تمنع التمدد الداخلي */
    pointer-events: none; /* تمنع التفاعل مع الصورة */
    transform: scaleX(-1);
}

.arabic-bg-light {
    background: url('/images/arabic_bg_light.jpg'), rgba(255, 255, 255, 0.6);
    background-blend-mode: overlay; /* مزج الألوان */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* لتثبيت الخلفية عند التمرير */
}