/* ══════════════════════════════════════════════════
   INSTA MENTOR - HIGHLIGHTS WIDGET STYLES
   Professional Instagram Highlights
   ══════════════════════════════════════════════════ */

.insta-highlights-root {
    direction: ltr;
    font-family: 'Vazirmatn', sans-serif;
    user-select: none;
    -webkit-user-select: none;
    padding: 6px 0;
}

.insta-highlights-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 8px 4px 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.insta-highlights-track::-webkit-scrollbar {
    display: none;
}

.insta-highlight-item {
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.insta-highlight-item:hover {
    transform: translateY(-2px);
}

.insta-highlight-circle {
    border-style: solid;
    border-radius: 50%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.insta-highlight-circle-inner {
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: #fafafa;
}

.insta-highlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.insta-highlight-stories-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 14px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 2;
}

.insta-highlight-title {
    font-size: 11px;
    font-weight: 400;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    margin-top: 6px;
    max-width: 72px;
}

.insta-highlight-badge {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.5px;
    line-height: 1.6;
    white-space: nowrap;
}

/* Modal */
.insta-highlight-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999998;
    display: none;
    align-items: center;
    justify-content: center;
    animation: hlFadeIn 0.22s ease;
}

@keyframes hlFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.insta-highlight-modal.active {
    display: flex;
}

.insta-highlight-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 30;
    padding: 8px;
    line-height: 1;
    transition: opacity 0.2s;
}

.insta-highlight-modal-close:hover {
    opacity: 0.7;
}

.insta-highlight-modal-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.insta-highlight-modal-img {
    max-width: 92%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    animation: hlImgPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes hlImgPop {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.insta-highlight-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    font-size: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s;
}

.insta-highlight-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.insta-highlight-nav-prev {
    left: 12px;
}

.insta-highlight-nav-next {
    right: 12px;
}

.insta-highlight-modal-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 500;
    z-index: 25;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 20px;
    color: #ffffff;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 767px) {
    .insta-highlight-modal-close {
        top: 14px;
        right: 12px;
        font-size: 24px;
    }

    .insta-highlight-nav {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .insta-highlight-nav-prev {
        left: 6px;
    }

    .insta-highlight-nav-next {
        right: 6px;
    }

    .insta-highlight-modal-counter {
        bottom: 24px;
        font-size: 12px;
        padding: 5px 14px;
    }
}

/* ══════════════════════════════════════════════
   DARK MODE
   ══════════════════════════════════════════════ */
.dark-mode .insta-highlight-title {
    color: #fafafa;
}

.dark-mode .insta-highlight-circle-inner {
    background: #1a1a1a;
}

.dark-mode .insta-highlight-circle {
    border-color: #333333;
}