/* ============================================================
   سيكشن "أبرز تجارب عملائنا" - فيديوهات ريلز 9:16
   المسار: assets/css/gt-reels-showcase.css
   ============================================================ */

.gt-reels-section {
    background: #0d0d0d;
    padding: 70px 20px;
    direction: rtl;
}

.gt-reels-container {
    max-width: 1320px;
    margin: 0 auto;
}

/* ===== الهيدر ===== */
.gt-reels-header {
    text-align: center;
    margin-bottom: 40px;
}

.gt-reels-badge {
    display: inline-block;
    background: rgba(200, 169, 106, 0.12);
    color: #c8a96a;
    border: 1px solid rgba(200, 169, 106, 0.35);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.gt-reels-title {
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
}

.gt-reels-title span {
    color: #c8a96a;
}

.gt-reels-subtitle {
    color: #9a9a9a;
    font-size: 15px;
    margin: 0;
}

/* ===== السلايدر ===== */
.gt-reels-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gt-reels-slider {
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
}

.gt-reels-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s ease;
    cursor: grab;
}

.gt-reels-track.dragging {
    cursor: grabbing;
    transition: none;
}

.gt-reels-slide {
    flex: 0 0 calc(20% - 16px);
    min-width: 0;
}

.gt-reels-card {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    overflow: hidden;
    background: #1a1a1a;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.gt-reels-thumb,
.gt-reels-thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gt-reels-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #d9b65f;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.gt-reels-card:hover .gt-reels-play-btn {
    transform: translate(-50%, -50%) scale(1.08);
    background: #e8c876;
}

/* ===== أسهم التنقل ===== */
.gt-reels-nav {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1c1c1c;
    border: 1px solid #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 2;
}

.gt-reels-nav:hover {
    background: #c8a96a;
    color: #1a1a1a;
}

.gt-reels-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ===== نقاط Dots ===== */
.gt-reels-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 26px;
}

.gt-reels-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #444;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gt-reels-dot.active {
    width: 22px;
    border-radius: 4px;
    background: #d9b65f;
}

/* ===== المودال (تشغيل الفيديو بملء الشاشة) ===== */
.gt-reels-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gt-reels-modal.active {
    display: flex;
}

.gt-reels-modal-content {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.gt-reels-modal-content video,
.gt-reels-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.gt-reels-modal-close {
    position: absolute;
    top: 22px;
    left: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gt-reels-modal-close:hover {
    background: rgba(255,255,255,0.2);
}

/* ============================================================
   الاستجابة للشاشات (Responsive)
   ============================================================ */

@media (max-width: 1100px) {
    .gt-reels-slide {
        flex: 0 0 calc(25% - 15px);
    }
}

@media (max-width: 900px) {
    .gt-reels-slide {
        flex: 0 0 calc(33.333% - 14px);
    }
    .gt-reels-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .gt-reels-section {
        padding: 50px 14px;
    }
    .gt-reels-slide {
        flex: 0 0 calc(45% - 10px);
    }
    .gt-reels-track {
        gap: 14px;
    }
    .gt-reels-nav {
        width: 32px;
        height: 32px;
    }
    .gt-reels-play-btn {
        width: 44px;
        height: 44px;
    }
    .gt-reels-title {
        font-size: 22px;
    }
}

@media (max-width: 420px) {
    .gt-reels-slide {
        flex: 0 0 calc(55% - 8px);
    }
}
