/* Instagram Feed Carousel Styles */

.ifc-carousel-container {
    width: 100%;
    max-width: 100%;
    margin: 40px 0;
    padding: 20px 0;
    background: #0a2647;
    position: relative;
}

.ifc-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.ifc-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 20px 0;
}

.ifc-post-card {
    flex: 0 0 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ifc-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ifc-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.ifc-post-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ifc-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ifc-post-info {
    display: flex;
    flex-direction: column;
}

.ifc-username {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.4;
}

.ifc-post-date {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.ifc-linkedin-icon {
    color: #0077b5;
    opacity: 0.8;
}

.ifc-post-content {
    flex: 1;
    padding: 16px;
}

.ifc-post-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 12px 0;
}

.ifc-read-more {
    color: #0077b5;
    font-weight: 500;
}

.ifc-post-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 12px;
}

.ifc-post-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.ifc-multi-image-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px;
    border-radius: 4px;
}

.ifc-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
}

.ifc-engagement {
    display: flex;
    gap: 16px;
    align-items: center;
}

.ifc-likes,
.ifc-comments {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.ifc-likes svg,
.ifc-comments svg {
    color: #666;
}

.ifc-share-btn {
    background: none;
    border: none;
    color: #0077b5;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.ifc-share-btn:hover {
    background-color: #f0f0f0;
}

/* Navigation Buttons */
.ifc-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
    color: #333;
}

.ifc-nav-btn:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.ifc-nav-prev {
    left: 10px;
}

.ifc-nav-next {
    right: 10px;
}

.ifc-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal Styles */
.ifc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.ifc-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ifc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.ifc-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ifc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: all 0.2s;
    color: #333;
}

.ifc-modal-close:hover {
    background: #ffffff;
    transform: rotate(90deg);
}

.ifc-modal-body {
    display: flex;
    max-height: 90vh;
    overflow-y: auto;
}

.ifc-modal-left {
    flex: 1.2;
    background: linear-gradient(135deg, #0a2647 0%, #144272 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    color: white;
}

.ifc-modal-image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ifc-modal-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.ifc-modal-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

.ifc-modal-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ifc-modal-header {
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.ifc-modal-engagement {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
}

.ifc-modal-engagement .ifc-likes,
.ifc-modal-engagement .ifc-comments {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ifc-carousel-wrapper {
        padding: 0 50px;
    }
    
    .ifc-post-card {
        flex: 0 0 280px;
    }
    
    .ifc-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .ifc-nav-prev {
        left: 5px;
    }
    
    .ifc-nav-next {
        right: 5px;
    }
    
    .ifc-modal-body {
        flex-direction: column;
    }
    
    .ifc-modal-left {
        flex: 1;
        padding: 24px;
    }
    
    .ifc-modal-right {
        padding: 24px;
    }
    
    .ifc-modal-content {
        width: 95%;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .ifc-carousel-wrapper {
        padding: 0 40px;
    }
    
    .ifc-post-card {
        flex: 0 0 260px;
    }
}

/* Scrollbar styling for carousel */
.ifc-carousel-track::-webkit-scrollbar {
    display: none;
}

.ifc-carousel-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Loading state */
.ifc-modal.loading .ifc-modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.ifc-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0077b5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
