/* feed-carousel.css v3.1 — Luxury Edition (مع الحفاظ على البنية الأصلية) */

.seif-carousel-wrap {
    direction: rtl;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.seif-cr-outer {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.seif-cr-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #C5A059;
    background: #fff;
    color: #C5A059;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    line-height: 1;
}
.seif-cr-arrow:hover:not(:disabled) {
    background: #D4AF37;
    color: #000;
    border-color: #D4AF37;
}
.seif-cr-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.seif-cr-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.seif-cr-track {
    display: flex;
    gap: 10px;
    will-change: transform;
}

.seif-cr-card {
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.seif-cr-inner {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 12px;
    background: #f0ece4;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* لمسة فخامة خفيفة */
}

.seif-cr-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.seif-cr-card:hover .seif-cr-inner img {
    transform: scale(1.06);
}

/* -- إضافات الـ Hover والنافذة المنبثقة -- */

.seif-type-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.seif-cr-ov {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4); /* تغميق خفيف يبرز الأزرار */
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}
.seif-cr-card:hover .seif-cr-ov { opacity: 1; }

.seif-view-btn {
    background: #C5A059;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
}
.seif-view-btn:hover {
    background: #D4AF37;
    transform: scale(1.05);
}

.seif-ig-direct {
    background: rgba(255,255,255,0.25);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    text-decoration: none;
    transition: all 0.2s;
}
.seif-ig-direct:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
}

/* -- زر الاستوديو الأصلي -- */
.seif-cr-studio-link {
    text-align: center;
    margin-top: 20px;
}
.seif-cr-studio-link a {
    display: inline-block;
    padding: 10px 30px;
    border: 1.5px solid #D4AF37;
    border-radius: 25px;
    color: #C5A059;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    transition: all 0.2s;
}
.seif-cr-studio-link a:hover {
    background: #D4AF37;
    color: #000;
}

/* -- تنسيق النافذة المنبثقة (Lightbox) -- */
.seif-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    direction: rtl;
}
.seif-modal.is-active {
    display: flex;
}
.seif-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}
.seif-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #181818;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(197, 160, 89, 0.2);
    animation: seifModalIn 0.3s ease;
}
@keyframes seifModalIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}
.seif-modal-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}
.seif-modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 400px;
}
.seif-modal-media {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255,255,255,0.05);
}
.seif-modal-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}
.seif-modal-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}
.seif-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #C5A059;
    color: #111;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.seif-modal-caption {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
    max-height: 150px;
    overflow-y: auto;
}
.seif-btn-gold {
    display: inline-block;
    text-align: center;
    background: #C5A059;
    color: #111;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}
@media (max-width: 768px) {
    .seif-modal-body {
        grid-template-columns: 1fr;
    }
    .seif-modal-media {
        height: 300px;
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
}