/* Instagram Feed Carousel — feed.css */

/* ── Wrapper ────────────────────────────── */
.ifc-wrap {
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Header / Perfil ────────────────────── */
.ifc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #efefef;
    margin-bottom: 4px;
}

.ifc-profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: inherit;
}

.ifc-avatar-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.ifc-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    border: 2px solid #fff;
}

.ifc-avatar-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}
.ifc-avatar-placeholder svg { width: 22px; height: 22px; }

.ifc-avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    z-index: 0;
}

.ifc-username {
    font-weight: 600;
    font-size: 14px;
    color: #262626;
}

.ifc-follow-btn {
    background: #0095f6;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    white-space: nowrap;
}
.ifc-follow-btn:hover { background: #1877f2; }

/* ── Carrossel ──────────────────────────── */
.ifc-carousel-wrap {
    position: relative;
}

.ifc-outer {
    overflow: hidden;
    width: 100%;
    cursor: grab;
}
.ifc-outer.is-dragging { cursor: grabbing; }

.ifc-track {
    display: flex;
    will-change: transform;
    /* transition set by JS */
}
.ifc-track.no-transition { transition: none !important; }

/* ── Item / Foto ────────────────────────── */
.ifc-item {
    flex-shrink: 0;
    /* width + gap set by JS */
}

.ifc-img-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #efefef;
    /* aspect-ratio via padding-top (funciona em todos os browsers) */
}

/* Proporções — aplicadas via classe no wrapper */
.ifc-ratio-1-1  { aspect-ratio: 1/1;  }
.ifc-ratio-4-5  { aspect-ratio: 4/5;  }
.ifc-ratio-3-4  { aspect-ratio: 3/4;  }
.ifc-ratio-16-9 { aspect-ratio: 16/9; }

/* Fallback padding-top para browsers antigos (ignora se aspect-ratio funcionar) */
@supports not (aspect-ratio: 1) {
    .ifc-ratio-1-1  { padding-top: 100%;    height: 0; }
    .ifc-ratio-4-5  { padding-top: 125%;    height: 0; }
    .ifc-ratio-3-4  { padding-top: 133.33%; height: 0; }
    .ifc-ratio-16-9 { padding-top: 56.25%;  height: 0; }
}

.ifc-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ifc-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    background: #f0f0f0;
}

/* ── Overlay ────────────────────────────── */
.ifc-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
    padding: 12px;
}

.ifc-item:hover .ifc-overlay { opacity: 1; }

/* ── Ícone Instagram ────────────────────── */
.ifc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(8px) scale(0.85);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ifc-item:hover .ifc-icon {
    transform: translateY(0) scale(1);
}

.ifc-icon svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* ── Stats ──────────────────────────────── */
.ifc-stats {
    display: flex;
    gap: 16px;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transform: translateY(6px);
    transition: transform 0.35s ease 0.05s;
}
.ifc-item:hover .ifc-stats { transform: translateY(0); }

.ifc-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Legenda ────────────────────────────── */
.ifc-caption {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin: 0;
    padding: 0 8px;
    transform: translateY(6px);
    transition: transform 0.35s ease 0.1s;
    line-height: 1.4;
}
.ifc-item:hover .ifc-caption { transform: translateY(0); }

/* ── Link cobrindo tudo ─────────────────── */
.ifc-fulllink {
    position: absolute;
    inset: 0;
    z-index: 4;
}

/* ═══ ANIMAÇÕES DE HOVER ══════════════════ */

/* zoom — padrão */
.ifc-anim-zoom .ifc-img-wrap img,
.ifc-anim-zoom-hard .ifc-img-wrap img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ifc-anim-zoom:hover .ifc-img-wrap img      { transform: scale(1.07); }
.ifc-anim-zoom-hard:hover .ifc-img-wrap img { transform: scale(1.14); }

/* lift */
.ifc-anim-lift {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.ifc-anim-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

/* tilt */
.ifc-anim-tilt {
    transition: transform 0.4s ease;
    transform-origin: center bottom;
}
.ifc-anim-tilt:hover {
    transform: perspective(600px) rotateX(4deg) scale(1.03);
}

/* shine */
.ifc-anim-shine .ifc-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 70%);
    z-index: 2;
    transform: translateX(-100%) skewX(-20deg);
    transition: transform 0s;
    pointer-events: none;
}
.ifc-anim-shine:hover .ifc-img-wrap::after {
    transform: translateX(200%) skewX(-20deg);
    transition: transform 0.65s ease;
}
.ifc-anim-shine:hover .ifc-img-wrap img { transform: scale(1.04); }

/* blur-out */
.ifc-anim-blur-out .ifc-img-wrap img {
    transition: filter 0.4s ease, transform 0.4s ease;
}
.ifc-anim-blur-out:hover .ifc-img-wrap img {
    filter: blur(3px) brightness(0.7);
    transform: scale(1.05);
}

/* none */
.ifc-anim-none .ifc-img-wrap img { transition: none; }

/* ── Setas ──────────────────────────────── */
.ifc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    padding: 0;
}
.ifc-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.ifc-arrow svg { width: 52%; height: 52%; display: block; }
.ifc-arrow.disabled { opacity: 0.3; pointer-events: none; }

/* posição: middle (padrão) */
.ifc-arrows-middle .ifc-prev { left: -20px; }
.ifc-arrows-middle .ifc-next { right: -20px; }

/* posição: inside */
.ifc-arrows-inside .ifc-prev { left: 10px; }
.ifc-arrows-inside .ifc-next { right: 10px; }

/* posição: below */
.ifc-arrows-below { padding-bottom: 56px; }
.ifc-arrows-below .ifc-arrow {
    top: auto;
    bottom: 0;
    transform: none;
}
.ifc-arrows-below .ifc-prev { left: calc(50% - 48px); }
.ifc-arrows-below .ifc-next { left: calc(50% + 8px); }
.ifc-arrows-below .ifc-arrow:hover { transform: scale(1.1); }

/* ── Dots ───────────────────────────────── */
.ifc-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.ifc-dot {
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.ifc-dot.active { transform: scale(1.3); }
