/* =============================================
   ÖZKUY INSTAGRAM SYSTEM
   ============================================= */

/* === WRAPPER === */
.ozki-instagram-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #000;
    overflow: visible; /* Sticky için visible olmalı */
}

/* === SECTION === */
.ozki-instagram-section {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
    z-index: 10;
}

/* === AMBIENT === */
.ozki-instagram-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.ozki-instagram-ambient::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.02);
    filter: blur(60px);
}

/* === HEADER === */
.ozki-instagram-header {
    position: absolute;
    top: max(40px, 8vh);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 20;
    white-space: nowrap;
}

.ozki-instagram-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}
.ozki-instagram-badge svg { width: 16px; height: 16px; }

.ozki-instagram-title {
    font-family: 'Chillax', -apple-system, sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0;
}
.ozki-instagram-title em {
    font-style: normal;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === COUNTER === */
.ozki-instagram-counter {
    position: absolute;
    left: clamp(20px, 5vw, 60px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ozki-instagram-counter__current {
    font-family: 'Chillax', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.ozki-instagram-counter__divider {
    width: 32px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 12px 0;
}

.ozki-instagram-counter__total {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    font-variant-numeric: tabular-nums;
}

/* === STAGE === */
.ozki-instagram-stage {
    position: relative;
    width: 320px;
    height: 500px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    will-change: transform;
    transform: translateZ(0);
}

/* === CARD === */
.ozki-instagram-card {
    position: absolute;
    width: 280px;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1),
                opacity 0.4s ease,
                box-shadow 0.4s ease;
    will-change: transform, opacity;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    isolation: isolate;
    box-shadow: 0 10px 30px -10px rgba(255,255,255,0.1);
    background-color: #111;
    border: 1px solid rgba(255,255,255,0.1);
}

.ozki-instagram-card.is-active {
    box-shadow: 0 25px 50px -12px rgba(255,255,255,0.15), 0 0 0 1px rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

.ozki-instagram-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.ozki-instagram-card__glow {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, transparent 50%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.ozki-instagram-card__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ozki-instagram-card__bottom-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 128px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.ozki-instagram-card__header {
    position: absolute;
    top: 0; left: 0; width: 100%;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    cursor: pointer;
}

.ozki-instagram-card__user-avatar-container {
    position: relative; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.ozki-instagram-card__story-ring {
    position: absolute; inset: 0; border-radius: 50%; padding: 2px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}

.ozki-instagram-card__user-avatar {
    width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
    background: #000; display: flex; align-items: center; justify-content: center;
}

.ozki-instagram-card__user-avatar img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 1.5px solid #000;
}

.ozki-instagram-card__user-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ozki-instagram-card__username { font-size: 0.9rem; font-weight: 700; color: #fff; line-height: 1.2; }
.ozki-instagram-card__location { font-size: 0.72rem; color: rgba(255,255,255,0.8); line-height: 1.2; }

.ozki-instagram-card__actions {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 15;
}

.ozki-instagram-card__action {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #fff;
    padding: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ozki-instagram-card__action svg { width: 18px; height: 18px; stroke-width: 2; }
.ozki-instagram-card__action:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.1); }

/* === PROFILE LINK === */
.ozki-instagram-profile-link {
    position: absolute;
    bottom: max(20px, 4vh);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.05em;
}
.ozki-instagram-profile-link:hover { color: #fff; letter-spacing: 0.08em; }

/* === RESPONSIVE === */
@media (min-width: 769px) {
    .ozki-instagram-stage { width: 400px; height: 620px; }
    .ozki-instagram-card { width: 360px; height: 540px; }
}

@media (max-width: 768px) {
    .ozki-instagram-counter { left: 15px; }
    .ozki-instagram-stage { height: 60dvh; }
    .ozki-instagram-header { top: 30px; }
    .ozki-instagram-card {
        transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.3s ease;
    }
}