/* ═══════════════════════════════════════════════════════════════
   Visual Banners CSS
   الصور تظهر كاملة مثل البانر الرئيسي (banner-image)
   ═══════════════════════════════════════════════════════════════ */

/* ===== المتغيرات ===== */
:root {
    --vb-primary: #1f2937;
    --vb-secondary: #6b7280;
    --vb-accent: #fbbf24;
    --vb-danger: #ef4444;
    --vb-radius: 15px;
}

/* ═══════════════════════════════════════════════════════════════
   1. قسم الفيديو الترويجي
   ═══════════════════════════════════════════════════════════════ */
.promo-video-section {
    padding: 25px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
}

.promo-video-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: #fff;
    border-radius: var(--vb-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 1400px;
    margin: 0 auto;
}

.promo-video-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--vb-danger);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    width: fit-content;
}

.promo-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--vb-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.promo-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--vb-primary);
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    width: fit-content;
    transition: all 0.3s ease;
}

.promo-btn:hover {
    background: var(--vb-secondary);
    color: #fff;
}

.promo-video-player {
    position: relative;
}

.promo-video-player video {
    width: 100%;
    height: auto;
    display: block;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent 30%);
    pointer-events: none;
}

.video-sound-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: var(--vb-primary);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   2. بانر الصورتين - الصور تظهر كاملة بدون فراغات
   ═══════════════════════════════════════════════════════════════ */
.dual-banner-section {
    padding: 20px 0;
    width: 100%;
}

.dual-banner-section .container,
.dual-banner-grid {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.dual-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.dual-banner-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* الصورة تظهر كاملة بدون قص */
.dual-banner-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.dual-banner-item:hover img {
    transform: scale(1.03);
}

.dual-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
}

.dual-banner-badge {
    display: inline-block;
    background: var(--vb-danger);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

.dual-banner-badge.new {
    background: #222222;
}

.dual-banner-overlay h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 4px 0;
}

.dual-banner-overlay p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   3. البانر الثلاثي - الصور تظهر كاملة بدون فراغات
   ═══════════════════════════════════════════════════════════════ */
.triple-banner-section {
    padding: 20px 0;
    width: 100%;
}

.triple-banner-section .container {
    max-width: 100%;
    padding: 0;
}

.triple-banner-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
    align-items: stretch;
}

.triple-banner-large {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* الصورة الكبيرة تظهر كاملة */
.triple-banner-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.triple-banner-large:hover img {
    transform: scale(1.02);
}

.triple-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.triple-badge {
    display: inline-block;
    background: #f97316;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.triple-banner-content h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 12px 0;
}

.triple-btn {
    display: inline-block;
    background: #fff;
    color: var(--vb-primary);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.triple-banner-small-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.triple-banner-small {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* الصور الصغيرة تظهر كاملة */
.triple-banner-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.triple-banner-small:hover img {
    transform: scale(1.03);
}

.triple-banner-content.small {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.triple-banner-content.small h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 3px 0;
}

.triple-banner-content.small span {
    font-size: 12px;
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════════
   4. بانر الفيديو الصغير
   ═══════════════════════════════════════════════════════════════ */
.mini-video-banner {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.mini-video-wrapper {
    position: relative;
    border-radius: var(--vb-radius);
    overflow: hidden;
    height: 100px;
}

.mini-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-video-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    background: linear-gradient(90deg, rgba(44,85,48,0.9), rgba(44,85,48,0.5), transparent);
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--vb-accent);
    color: var(--vb-primary);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mini-video-text h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    margin: 0;
}

.mini-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--vb-primary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   4.5 بانر الصورة الصغير (بديل الفيديو)
   ═══════════════════════════════════════════════════════════════ */
.mini-banner-section {
    padding: 20px 0;
    width: 100%;
}

.mini-banner-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.mini-banner-wrapper img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.mini-banner-wrapper:hover img {
    transform: scale(1.02);
}

.mini-banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    background: linear-gradient(90deg, rgba(44,85,48,0.9), rgba(44,85,48,0.5), transparent);
}

.mini-banner-text h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.mini-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--vb-primary);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   5. بانر الفيديو كامل العرض
   ═══════════════════════════════════════════════════════════════ */
.fullwidth-video-section {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin: 20px 0;
}

.fullwidth-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fullwidth-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30,58,33,0.95) 0%, rgba(30,58,33,0.6) 50%, transparent 100%);
}

.fullwidth-video-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.fullwidth-text {
    max-width: 450px;
    color: #fff;
}

