/* IG Carousel — Frontend Styles */

.igc-outer { display: flex; justify-content: center; margin: 2rem auto; }

/* ───────── Phone Mockup ───────── */
.igc-has-mockup .igc-phone {
    width: 280px;
    background: #111;
    border-radius: 42px;
    padding: 10px;
    box-shadow: 0 0 0 1px #333, 0 0 0 3px #555, 0 0 0 4px #111;
    position: relative;
    flex-shrink: 0;
}
.igc-phone-notch {
    width: 90px; height: 22px;
    background: #111;
    border-radius: 0 0 16px 16px;
    position: absolute; top: 10px; left: 50%;
    transform: translateX(-50%); z-index: 10;
}
.igc-phone-btn-right {
    position: absolute; right: -5px; top: 90px;
    width: 4px; height: 40px;
    background: #444; border-radius: 0 3px 3px 0;
}
.igc-phone-vol {
    position: absolute; left: -5px;
    width: 4px; height: 28px;
    background: #444; border-radius: 3px 0 0 3px;
}
.igc-phone-vol1 { top: 80px; }
.igc-phone-vol2 { top: 120px; }

.igc-screen {
    width: 100%; height: 100%;
    background: #fff;
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Status bar */
.igc-status-bar {
    padding: 14px 16px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    color: #111;
    flex-shrink: 0;
}
.igc-status-icons { display: flex; gap: 4px; align-items: center; }

/* IG header */
.igc-ig-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    flex-shrink: 0;
    border-bottom: 0.5px solid #efefef;
}
.igc-ig-logo { font-size: 16px; font-weight: 700; font-family: Georgia, serif; color: #111; letter-spacing: -0.5px; }
.igc-ig-header-icons { display: flex; gap: 10px; color: #111; }

/* ───────── No mockup mode ───────── */
.igc-no-mockup .igc-post {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    overflow: hidden;
}

/* ───────── Post ───────── */
.igc-post { display: flex; flex-direction: column; background: #fff; }

.igc-post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    flex-shrink: 0;
}
.igc-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    padding: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.igc-avatar-inner {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: #c7c7c7;
    border: 1.5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}
.igc-user-info { display: flex; flex-direction: column; }
.igc-username { font-size: 12px; font-weight: 700; color: #111; }
.igc-location { font-size: 10px; color: #8e8e8e; }
.igc-more { margin-left: auto; font-size: 18px; color: #111; line-height: 1; }

/* ───────── Carousel ───────── */
.igc-carousel-wrap { position: relative; width: 100%; flex-shrink: 0; }
.igc-carousel-ratio { width: 100%; position: relative; overflow: hidden; background: #efefef; }

.igc-slides {
    position: absolute; top: 0; left: 0;
    height: 100%;
    display: flex;
    will-change: transform;
}

/* Slide transition */
.igc-transition-slide { transition: transform 0.35s ease; }
.igc-transition-fade  { transition: none; }
.igc-transition-fade .igc-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.4s ease; }
.igc-transition-fade .igc-slide.igc-active { opacity: 1; }

.igc-slide { min-width: 100%; height: 100%; overflow: hidden; }
.igc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Arrows */
.igc-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none; border-radius: 50%;
    width: 28px; height: 28px;
    font-size: 20px; line-height: 1;
    cursor: pointer; color: #111;
    display: flex; align-items: center; justify-content: center;
    z-index: 5;
    transition: background .2s;
    padding: 0;
}
.igc-arrow:hover { background: rgba(255,255,255,1); }
.igc-arrow-prev { left: 8px; }
.igc-arrow-next { right: 8px; }

/* Counter */
.igc-slide-counter {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff; font-size: 11px; font-weight: 600;
    padding: 3px 8px; border-radius: 10px;
}

/* Dots */
.igc-dots {
    display: flex; gap: 4px;
    justify-content: center;
    padding: 6px 0 4px;
    flex-shrink: 0;
}
.igc-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #dbdbdb;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all .2s;
}
.igc-dot-active {
    background: #3897f0;
    width: 6px; height: 6px;
}

/* Actions */
.igc-actions {
    display: flex;
    align-items: center;
    padding: 8px 10px 4px;
    gap: 10px;
    flex-shrink: 0;
}
.igc-save-btn { margin-left: auto; }
.igc-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #111;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: color .2s, transform .1s;
}
.igc-action-btn:hover { transform: scale(1.1); }
.igc-like-btn.igc-liked svg { fill: #ed4956; stroke: #ed4956; }

.igc-likes { font-size: 12px; font-weight: 700; color: #111; padding: 2px 10px 4px; flex-shrink: 0; }
.igc-caption { padding: 2px 10px 10px; font-size: 12px; color: #111; line-height: 1.5; }
.igc-caption strong { font-weight: 700; margin-right: 4px; }
