/* Instagram Feed Section Styles */
.instagram-feed {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.instagram-feed .section-title {
    margin-bottom: 40px;
}

/* Instagram Accordion Slider Styles */
.instagram-accordion-slider {
    display: flex;
    width: 100%;
    height: 700px;
    gap: 10px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 20px;
}

.accordion-panel {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.accordion-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    transition: all 0.4s ease;
    z-index: 1;
}

.accordion-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.2) 0%, rgba(188, 24, 136, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.accordion-panel:hover {
    flex: 3;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.accordion-panel:hover::before {
    opacity: 0.6;
}

.accordion-panel:hover::after {
    opacity: 1;
}

.panel-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
}

.accordion-panel:hover .panel-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.panel-overlay a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 36px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(188, 24, 136, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.panel-overlay a:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 40px rgba(188, 24, 136, 0.6);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(188, 24, 136, 0.4);
    }
    50% {
        box-shadow: 0 10px 40px rgba(188, 24, 136, 0.7), 0 0 0 10px rgba(188, 24, 136, 0.1);
    }
}

/* Panel Icon in Top Right */
.panel-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: #dc2743;
    font-size: 22px;
    z-index: 5;
    opacity: 1;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.accordion-panel:hover .panel-icon {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(188, 24, 136, 0.4);
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .instagram-accordion-slider {
        height: 500px;
    }
    
    .panel-overlay a {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .panel-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
}

@media (max-width: 991px) {
    .instagram-accordion-slider {
        height: 450px;
        padding: 0 15px;
    }
    
    /* Hide first 2 panels on tablet - show 4 panels */
    .accordion-panel.panel-desktop-only {
        display: none !important;
    }
    
    .panel-overlay a {
        width: 65px;
        height: 65px;
        font-size: 30px;
    }
    
    .panel-icon {
        width: 40px;
        height: 40px;
        font-size: 19px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 767px) {
    .instagram-accordion-slider {
        height: 350px;
        gap: 8px;
        padding: 0 10px;
    }
    
    .accordion-panel {
        border-radius: 15px;
    }
    
    /* Hide tablet panel as well - show 3 panels on mobile */
    .accordion-panel.panel-desktop-only,
    .accordion-panel.panel-tablet-hide {
        display: none !important;
    }
    
    .panel-overlay a {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
    
    .panel-icon {
        width: 36px;
        height: 36px;
        font-size: 17px;
        top: 12px;
        right: 12px;
        border-radius: 10px;
    }
}

@media (max-width: 575px) {
    .instagram-accordion-slider {
        height: 300px;
        gap: 6px;
    }
    
    .panel-overlay a {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .panel-icon {
        width: 32px;
        height: 32px;
        font-size: 15px;
        top: 10px;
        right: 10px;
        border-radius: 8px;
    }
}

/* Old grid styles - keeping for reference/backup */
.instagram-feed-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

@media (max-width: 1199px) {
    .instagram-feed-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .instagram-feed-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .instagram-feed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.instagram-post {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1/1;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instagram-post:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
    text-align: center;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay .instagram-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    fill: #fff;
}

.instagram-view-text {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.instagram-follow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.instagram-follow-btn .btn-default {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    padding: 15px 60px 15px 30px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
    min-width: auto;
}

.instagram-follow-btn .btn-default:hover {
    background: linear-gradient(135deg, #bc1888 0%, #cc2366 25%, #dc2743 50%, #e6683c 75%, #f09433 100%);
    transform: translateY(-2px);
}

.instagram-follow-btn i {
    font-size: 20px;
}

/* Loading State */
.instagram-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-color-light);
}

.instagram-loading .spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 3px solid rgba(180, 142, 103, 0.2);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