.fullwidth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--vb-accent);
    color: var(--vb-primary);
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
}

.fullwidth-text h2 {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.fullwidth-text p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0 0 15px 0;
}

.fullwidth-features {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.fullwidth-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
}

.fullwidth-feature i {
    font-size: 14px;
    color: var(--vb-accent);
}

.fullwidth-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--vb-primary);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   6. شريط الصور المتحركة - بدون فراغات
   ═══════════════════════════════════════════════════════════════ */
.image-strip-section {
    padding: 20px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    width: 100%;
    direction: ltr; /* مهم للحركة الصحيحة */
}

.image-strip-wrapper {
    overflow: hidden;
    width: 100%;
}

.image-strip-track {
    display: flex;
    animation: scrollStrip 40s linear infinite;
    width: max-content;
}

@keyframes scrollStrip {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.image-strip-item {
    flex-shrink: 0;
    padding: 0 5px;
}

/* الصور تظهر كاملة */
.image-strip-item img {
    height: 180px;
    width: auto;
    display: block;
    border-radius: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   7. البانر الكبير المميز - بدون فراغات
   ═══════════════════════════════════════════════════════════════ */
.featured-image-banner {
    padding: 20px 0;
    width: 100%;
}

.featured-banner-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* الصورة تظهر كاملة */
.featured-banner-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.featured-banner-wrapper:hover img {
    transform: scale(1.02);
}

.featured-banner-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30,58,33,0.9) 0%, rgba(30,58,33,0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    color: #fff;
}

.featured-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--vb-accent);
    color: var(--vb-primary);
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    width: fit-content;
}

.featured-banner-content h2 {
    font-size: 26px;
    font-weight: 900;
    margin: 0 0 8px 0;
    max-width: 400px;
}

.featured-banner-content p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0 0 18px 0;
    max-width: 380px;
}

.featured-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--vb-primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    width: fit-content;
}


/* ═══════════════════════════════════════════════════════════════
   8. التصميم المتجاوب - مثل البانر الرئيسي
   ═══════════════════════════════════════════════════════════════ */

/* الشاشات المتوسطة - تصميم محسن للفيديو */
@media (max-width: 992px) {
    .promo-video-wrapper {
        grid-template-columns: 1fr;
        position: relative;
    }
    
    /* الفيديو يظهر أولاً ويكون الخلفية */
    .promo-video-player {
        order: -1;
        position: relative;
        min-height: 280px;
    }
    
    .promo-video-player video {
        width: 100%;
        height: 100%;
        min-height: 280px;
        object-fit: cover;
    }
    
    /* المحتوى يظهر فوق الفيديو - من اليمين */
    .promo-video-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 25px;
        text-align: right;
        align-items: flex-start;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
        z-index: 3;
    }
    
    .promo-badge {
        background: rgba(239, 68, 68, 0.95);
    }
    
    .promo-title {
        font-size: 22px;
        color: #fff;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .promo-subtitle {
        color: rgba(255,255,255,0.9);
    }
    
    .promo-btn {
        background: #fff;
        color: var(--vb-primary);
    }
    
    .promo-btn:hover {
        background: #f5f5f5;
        color: var(--vb-primary);
    }
    
    .dual-banner-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .triple-banner-grid {
        grid-template-columns: 1fr;
    }
    
    .triple-banner-small-wrapper {
        flex-direction: row;
        height: 200px;
        gap: 8px;
    }
    
    .fullwidth-text h2 {
        font-size: 24px;
    }
}

/* تحسينات خاصة للتابلت (768px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .promo-video-section {
        padding: 20px;
    }
    
    .promo-video-wrapper {
        border-radius: 16px;
        overflow: hidden;
    }
    
    .promo-video-player {
        min-height: 350px;
    }
    
    .promo-video-player video {
        min-height: 350px;
    }
    
    .promo-video-content {
        padding: 30px 40px;
        text-align: right;
        align-items: flex-start;
    }
    
    .promo-title {
        font-size: 26px;
    }
    
    .promo-subtitle {
        font-size: 15px;
        margin-bottom: 18px;
    }
    
    .promo-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .video-sound-btn {
        bottom: 15px;
        left: 15px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* الشاشات الصغيرة */
