/* ========================================================
   Corsat Platform Custom Styles
   Font: Cairo (Modern, crisp Arabic typography)
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #059669; /* Emerald 600 */
    --primary-hover: #047857;
    --primary-light: #ecfdf5;
    --bg-page: #f8fafc; /* Slate 50 */
    --card-border: #e2e8f0;
}

body {
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: #1e293b;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Clear, beautiful text selection */
::selection {
    background-color: #a7f3d0;
    color: #064e3b;
}
::-moz-selection {
    background-color: #a7f3d0;
    color: #064e3b;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Transitions */
.transition-standard {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Video Player Protection & Watermark */
.video-container {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    background: #020617;
}

.video-watermark {
    display: none;
    position: absolute;
    top: 15px;
    left: 15px;
    pointer-events: none;
    opacity: 0.7;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: monospace, system-ui, sans-serif;
    color: rgba(239, 68, 68, 0.75);
    background: transparent !important;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 30;
    text-shadow: 0 0 3px #000, 0 0 6px rgba(0, 0, 0, 0.85);
    letter-spacing: 0.5px;
    direction: ltr;
    transform: translateZ(9999px);
}

/* Fullscreen Styles for Video Container */
.video-container:fullscreen,
.video-container:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    background: #020617 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.video-container:fullscreen iframe,
.video-container:-webkit-full-screen iframe {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
}

.video-container:fullscreen .video-watermark,
.video-container:-webkit-full-screen .video-watermark {
    z-index: 2147483647 !important;
    position: fixed !important;
    top: 25px !important;
    left: 25px !important;
    font-size: 0.95rem !important;
    color: rgba(255, 59, 59, 0.85) !important;
    opacity: 0.8 !important;
    text-shadow: 0 0 5px #000, 0 0 8px #000 !important;
    display: block !important;
    visibility: visible !important;
}

/* Accordion Smooth Expand */
.accordion-content {
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
}

/* Modal Backdrop */
.modal-backdrop-custom {
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

/* Toast Message */
#copyToast {
    transition: opacity 0.25s ease, transform 0.25s ease;
}
