/* CSS for Tutor Secure Embed Viewer */

.tutor-secure-embed-container {
    position: relative;
    width: 100%;
    background-color: #000; /* تغيير الخلفية للأسود لتناسب وضع ملء الشاشة */
}

/* هذا القسم يجعل الـ iframe يتجاوب مع حجم الشاشة ويحافظ على أبعاده */
.tse-iframe-wrapper {
    position: relative;
    padding-top: 56.25%; /* نسبة 16:9 شائعة للعروض */
    height: 0;
    overflow: hidden;
}

.tse-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* تصميم الطبقة الشفافة والعلامة المائية */
.tse-watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    overflow: hidden;
}

.tse-watermark-text {
    font-size: clamp(16px, 2.5vw, 32px);
    /* --- التعديل هنا: تمت زيادة شفافية النص بتغيير 0.3 إلى 0.15 --- */
    color: rgba(180, 180, 180, 0.3); /* لون رمادي فاتح بشفافية عالية جداً */
    font-weight: 600;
    font-family: sans-serif;
    text-align: center;
    transform: rotate(-30deg) scale(1.2);
    user-select: none;
    white-space: nowrap;
    /* --- التعديل هنا: تمت إزالة ظل النص --- */
    text-shadow: none;
}

.tse-error {
    color: #D8000C;
    background-color: #FFD2D2;
    border: 1px solid;
    padding: 15px;
    font-weight: bold;
    text-align: center;
}

/* تصميم زر ملء الشاشة */
.tse-fullscreen-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 20; /* فوق العلامة المائية ولكن تحت المحتوى المحمي */
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

.tse-fullscreen-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* تنسيقات خاصة بوضع ملء الشاشة */
.tutor-secure-embed-container:fullscreen {
    padding: 0; /* إزالة أي حشو داخلي */
    background-color: #000;
}

.tutor-secure-embed-container:fullscreen .tse-iframe-wrapper {
    padding-top: 0;
    height: 100vh; /* اجعل ارتفاعه يملأ الشاشة */
}

/* زيادة حجم العلامة المائية في وضع ملء الشاشة */
.tutor-secure-embed-container:fullscreen .tse-watermark-text {
    font-size: clamp(24px, 4vw, 50px);
}