/* ══════════════════════════════════════════════════
   INSTA MENTOR - REELS WIDGET STYLES
   Professional Instagram Reels Clone
   ══════════════════════════════════════════════════ */

.insta-reels-root {
    direction: ltr;
    font-family: 'Vazirmatn', sans-serif;
    position: relative;
}

/* ─── VERTICAL LAYOUT ───────────────────────── */
.insta-reel-vertical-item {
    margin-left: auto;
    margin-right: auto;
}

/* ─── CONTAINER ─────────────────────────────── */
.insta-reel-container {
    position: relative;
    cursor: pointer;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.insta-reel-container:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.22);
}

/* ─── OVERLAY TOP (Profile + Follow) ────────── */
.insta-reel-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

.insta-reel-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.insta-reel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.insta-reel-username {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.insta-reel-verified {
    color: #0095f6;
    font-size: 14px;
}

.insta-reel-follow-btn {
    pointer-events: auto;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.85);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
}

.insta-reel-follow-btn:hover {
    background: #ffffff;
    color: #000000;
}

/* ─── OVERLAY BOTTOM (Caption + Music) ──────── */
.insta-reel-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 14px 16px 14px;
    background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

.insta-reel-caption {
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 8px;
}

.insta-reel-hashtags {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    display: inline-block;
    margin-right: 6px;
}

.insta-reel-music {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.insta-reel-music i {
    font-size: 11px;
    animation: instaMusicPulse 1.8s ease-in-out infinite;
}

@keyframes instaMusicPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.insta-reel-music-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.insta-reel-music-artist {
    opacity: 0.75;
}

/* ─── ACTION BUTTONS (Right side) ───────────── */
.insta-reel-actions {
    position: absolute;
    right: 10px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.insta-reel-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.insta-reel-action-btn:hover {
    transform: scale(1.12);
}

.insta-reel-action-btn:active {
    transform: scale(0.9);
}

.insta-reel-action-count {
    font-size: 11px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ─── PLAY/PAUSE INDICATOR ──────────────────── */
.insta-reel-playpause-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    pointer-events: none;
    animation: instaPlayPausePop 0.4s ease-out;
}

@keyframes instaPlayPausePop {
    0% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(0.95); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ─── CAROUSEL OVERRIDES ────────────────────── */
.insta-reels-carousel {
    padding-bottom: 10px;
}

.insta-reels-carousel .swiper-slide {
    height: auto;
}

.insta-reels-pagination .swiper-pagination-bullet {
    background: #b0b0b0;
    opacity: 0.5;
}

.insta-reels-pagination .swiper-pagination-bullet-active {
    background: #0095f6;
    opacity: 1;
}

.insta-reels-nav {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.4);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    backdrop-filter: blur(6px);
}

.insta-reels-nav::after {
    font-size: 14px !important;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 767px) {
    .insta-reel-overlay-top {
        padding: 10px 10px;
    }

    .insta-reel-avatar {
        width: 30px;
        height: 30px;
    }

    .insta-reel-username {
        font-size: 12px;
    }

    .insta-reel-follow-btn {
        padding: 5px 12px;
        font-size: 11px;
    }

    .insta-reel-overlay-bottom {
        padding: 40px 10px 12px 10px;
    }

    .insta-reel-caption {
        font-size: 12px;
    }

    .insta-reel-music {
        font-size: 11px;
    }

    .insta-reel-actions {
        right: 6px;
        bottom: 90px;
        gap: 16px;
    }

    .insta-reel-action-btn {
        font-size: 22px;
    }

    .insta-reel-action-count {
        font-size: 10px;
    }

    .insta-reels-nav {
        width: 30px;
        height: 30px;
    }

    .insta-reels-nav::after {
        font-size: 12px !important;
    }
}

/* ══════════════════════════════════════════════
   DARK MODE
   ══════════════════════════════════════════════ */
.dark-mode .insta-reel-container {
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

.dark-mode .insta-reel-container:hover {
    box-shadow: 0 8px 35px rgba(255, 255, 255, 0.08);
}