@import url("fonts.css");


h1,
h2,
h3,
h4,
h5,
h6,
a,
p {
	font-family: var(--sf-font-sans) !important; 
	font-style: normal;
}



:root {
	--sf-orange: #fd5a16;
	--sf-black: #000000;
	--sf-radius-pill: 11px;
	--sf-transition: 0.4s ease;
}


body {
	margin: 0;
	padding: 0;
	direction: rtl;
	color: #fff;
	transition: background-color var(--sf-transition), color var(--sf-transition);
}


.sfv-page {
    min-height: 100vh;
    background: #000000;
    color: #ffffff;
    padding: 18px 34px 60px;
    box-sizing: border-box;
    font-family: var(--sf-font-sans);
}

/* الشريط العلوي */

.sfv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
	padding-bottom: 30px;
	padding-top: 10px;
	border-bottom: 1px solid #1B1B1B;
}

.sfv-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.sfv-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.65);
    transform: translateY(-1px);
}

.sfv-logo-text {
    font-size: 40px;
    font-weight: 800;
    color: #fd5a16;
    letter-spacing: 1px;
}


.sfv-logo-img img{
	max-height: 35px;
	width: 100%;
	
}
/* تخطيط العمودين */

.sfv-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.1fr);
    gap: 48px;
    align-items: flex-start;
}

/* شبكة الفيديوهات */

.sfv-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
}

/* كارد الفيديو (يشتغل على أي .video-item داخل sfv-video-grid) */

.sfv-video-grid .video-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* مربع */
    border-radius: 28px;
    overflow: hidden;
    background: #111111;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.sfv-video-grid .video-item > a {
    position: absolute;
    inset: 0;
    display: block;
}

.sfv-video-grid .video-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.35s ease, filter 0.35s ease;
}

/* تدرج من تحت – لو احتجت نص مستقبلاً */

.sfv-video-grid .video-item::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 38%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
    pointer-events: none;
}

/* زر التشغيل */

.sfv-play-icon {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 66px;
    height: 66px;
    background-image: url(https://saadfaris.com/wp-content/uploads/2024/06/player-icon.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 54%;
    z-index: 2;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

/* هوفر على الكارد */

.sfv-video-grid .video-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.9);
}

.sfv-video-grid .video-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.04);
}

.sfv-video-grid .video-item:hover .sfv-play-icon {

}

/* العمود الأيمن */

.sfv-side {
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: sticky;
    top: 70px;
    align-self: flex-start;
    height: fit-content;
}

.sfv-side-block {
    text-align: right;
}

.sfv-title {
    font-size: 40px;
    margin: 0 0 12px;
    color: #fd5a16;
    font-weight: 800;
}

.sfv-lead {
    font-size: 19px;
    margin: 0 0 10px;
    opacity: 0.9;
}

.sfv-text {
    font-size: 19px;
    margin: 0;
    opacity: 0.85;
}

/* التواصل */

.sfv-contact-title {
    font-size: 22px;
    margin: 0 0 18px;
    font-weight: 700;
}

.sfv-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sfv-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sfv-contact-btn img {
    width: 18px;
    height: 18px;
    display: block;
}

.sfv-contact-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

/* ================= Responsive ================= */

@media (max-width: 1024px) {
    .sfv-page {
        padding-inline: 18px;
    }

    .sfv-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.9fr);
        gap: 32px;
    }

    .sfv-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 22px;
    }

    .sfv-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .sfv-page {
        padding: 16px 14px 40px;
    }

    .sfv-header {
        margin-bottom: 26px;
    }

    .sfv-logo-text {
        font-size: 28px;
    }

    .sfv-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sfv-side {
        order: -1; /* النص يطلع فوق الفيديوهات في الجوال */
    }

    .sfv-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .sfv-video-grid .video-item {
        border-radius: 22px;
    }

    .sfv-play-icon {
        width: 60px;
        height: 60px;
        top: 6px;
        left: 6px;
    }

    .sfv-contact-row {
        gap: 8px;
    }

    .sfv-contact-btn {
        font-size: 13px;
        padding: 8px 13px;
    }
}

@media (max-width: 480px) {
    .sfv-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfv-logo-text {
        font-size: 24px;
    }
}
/* ===================== Video Archive Fix ===================== */

