/* Instagram Slider Section */
.instagram-slider-section {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    background: #ffffff;
}

/* Simple Instagram Slider */
.instagram-slider-simple {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 40px 0;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.instagram-slider-simple::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.instagram-slider-simple:active {
    cursor: grabbing;
}

.instagram-track-simple {
    display: flex;
    gap: 20px;
    will-change: transform;
}

.instagram-track-simple img {
    height: 500px;
    width: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.instagram-track-simple img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

@keyframes slideSimple {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Yavaş animasyon için JavaScript tarafından kontrol edilecek */

/* Responsive */
@media (max-width: 768px) {
    .instagram-track-simple img {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .instagram-track-simple img {
        height: 350px;
    }
    
    .instagram-track-simple {
        gap: 15px;
    }
}

.instagram-slider-section::before {
    display: none;
}

.instagram-heading {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.95) 100%);
    border-radius: 30px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.instagram-heading::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(212, 175, 55, 0.03) 10px,
            rgba(212, 175, 55, 0.03) 20px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(46, 0, 77, 0.02) 10px,
            rgba(46, 0, 77, 0.02) 20px
        );
    animation: patternMove 20s linear infinite;
    pointer-events: none;
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.instagram-heading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(46, 0, 77, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.instagram-heading .title-ext {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    padding: 8px 24px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instagram-heading .title-ext::before,
.instagram-heading .title-ext::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-heading .title-ext::before {
    left: -50px;
}

.instagram-heading .title-ext::after {
    right: -50px;
}

.instagram-heading h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #2E004D;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
    line-height: 1.2;
}

.instagram-heading p {
    font-size: 17px;
    color: #555;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.7;
    font-weight: 400;
}

/* Instagram Icon Decorations in Heading */
.instagram-heading-icon {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

.instagram-heading-icon-1 {
    top: 20px;
    left: 30px;
    font-size: 60px;
    color: #f09433;
    transform: rotate(-15deg);
}

.instagram-heading-icon-2 {
    bottom: 20px;
    right: 30px;
    font-size: 50px;
    color: #bc1888;
    transform: rotate(15deg);
}

.instagram-heading-icon-3 {
    top: 50%;
    left: 50px;
    font-size: 40px;
    color: #dc2743;
    transform: translateY(-50%) rotate(-25deg);
}

.instagram-heading-icon-4 {
    top: 50%;
    right: 50px;
    font-size: 40px;
    color: #e6683c;
    transform: translateY(-50%) rotate(25deg);
}

/* Instagram Slider Container */
.instagram-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 40px;
    cursor: grab;
}

.instagram-slider-container:active {
    cursor: grabbing;
}

.instagram-track {
    display: flex;
    gap: 30px;
    animation: slideInsta 40s linear infinite;
    will-change: transform;
}

.instagram-track:hover {
    animation-play-state: paused;
}

@keyframes slideInsta {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Mobilde daha hızlı animasyon */
@media (max-width: 768px) {
    .instagram-track {
        animation: slideInstaMobile 20s linear infinite;
    }
}

@keyframes slideInstaMobile {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Instagram Post Card - Modern Skewed Design - 9:16 Portrait */
.instagram-post {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    height: 498px; /* 9:16 aspect ratio (280 * 16/9 = 497.77) */
    perspective: 1000px;
}

.instagram-post::after {
    display: none !important;
}

.instagram-post:hover::after {
    display: none !important;
    opacity: 0 !important;
}

.instagram-post-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform: rotate(-2deg) skewY(-1deg);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.instagram-post:nth-child(even) .instagram-post-inner {
    transform: rotate(2deg) skewY(1deg);
}

/* Image Container */
.instagram-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #f0f0f0;
    transform: rotate(2deg) skewY(1deg);
}

.instagram-post:nth-child(even) .instagram-image-wrapper {
    transform: rotate(-2deg) skewY(-1deg);
}

.instagram-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f8f9fa;
}

/* Overlay Content - Hidden */
.instagram-overlay {
    display: none;
}

/* Instagram Icon */
.instagram-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    opacity: 0;
    transform: translateY(-10px) scale(0.8);
    transition: all 0.4s ease;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    text-decoration: none;
}

.instagram-post:hover .instagram-icon {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.instagram-icon:hover {
    transform: translateY(0) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Decorative Elements */
.instagram-deco {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.instagram-deco-1 {
    top: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.instagram-deco-2 {
    bottom: 15%;
    right: 8%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(46, 0, 77, 0.08), rgba(46, 0, 77, 0.03));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 8s ease-in-out infinite reverse;
}

.instagram-deco-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

/* CTA Button Inside Heading */
.instagram-cta-inline {
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

.instagram-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(188, 24, 136, 0.3);
    position: relative;
    overflow: hidden;
}

.instagram-follow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.instagram-follow-btn:hover::before {
    left: 100%;
}

.instagram-follow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(188, 24, 136, 0.4);
    color: white;
}

.instagram-follow-btn i {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .instagram-slider-section {
        padding: 60px 0;
    }
    
    .instagram-heading {
        padding: 40px 20px;
        margin-bottom: 40px;
    }
    
    .instagram-heading h2 {
        font-size: 32px;
    }
    
    .instagram-heading p {
        font-size: 15px;
    }
    
    .instagram-heading .title-ext::before,
    .instagram-heading .title-ext::after {
        display: none;
    }
    
    .instagram-heading-icon-3,
    .instagram-heading-icon-4 {
        display: none;
    }
    
    .instagram-post {
        width: 220px;
        height: 391px; /* 9:16 aspect ratio */
    }
    
    .instagram-track {
        gap: 20px;
    }
    
    .instagram-slider-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 40px;
    }
    
    .instagram-post {
        scroll-snap-align: center;
    }
}

@media (max-width: 480px) {
    .instagram-heading h2 {
        font-size: 28px;
    }
    
    .instagram-heading {
        padding: 30px 15px;
    }
    
    .instagram-heading-icon-1,
    .instagram-heading-icon-2 {
        font-size: 40px;
    }
    
    .instagram-post {
        width: 180px;
        height: 320px; /* 9:16 aspect ratio */
    }
    
    .instagram-follow-btn {
        padding: 15px 30px;
        font-size: 14px;
    }
}
