/* Yet Another IG Feed Styles */

.yaif-feed-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.yaif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.yaif-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.yaif-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.yaif-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.yaif-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.yaif-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.yaif-item:hover .yaif-overlay {
    opacity: 1;
}

.yaif-stats {
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    gap: 20px;
}

.yaif-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.yaif-stats .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.yaif-error {
    background: #fff5f5;
    color: #c53030;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #c53030;
    margin: 20px 0;
}

.yaif-empty {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .yaif-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    .yaif-stats {
        font-size: 0.9rem;
        gap: 10px;
    }
}