.sfv-logo-text,
.sfv-logo-text:visited {
    text-decoration: none;
    color: var(--sf-orange);
}

.sfv-archive-page {
    background: #000000 !important;
    color: #ffffff !important;
}

.sfv-archive-layout {
    margin: 0 auto;
}

.sfv-archive-page .sfv-video-grid {
    align-content: start;
}

.sfv-empty {
    color: #ffffff;
    font-size: 18px;
    opacity: 0.85;
}

.sfv-pagination {
    max-width: 1400px;
    margin: 42px auto 0;
    color: #ffffff;
}

.sfv-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sfv-pagination a,
.sfv-pagination span {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 11px;
    color: #ffffff;
    text-decoration: none;
    padding: 0 12px;
}

.sfv-pagination .current,
.sfv-pagination a:hover {
    background: var(--sf-orange);
    border-color: var(--sf-orange);
    color: #000000;
}

@media (max-width: 768px) {
    .sfv-archive-page .sfv-header {
        align-items: center;
        gap: 12px;
    }

    .sfv-archive-page .sfv-side {
        position: static;
        gap: 20px;
    }
}


/* ===================== SVG Logo in Video Pages ===================== */
.sfv-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(120px, 13vw, 210px);
    min-height: 54px;
    text-decoration: none;
}

.sfv-logo-mark {
    display: block;
    width: 100%;
    height: clamp(36px, 4.2vw, 64px);
    background: var(--sf-orange);
    -webkit-mask-image: var(--sfv-logo-url);
    mask-image: var(--sfv-logo-url);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center right;
    mask-position: center right;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.sfv-logo-link:hover .sfv-logo-mark {
    opacity: .9;
}

@media (max-width: 768px) {
    .sfv-logo-link {
        width: 110px;
        min-height: 42px;
    }

    .sfv-logo-mark {
        height: 38px;
    }
}

/* ===================== Video contact settings + header order ===================== */
.sfv-header .sfv-logo-link,
.sfv-header .sfv-logo-text {
    order: 1;
}

.sfv-header .sfv-back-btn {
    order: 2;
}

.sfv-logo-link,
.sfv-logo-text {
    cursor: pointer;
}

.sfv-contact-block {
    padding: 0;
}

.sfv-contact-title {
    color: #fff;
    line-height: 1.4;
}

.sfv-contact-row {
    align-items: stretch;
}

.sfv-contact-btn {
    min-height: 46px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
}

.sfv-contact-btn img {
    object-fit: contain;
}

.sfv-contact-fallback-icon {
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sf-orange);
    font-weight: 800;
    line-height: 1;
}

.sfv-single-layout {
    max-width: 1400px;
    margin: 0 auto;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    align-items: start;
}

.sfv-player-wrap {
    width: min(720px, 100%);
    margin-inline: auto;
}

.sfv-player-frame {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 28px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}

.sfv-player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.sfv-player-fallback {
    width: 100%;
    border-radius: 28px;
    display: block;
}

.sfv-side-block .sfv-lead,
.sfv-side-block .sfv-text {
    line-height: 1.9;
}

@media (max-width: 768px) {
    .sfv-header {
        flex-direction: row;
    }

    .sfv-header .sfv-logo-link,
    .sfv-header .sfv-logo-text {
        order: 1;
    }

    .sfv-header .sfv-back-btn {
        order: 2;
        font-size: 13px;
        padding: 8px 12px;
    }

    .sfv-single-layout {
        grid-template-columns: 1fr;
    }

    .sfv-contact-block {
        padding: 18px;
        border-radius: 20px;
    }

    .sfv-contact-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfv-contact-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sfv-contact-row {
        grid-template-columns: 1fr;
    }
}

/* ===================== v0.4.4 video typography + spacing overrides ===================== */
.sfv-title {
    font-size: 30px;
    margin: 0 0 12px;
    color: #fd5a16;
    font-weight: 800;
}

.sfv-contact-block {
    padding: 0;
}

.sfv-contact-title {
    font-size: 17px;
    margin: 0 0 18px;
    font-weight: 400;
}

.sfv-contact-btn {
    min-height: 16px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