@media (max-width: 768px) {
    .promo-video-section,
    .dual-banner-section,
    .triple-banner-section,
    .mini-video-banner,
    .featured-image-banner {
        padding: 15px;
    }
    
    /* البانر المزدوج - يبقى صورتين جنب بعض في الموبايل */
    .dual-banner-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .dual-banner-item {
        border-radius: 8px;
    }
    
    /* الفيديو في الشاشات الصغيرة */
    .promo-video-player {
        min-height: 240px;
    }
    
    .promo-video-player video {
        min-height: 240px;
    }
    
    .promo-video-content {
        padding: 20px;
    }
    
    .promo-title {
        font-size: 20px;
    }
    
    .promo-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .dual-banner-overlay {
        padding: 15px;
    }
    
    .dual-banner-overlay h3 {
        font-size: 16px;
    }
    
    .triple-banner-content {
        padding: 20px;
    }
    
    .triple-banner-content h3 {
        font-size: 18px;
    }
    
    .triple-banner-small-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .triple-banner-small {
        height: 180px;
    }
    
    .mini-video-wrapper {
        height: 85px;
    }
    
    .mini-video-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 5px;
        padding: 0 15px;
    }
    
    .mini-video-text h3 {
        font-size: 14px;
    }
    
    .mini-video-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    

    
    .fullwidth-video-section {
        height: 250px;
    }
    
    .fullwidth-video-overlay {
        background: linear-gradient(180deg, rgba(30,58,33,0.85) 0%, rgba(30,58,33,0.7) 100%);
    }
    
    .fullwidth-video-content {
        padding: 0 15px;
    }
    
    .fullwidth-text {
        text-align: center;
        max-width: 100%;
    }
    
    .fullwidth-text h2 {
        font-size: 20px;
    }
    
    .fullwidth-text p {
        font-size: 13px;
    }
    
    .fullwidth-features {
        justify-content: center;
    }
    
    .fullwidth-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .image-strip-item img {
        height: 150px;
    }
    
    .featured-banner-content {
        padding: 20px;
        background: linear-gradient(180deg, transparent 0%, rgba(30,58,33,0.95) 100%);
        justify-content: flex-end;
    }
    
    .featured-banner-content h2 {
        font-size: 20px;
    }
    
    .featured-banner-content p {
        font-size: 13px;
    }
}

/* الشاشات الصغيرة جداً - موبايل */
@media (max-width: 480px) {
    .promo-video-section,
    .dual-banner-section,
    .triple-banner-section,
    .mini-video-banner,
    .featured-image-banner {
        padding: 12px;
    }
    
    /* البانر المزدوج - يبقى صورتين جنب بعض حتى في الموبايل الصغير */
    .dual-banner-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .promo-video-wrapper,
    .dual-banner-item,
    .triple-banner-large,
    .triple-banner-small,
    .mini-video-wrapper,
    .featured-banner-wrapper {
        border-radius: 10px;
    }
    
    .promo-video-content {
        padding: 15px;
    }
    
    .promo-title {
        font-size: 18px;
    }
    
    .dual-banner-overlay {
        padding: 12px;
    }
    
    .dual-banner-overlay h3 {
        font-size: 14px;
    }
    
    .triple-banner-content {
        padding: 15px;
    }
    
    .triple-banner-content h3 {
        font-size: 16px;
    }
    
    .triple-btn {
        padding: 6px 14px;
        font-size: 11px;
    }
    
    .triple-banner-small {
        height: 140px;
    }
    
    .triple-banner-content.small {
        padding: 10px;
    }
    
    .triple-banner-content.small h4 {
        font-size: 13px;
    }
    
    .mini-video-wrapper {
        height: 75px;
    }
    
    .mini-video-text h3 {
        font-size: 12px;
    }
    

    
    .fullwidth-video-section {
        height: 220px;
        margin: 15px 0;
    }
    
    .fullwidth-text h2 {
        font-size: 17px;
    }
    
    .fullwidth-text p {
        font-size: 12px;
    }
    
    .image-strip-section {
        padding: 15px 0;
    }
    
    .image-strip-item img {
        height: 120px;
    }
    
    .featured-banner-content {
        padding: 15px;
    }
    
    .featured-banner-content h2 {
        font-size: 17px;
    }
    
    .featured-banner-content p {
        font-size: 12px;
    }
    
    .featured-banner-btn {
        padding: 8px 14px;
        font-size: 11px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   9. تحسينات إضافية
   ═══════════════════════════════════════════════════════════════ */

/* إيقاف الحركة لمن يفضل ذلك */
@media (prefers-reduced-motion: reduce) {
    .image-strip-track {
        animation: none;
    }
}

/* تأكد من إمكانية الضغط */
.dual-banner-item,
.triple-banner-large,
.triple-banner-small,
.featured-banner-wrapper {
    -webkit-tap-highlight-color: transparent;
}
