/* ========================================
   Social Media Feed - Modern Grid Layout
   ======================================== */

.social-media-feed {
    padding: 60px 0;
    background: #f8f9fa;
}

.social-feed-header {
    text-align: center;
    margin-bottom: 40px;
}

.social-feed-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-feed-link {
    display: inline-block;
    font-size: 18px;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-feed-link:hover {
    color: #45a049;
    transform: translateY(-2px);
}

.social-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.social-feed-item {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-feed-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-feed-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.social-feed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.social-feed-item:hover .social-feed-overlay {
    opacity: 1;
}

.social-feed-info {
    color: #fff;
    width: 100%;
}

.social-feed-caption {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.social-feed-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

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

.social-feed-stat i {
    font-size: 16px;
}

.social-feed-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #6c757d;
    grid-column: 1 / -1;
}

.social-feed-error {
    text-align: center;
    padding: 40px 20px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    grid-column: 1 / -1;
}

/* Platform specific icons/colors */
.social-media-feed[data-platform="instagram"] .social-feed-link {
    color: #E4405F;
}

.social-media-feed[data-platform="facebook"] .social-feed-link {
    color: #1877F2;
}

.social-media-feed[data-platform="twitter"] .social-feed-link {
    color: #1DA1F2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-feed-title {
        font-size: 28px;
    }

    .social-feed-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }

    .social-feed-item img {
        height: 200px;
    }

    .social-media-feed {
        padding: 40px 0;
    }
}

/* Animation for items loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-feed-item {
    animation: fadeInUp 0.5s ease-out forwards;
}

.social-feed-item:nth-child(1) { animation-delay: 0.1s; }
.social-feed-item:nth-child(2) { animation-delay: 0.2s; }
.social-feed-item:nth-child(3) { animation-delay: 0.3s; }
.social-feed-item:nth-child(4) { animation-delay: 0.4s; }
.social-feed-item:nth-child(5) { animation-delay: 0.5s; }
.social-feed-item:nth-child(6) { animation-delay: 0.6s; }
