/* ── Instagram Stories Strip ──────────────────────────────── */

.ig-stories-strip {
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.ig-stories-strip::-webkit-scrollbar { display: none; }

.ig-stories-inner {
    display: flex;
    gap: 12px;
    padding: 0 16px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.ig-story-thumb {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    padding: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color .2s;
    background: var(--color-bg);
}

.ig-story-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.ig-story-thumb.video::after {
    content: '▶';
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 10px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-story-thumb:hover { border-color: var(--color-secondary); }

/* İzlenmiş story — gri halka */
.ig-story-thumb.viewed {
    border-color: #bbb;
}
.ig-story-thumb.viewed:hover {
    border-color: #999;
}

/* Viewer modal */
.ig-story-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 2147483630;
}

.ig-story-viewer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(390px, 95vw);
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    z-index: 2147483640;
}

.ig-story-progress {
    display: flex;
    gap: 4px;
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 3;
}

.ig-story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,.4);
    border-radius: 2px;
    overflow: hidden;
}

.ig-story-progress-bar .fill {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width linear;
}

.ig-story-progress-bar.done .fill { width: 100%; }

.ig-story-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-story-media img,
.ig-story-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ig-story-close,
.ig-story-mute,
.ig-story-prev,
.ig-story-next {
    position: absolute;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 4;
    transition: background .2s;
}

.ig-story-close:hover,
.ig-story-mute:hover,
.ig-story-prev:hover,
.ig-story-next:hover { background: rgba(255,255,255,.35); }

.ig-story-close { top: 14px; right: 14px; }
.ig-story-mute  { top: 14px; left: 14px; }
.ig-story-prev  { top: 50%; left: 10px; transform: translateY(-50%); }
.ig-story-next  { top: 50%; right: 10px; transform: translateY(-50%); }

/* Instagram'da Aç butonu */
.ig-story-open-link {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
    transition: opacity .2s, transform .2s;
}

.ig-story-open-link:hover {
    opacity: .9;
    transform: translateX(-50%) scale(1.04);
    color: #fff;
    text-decoration: none;
}
